diff options
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_yuv4mpeg.c | 3 | ||||
-rw-r--r-- | libvo/vo_zr.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/libvo/vo_yuv4mpeg.c b/libvo/vo_yuv4mpeg.c index a934d5c17a..33ba91783b 100644 --- a/libvo/vo_yuv4mpeg.c +++ b/libvo/vo_yuv4mpeg.c @@ -183,9 +183,10 @@ static uint32_t query_format(uint32_t format) { 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 --git a/libvo/vo_zr.c b/libvo/vo_zr.c index 13f7618a70..587864dbfc 100644 --- a/libvo/vo_zr.c +++ b/libvo/vo_zr.c @@ -491,8 +491,8 @@ static uint32_t draw_frame(uint8_t * src[]) { } 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; } |