[Mplayer-cvslog] CVS: main/libmpdemux tv.c,1.35,1.36
Alex Beregszaszi
alex at mplayerhq.hu
Sat Oct 19 22:56:31 CEST 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv31898
Modified Files:
tv.c
Log Message:
removed the mess
Index: tv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tv.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- tv.c 19 Oct 2002 20:55:06 -0000 1.35
+++ tv.c 19 Oct 2002 20:56:28 -0000 1.36
@@ -459,71 +459,15 @@
switch(opt)
{
case TV_COLOR_BRIGHTNESS:
- if (value == 50)
- value = 32768;
- if (value > 50)
- {
- value *= 100;
- value += 32768;
- }
- if (value < 50)
- {
- int i;
- value *= 100;
- i = value;
- value = 32768 - i;
- }
funcs->control(tvh->priv, TVI_CONTROL_VID_SET_BRIGHTNESS, &value);
break;
case TV_COLOR_HUE:
- if (value == 50)
- value = 32768;
- if (value > 50)
- {
- value *= 100;
- value += 32768;
- }
- if (value < 50)
- {
- int i;
- value *= 100;
- i = value;
- value = 32768 - i;
- }
funcs->control(tvh->priv, TVI_CONTROL_VID_SET_HUE, &value);
break;
case TV_COLOR_SATURATION:
- if (value == 50)
- value = 32512;
- if (value > 50)
- {
- value *= 100;
- value += 32512;
- }
- if (value < 50)
- {
- int i;
- value *= 100;
- i = value;
- value = 32512 - i;
- }
funcs->control(tvh->priv, TVI_CONTROL_VID_SET_SATURATION, &value);
break;
case TV_COLOR_CONTRAST:
- if (value == 50)
- value = 27648;
- if (value > 50)
- {
- value *= 100;
- value += 27648;
- }
- if (value < 50)
- {
- int i;
- value *= 100;
- i = value;
- value = 27648 - i;
- }
funcs->control(tvh->priv, TVI_CONTROL_VID_SET_CONTRAST, &value);
break;
default:
More information about the MPlayer-cvslog
mailing list