changeset 7807:5cd172eeaf23

removed the mess
author alex
date Sat, 19 Oct 2002 20:56:28 +0000
parents 6a6f6b8b2ac7
children 502f6eff2c1a
files libmpdemux/tv.c
diffstat 1 files changed, 0 insertions(+), 56 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/tv.c	Sat Oct 19 20:55:06 2002 +0000
+++ b/libmpdemux/tv.c	Sat Oct 19 20:56:28 2002 +0000
@@ -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: