# HG changeset patch # User alex # Date 1035060988 0 # Node ID 5cd172eeaf23fabe6490c5ee10cd38528ac4c165 # Parent 6a6f6b8b2ac77b40d8fc19cbc816689925faa9a6 removed the mess diff -r 6a6f6b8b2ac7 -r 5cd172eeaf23 libmpdemux/tv.c --- 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: