From 7b25afd7423e9056782993cbd1b32ead64ac1462 Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 17 Nov 2006 18:16:21 +0000 Subject: 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 --- libvo/video_out.h | 3 +++ libvo/vo_xvmc.c | 9 +++++++++ 2 files changed, 12 insertions(+) (limited to 'libvo') 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: -- cgit v1.2.3