# HG changeset patch # User alex # Date 1022522726 0 # Node ID 7accc81d6f04965844d85aba77cb76d0ff64cf8b # Parent 2001affedb75a1b946f0e504ac375710b34f6cba revised query_format diff -r 2001affedb75 -r 7accc81d6f04 libvo/vo_yuv4mpeg.c --- a/libvo/vo_yuv4mpeg.c Mon May 27 17:56:52 2002 +0000 +++ b/libvo/vo_yuv4mpeg.c Mon May 27 18:05:26 2002 +0000 @@ -183,9 +183,10 @@ { switch(format){ case IMGFMT_YV12: + return VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW|VFCAP_OSD; case IMGFMT_BGR|24: case IMGFMT_RGB|24: - return 1; + return VFCAP_CSP_SUPPORTED; } return 0; } diff -r 2001affedb75 -r 7accc81d6f04 libvo/vo_zr.c --- a/libvo/vo_zr.c Mon May 27 17:56:52 2002 +0000 +++ b/libvo/vo_zr.c Mon May 27 18:05:26 2002 +0000 @@ -491,8 +491,8 @@ } static uint32_t query_format(uint32_t format) { - if(format==IMGFMT_YV12) return 1; - if(format==IMGFMT_YUY2) return 1; + if(format==IMGFMT_YV12 || format==IMGFMT_YUY2) + return VFCAP_CSP_SUPPORTED|VFCAP_SUPPORTED_BY_HW; return 0; }