[Mplayer-cvslog] CVS: main/libvo vo_svga.c,1.73,1.74 vo_vesa.c,1.97,1.98

Alex Beregszaszi alex at mplayerhq.hu
Sun Dec 7 16:08:39 CET 2003


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv27091

Modified Files:
	vo_svga.c vo_vesa.c 
Log Message:
Some more vidix crap - vidix equalizer passthrough. Patch by Oleg I. Vdovikin <vdovikin at jscc.ru>

Index: vo_svga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_svga.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- vo_svga.c	22 Oct 2003 13:22:00 -0000	1.73
+++ vo_svga.c	7 Dec 2003 15:08:20 -0000	1.74
@@ -361,6 +361,37 @@
     case VOCTRL_GET_IMAGE:
       return get_image(data);
   }
+
+#ifdef CONFIG_VIDIX
+  if (vidix_name) {
+    switch (request) {
+    case VOCTRL_SET_EQUALIZER:
+    {
+      va_list ap;
+      int value;
+    
+      va_start(ap, data);
+      value = va_arg(ap, int);
+      va_end(ap);
+
+      return vidix_control(request, data, (int *)value);
+    }
+    case VOCTRL_GET_EQUALIZER:
+    {
+      va_list ap;
+      int *value;
+    
+      va_start(ap, data);
+      value = va_arg(ap, int*);
+      va_end(ap);
+
+      return vidix_control(request, data, value);
+    }
+    }
+    return vidix_control(request, data);
+  }
+#endif
+
   return VO_NOTIMPL;
 }
 

Index: vo_vesa.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_vesa.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -r1.97 -r1.98
--- vo_vesa.c	22 Oct 2003 13:22:00 -0000	1.97
+++ vo_vesa.c	7 Dec 2003 15:08:20 -0000	1.98
@@ -1065,5 +1065,36 @@
   case VOCTRL_QUERY_FORMAT:
     return query_format(*((uint32_t*)data));
   }
+
+#ifdef CONFIG_VIDIX
+  if (vidix_name) {
+    switch (request) {
+    case VOCTRL_SET_EQUALIZER:
+    {
+      va_list ap;
+      int value;
+    
+      va_start(ap, data);
+      value = va_arg(ap, int);
+      va_end(ap);
+
+      return vidix_control(request, data, (int *)value);
+    }
+    case VOCTRL_GET_EQUALIZER:
+    {
+      va_list ap;
+      int *value;
+    
+      va_start(ap, data);
+      value = va_arg(ap, int*);
+      va_end(ap);
+
+      return vidix_control(request, data, value);
+    }
+    }
+    return vidix_control(request, data);
+  }
+#endif
+
   return VO_NOTIMPL;
 }



More information about the MPlayer-cvslog mailing list