[Mplayer-cvslog] CVS: main mplayer.c,1.712,1.713

Gabucino gabucino at mplayerhq.hu
Tue Aug 12 09:39:19 CEST 2003


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

Modified Files:
	mplayer.c 
Log Message:

Hi, here are slave commands:

tv_set_brightness
tv_set_contrast
tv_set_hue
tv_set_color

Patch by Kir Kostuchenko <kir at users.sourceforge.net>



Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.712
retrieving revision 1.713
diff -u -r1.712 -r1.713
--- mplayer.c	11 Aug 2003 00:02:21 -0000	1.712
+++ mplayer.c	12 Aug 2003 07:38:12 -0000	1.713
@@ -2777,6 +2777,22 @@
       if (file_format == DEMUXER_TYPE_TV)
         tv_set_norm((tvi_handle_t*)(demuxer->priv), cmd->args[0].v.s);
     } break;
+    case MP_CMD_TV_SET_BRIGHTNESS :  {
+      if (file_format == DEMUXER_TYPE_TV)
+        tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_BRIGHTNESS, cmd->args[0].v.i);
+    } break;
+    case MP_CMD_TV_SET_HUE :  {
+      if (file_format == DEMUXER_TYPE_TV)
+        tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_HUE, cmd->args[0].v.i);
+    } break;
+    case MP_CMD_TV_SET_SATURATION :  {
+      if (file_format == DEMUXER_TYPE_TV)
+        tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_SATURATION, cmd->args[0].v.i);
+    } break;
+    case MP_CMD_TV_SET_CONTRAST :  {
+      if (file_format == DEMUXER_TYPE_TV)
+        tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_CONTRAST, cmd->args[0].v.i);
+    } break;
     case MP_CMD_TV_STEP_CHANNEL :  {
       if (file_format == DEMUXER_TYPE_TV) {
 	int v = cmd->args[0].v.i;



More information about the MPlayer-cvslog mailing list