Mercurial > mplayer.hg
changeset 6213:7accc81d6f04
revised query_format
author | alex |
---|---|
date | Mon, 27 May 2002 18:05:26 +0000 |
parents | 2001affedb75 |
children | 0398cb49fe5e |
files | libvo/vo_yuv4mpeg.c libvo/vo_zr.c |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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; }
--- 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; }