[Mplayer-cvslog] CVS: main dec_video.c,1.63,1.64

Alex Beregszaszi alex at mplayer.dev.hu
Fri Nov 16 23:59:42 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv26172

Modified Files:
	dec_video.c 
Log Message:
added support for setting color values on tv interface

Index: dec_video.c
===================================================================
RCS file: /cvsroot/mplayer/main/dec_video.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- dec_video.c	11 Nov 2001 13:35:00 -0000	1.63
+++ dec_video.c	16 Nov 2001 22:59:39 -0000	1.64
@@ -81,6 +81,13 @@
 #include "xacodec.h"
 #endif
 
+#ifdef USE_TV
+#include "libmpdemux/tv.h"
+
+extern int tv_param_on;
+extern tvi_handle_t *tv_handler;
+#endif
+
 #include "mmx_defs.h"
 
 void AVI_Decode_RLE8(char *image,char *delta,int tdsize,
@@ -210,6 +217,7 @@
 	return 1;
     }
 #endif
+
 #ifdef NEW_DECORE
 #ifdef DECORE_VERSION
 #if DECORE_VERSION >= 20011010
@@ -225,6 +233,33 @@
     }
 #endif
 #endif
+#endif
+
+#ifdef USE_TV
+    
+    if (tv_param_on == 1)
+    {
+	if (!strcmp(item, "Brightness"))
+	{
+	    tv_set_color_options(tv_handler, TV_COLOR_BRIGHTNESS, value);
+	    return(1);
+	}
+	if (!strcmp(item, "Hue"))
+	{
+	    tv_set_color_options(tv_handler, TV_COLOR_HUE, value);
+	    return(1);
+	}
+	if (!strcmp(item, "Saturation"))
+	{
+	    tv_set_color_options(tv_handler, TV_COLOR_SATURATION, value);
+	    return(1);
+	}
+	if (!strcmp(item, "Contrast"))
+	{
+	    tv_set_color_options(tv_handler, TV_COLOR_CONTRAST, value);
+	    return(1);
+	}
+    }
 #endif
     return 0;
 }




More information about the MPlayer-cvslog mailing list