[MPlayer-cvslog] r28744 - trunk/libvo/vo_vdpau.c

cehoyos subversion at mplayerhq.hu
Fri Feb 27 22:55:28 CET 2009


Author: cehoyos
Date: Fri Feb 27 22:55:28 2009
New Revision: 28744

Log:
Do not forget the chosen deinterlacer for -vo vdpau.
Make temporal deinterlacing standard when pressing "D" to activate
deinterlacer.

Modified:
   trunk/libvo/vo_vdpau.c

Modified: trunk/libvo/vo_vdpau.c
==============================================================================
--- trunk/libvo/vo_vdpau.c	Fri Feb 27 22:52:59 2009	(r28743)
+++ trunk/libvo/vo_vdpau.c	Fri Feb 27 22:55:28 2009	(r28744)
@@ -148,6 +148,7 @@ static int                              
 
 static VdpVideoMixer                      video_mixer;
 static int                                deint;
+static int                                deint_type;
 static int                                pullup;
 static float                              denoise;
 static float                              sharpen;
@@ -965,6 +966,7 @@ static int preinit(const char *arg)
     static const char *vdpau_device_create = "vdp_device_create_x11";
 
     deint = 0;
+    deint_type = 3;
     pullup = 0;
     denoise = 0;
     sharpen = 0;
@@ -972,6 +974,8 @@ static int preinit(const char *arg)
         mp_msg(MSGT_VO, MSGL_FATAL, help_msg);
         return -1;
     }
+    if (deint)
+        deint_type = deint;
 
     vdpau_lib_handle = dlopen(vdpaulibrary, RTLD_LAZY);
     if (!vdpau_lib_handle) {
@@ -1018,6 +1022,8 @@ static int control(uint32_t request, voi
             return VO_TRUE;
         case VOCTRL_SET_DEINTERLACE:
             deint = *(int*)data;
+            if (deint)
+                deint = deint_type;
             return VO_TRUE;
         case VOCTRL_PAUSE:
             return (int_pause = 1);



More information about the MPlayer-cvslog mailing list