summaryrefslogtreecommitdiffstats
path: root/libvo
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
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')
-rw-r--r--libvo/video_out.h3
-rw-r--r--libvo/vo_xvmc.c9
2 files changed, 12 insertions, 0 deletions
diff --git a/libvo/video_out.h b/libvo/video_out.h
index 5c74c7e49d..b2e7dadc57 100644
--- a/libvo/video_out.h
+++ b/libvo/video_out.h
@@ -65,6 +65,9 @@ typedef struct {
int mt, mb, ml, mr; // borders (top, bottom, left, right)
} mp_eosd_res_t;
+#define VOCTRL_SET_DEINTERLACE 30
+#define VOCTRL_GET_DEINTERLACE 31
+
// Vo can be used by xover
#define VOCTRL_XOVERLAY_SUPPORT 22
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: