summaryrefslogtreecommitdiffstats
path: root/dec_video.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-16 22:59:39 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-16 22:59:39 +0000
commitbaa7fcfaf334d6342bde3e60cdf4a570a080b198 (patch)
tree6a9110157600828843ff9d9f3123a5668e0c0ddd /dec_video.c
parentc451b1fe262fe39515f14ce82f2a590004e96d34 (diff)
downloadmpv-baa7fcfaf334d6342bde3e60cdf4a570a080b198.tar.bz2
mpv-baa7fcfaf334d6342bde3e60cdf4a570a080b198.tar.xz
added support for setting color values on tv interface
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2939 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'dec_video.c')
-rw-r--r--dec_video.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/dec_video.c b/dec_video.c
index caef76dd90..7a9e61b0ff 100644
--- a/dec_video.c
+++ b/dec_video.c
@@ -81,6 +81,13 @@ int divx_quality=0;
#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 @@ int set_video_colors(sh_video_t *sh_video,char *item,int value){
return 1;
}
#endif
+
#ifdef NEW_DECORE
#ifdef DECORE_VERSION
#if DECORE_VERSION >= 20011010
@@ -226,6 +234,33 @@ int set_video_colors(sh_video_t *sh_video,char *item,int value){
#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;
}