Mercurial > mplayer.hg
comparison libmpcodecs/dec_video.c @ 6786:b16cb6cbff5a
eq reworked
author | alex |
---|---|
date | Thu, 25 Jul 2002 13:12:23 +0000 |
parents | 12dcd0f85262 |
children | 6ad5d182153c |
comparison
equal
deleted
inserted
replaced
6785:12dcd0f85262 | 6786:b16cb6cbff5a |
---|---|
75 } | 75 } |
76 | 76 |
77 int set_video_colors(sh_video_t *sh_video,char *item,int value) | 77 int set_video_colors(sh_video_t *sh_video,char *item,int value) |
78 { | 78 { |
79 vf_instance_t* vf=sh_video->vfilter; | 79 vf_instance_t* vf=sh_video->vfilter; |
80 | 80 |
81 mp_dbg(MSGT_DECVIDEO,MSGL_V,"set video colors %s=%d \n", item, value); | |
81 if (vf) | 82 if (vf) |
82 { | 83 { |
83 int ret = vf->control(vf, VFCTRL_SET_EQUALIZER, item, (int *)value); | 84 int ret = vf->control(vf, VFCTRL_SET_EQUALIZER, item, (int *)value); |
84 if (ret == CONTROL_TRUE) | 85 if (ret == CONTROL_TRUE) |
85 return(1); | 86 return(1); |
86 } | 87 } |
87 /* try software control */ | 88 /* try software control */ |
88 if(mpvdec) return mpvdec->control(sh_video,VDCTRL_SET_EQUALIZER, item, (int *)value); | 89 if(mpvdec) return mpvdec->control(sh_video,VDCTRL_SET_EQUALIZER, item, (int *)value); |
90 } | 91 } |
91 | 92 |
92 int get_video_colors(sh_video_t *sh_video,char *item,int *value) | 93 int get_video_colors(sh_video_t *sh_video,char *item,int *value) |
93 { | 94 { |
94 vf_instance_t* vf=sh_video->vfilter; | 95 vf_instance_t* vf=sh_video->vfilter; |
95 | 96 |
96 if (vf->control(vf, VFCTRL_GET_EQUALIZER, item, value) == CONTROL_TRUE) | 97 mp_dbg(MSGT_DECVIDEO,MSGL_V,"get video colors %s \n", item); |
97 return 1; | 98 if (vf) |
99 { | |
100 int ret = vf->control(vf, VFCTRL_GET_EQUALIZER, item, value); | |
101 if (ret == CONTROL_TRUE) | |
102 return(1); | |
103 } | |
98 /* try software control */ | 104 /* try software control */ |
99 if(mpvdec) return mpvdec->control(sh_video,VDCTRL_GET_EQUALIZER, item, value); | 105 if(mpvdec) return mpvdec->control(sh_video,VDCTRL_GET_EQUALIZER, item, value); |
100 return 0; | 106 return 0; |
101 } | 107 } |
102 | 108 |