changeset 28701:fc457469ed7b

Support "D" to (de-)activate deinterlacing when using vo vdpau.
author cehoyos
date Thu, 26 Feb 2009 18:20:32 +0000
parents b93dd9f04afd
children eb5e70a423e3
files DOCS/man/en/mplayer.1 libvo/vo_vdpau.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/man/en/mplayer.1	Thu Feb 26 18:02:38 2009 +0000
+++ b/DOCS/man/en/mplayer.1	Thu Feb 26 18:20:32 2009 +0000
@@ -285,7 +285,7 @@
 Show filename on the OSD.
 .IPs "! and @"
 Seek to the beginning of the previous/next chapter.
-.IPs "D (\-vo xvmc, \-vf yadif, \-vf kerndeint only)"
+.IPs "D (\-vo xvmc, \-vo vdpau, \-vf yadif, \-vf kerndeint only)"
 Activate/deactivate deinterlacer.
 .IPs "A"
 Cycle through the available DVD angles.
--- a/libvo/vo_vdpau.c	Thu Feb 26 18:02:38 2009 +0000
+++ b/libvo/vo_vdpau.c	Thu Feb 26 18:20:32 2009 +0000
@@ -1012,6 +1012,13 @@
 static int control(uint32_t request, void *data, ...)
 {
     switch (request) {
+        case VOCTRL_GET_DEINTERLACE:
+            *(int*)data = deint;
+            return VO_TRUE;
+        case VOCTRL_SET_DEINTERLACE:
+            deint = *(int*)data;
+printf("Set to %d. \n", deint);
+            return VO_TRUE;
         case VOCTRL_PAUSE:
             return (int_pause = 1);
         case VOCTRL_RESUME: