Mercurial > mplayer.hg
changeset 2938:757c3ab1a45a
added support for setting color values on tv interface
author | alex |
---|---|
date | Fri, 16 Nov 2001 22:59:39 +0000 |
parents | 4307478ad922 |
children | c691d76c6539 |
files | dec_video.c |
diffstat | 1 files changed, 35 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }