# HG changeset patch # User komh # Date 1328151302 0 # Node ID 7e3b96b760aec767594e88ffa316d6b075814846 # Parent da67e2df97be940cf4cea9cf75780fad140134b7 Add IMGFMT_BGR32 supports diff -r da67e2df97be -r 7e3b96b760ae libvo/vo_kva.c --- a/libvo/vo_kva.c Tue Jan 31 18:17:17 2012 +0000 +++ b/libvo/vo_kva.c Thu Feb 02 02:55:02 2012 +0000 @@ -184,6 +184,13 @@ nChromaShift = 2; break; + case IMGFMT_BGR32: + fHWAccel = m_int.kvac.ulInputFormatFlags & KVAF_BGR32; + fcc = FOURCC_BGR4; + bpp = 3; + nChromaShift = 0; + break; + case IMGFMT_BGR24: fHWAccel = m_int.kvac.ulInputFormatFlags & KVAF_BGR24; fcc = FOURCC_BGR3; @@ -701,6 +708,8 @@ dstFormat = IMGFMT_YUY2; else if (m_int.kvac.ulInputFormatFlags & KVAF_YVU9) dstFormat = IMGFMT_YVU9; + else if (m_int.kvac.ulInputFormatFlags & KVAF_BGR32) + dstFormat = IMGFMT_BGR32; else if (m_int.kvac.ulInputFormatFlags & KVAF_BGR24) dstFormat = IMGFMT_BGR24; else if (m_int.kvac.ulInputFormatFlags & KVAF_BGR16)