comparison libmpdemux/tv.c @ 9663:596ad944a65e

color equalizer for tv input
author henry
date Sun, 23 Mar 2003 15:05:14 +0000
parents ce4cd85498f3
children 9dc39697e3b3
comparison
equal deleted inserted replaced
9662:2ac95540dc55 9663:596ad944a65e
69 #ifdef HAVE_ALSA9 69 #ifdef HAVE_ALSA9
70 int tv_param_alsa = 0; 70 int tv_param_alsa = 0;
71 #endif 71 #endif
72 char* tv_param_adevice = NULL; 72 char* tv_param_adevice = NULL;
73 #endif 73 #endif
74 int tv_param_brightness = 0;
75 int tv_param_contrast = 0;
76 int tv_param_hue = 0;
77 int tv_param_saturation = 0;
74 78
75 /* ================== DEMUX_TV ===================== */ 79 /* ================== DEMUX_TV ===================== */
76 /* 80 /*
77 Return value: 81 Return value:
78 0 = EOF(?) or no stream 82 0 = EOF(?) or no stream
440 /* set width */ 444 /* set width */
441 funcs->control(tvh->priv, TVI_CONTROL_VID_GET_WIDTH, &sh_video->disp_w); 445 funcs->control(tvh->priv, TVI_CONTROL_VID_GET_WIDTH, &sh_video->disp_w);
442 446
443 /* set height */ 447 /* set height */
444 funcs->control(tvh->priv, TVI_CONTROL_VID_GET_HEIGHT, &sh_video->disp_h); 448 funcs->control(tvh->priv, TVI_CONTROL_VID_GET_HEIGHT, &sh_video->disp_h);
449
450 /* set color eq */
451 tv_set_color_options(tvh, TV_COLOR_BRIGHTNESS, tv_param_brightness);
452 tv_set_color_options(tvh, TV_COLOR_HUE, tv_param_hue);
453 tv_set_color_options(tvh, TV_COLOR_SATURATION, tv_param_saturation);
454 tv_set_color_options(tvh, TV_COLOR_CONTRAST, tv_param_contrast);
445 455
446 demuxer->video->sh = sh_video; 456 demuxer->video->sh = sh_video;
447 sh_video->ds = demuxer->video; 457 sh_video->ds = demuxer->video;
448 demuxer->video->id = 0; 458 demuxer->video->id = 0;
449 459