summaryrefslogtreecommitdiffstats
path: root/libvo/vo_xvmc.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-17 18:16:21 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-17 18:16:21 +0000
commit7b25afd7423e9056782993cbd1b32ead64ac1462 (patch)
treeaab2cdd747f6b0df09ae07e7539ef3033633e243 /libvo/vo_xvmc.c
parent1719ee50e2ebbedfc678d2cddd0fea618dde7062 (diff)
downloadmpv-7b25afd7423e9056782993cbd1b32ead64ac1462.tar.bz2
mpv-7b25afd7423e9056782993cbd1b32ead64ac1462.tar.xz
Add deinterlace property, patch by Carl Eugen Hoyos
(cehoyos [at] rainbow studorg tuwien ac at) with small modifications by me. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20989 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xvmc.c')
-rw-r--r--libvo/vo_xvmc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libvo/vo_xvmc.c b/libvo/vo_xvmc.c
index de86e0facd..a9cc9884e8 100644
--- a/libvo/vo_xvmc.c
+++ b/libvo/vo_xvmc.c
@@ -1379,6 +1379,15 @@ return VO_TRUE;
static int control(uint32_t request, void *data, ... )
{
switch (request){
+ case VOCTRL_GET_DEINTERLACE:
+ *(int*)data = bob_deinterlace;
+ return VO_TRUE;
+ case VOCTRL_SET_DEINTERLACE:
+ if (*(int*)data == -1)
+ bob_deinterlace = !bob_deinterlace;
+ else
+ bob_deinterlace = *(int*)data;
+ return VO_TRUE;
case VOCTRL_QUERY_FORMAT:
return query_format(*((uint32_t*)data));
case VOCTRL_DRAW_IMAGE: