summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-05-27 18:05:26 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-05-27 18:05:26 +0000
commit1a2a9139f96333963abb21452a2241bd5e410167 (patch)
tree6c92add7678e581e4bccdcdbf32155b41606f5e0 /libvo
parentbb314fce939272cb9bdaba59d23ef74bbb408a62 (diff)
downloadmpv-1a2a9139f96333963abb21452a2241bd5e410167.tar.bz2
mpv-1a2a9139f96333963abb21452a2241bd5e410167.tar.xz
revised query_format
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6214 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_yuv4mpeg.c3
-rw-r--r--libvo/vo_zr.c4
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;
}