# HG changeset patch # User alex # Date 1005951579 0 # Node ID 757c3ab1a45ae87591ab7da7cce7ed13dbd81d9c # Parent 4307478ad9228eab34263d5382b6e2dbd67ef097 added support for setting color values on tv interface diff -r 4307478ad922 -r 757c3ab1a45a dec_video.c --- a/dec_video.c Fri Nov 16 22:59:07 2001 +0000 +++ b/dec_video.c Fri Nov 16 22:59:39 2001 +0000 @@ -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 @@ -226,6 +234,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; }