RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.251
diff -u -r1.251 mencoder.c
|
|
|
|
| 1861 | 1861 | } |
| 1862 | 1862 | #endif |
| 1863 | 1863 | |
| | 1864 | void initial_set_video_colors() {} // no-op in mencoder |
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.763
diff -u -r1.763 mplayer.c
|
|
|
|
| 1775 | 1775 | // ========== Init display (sh_video->disp_w*sh_video->disp_h/out_fmt) ============ |
| 1776 | 1776 | |
| 1777 | 1777 | current_module="init_vo"; |
| 1778 | | if (sh_video) |
| 1779 | | { |
| 1780 | | if (vo_gamma_gamma != 1000) |
| 1781 | | set_video_colors (sh_video, "gamma", vo_gamma_gamma); |
| 1782 | | if (vo_gamma_brightness != 1000) |
| 1783 | | set_video_colors(sh_video, "brightness", vo_gamma_brightness); |
| 1784 | | if (vo_gamma_contrast != 1000) |
| 1785 | | set_video_colors(sh_video, "contrast", vo_gamma_contrast); |
| 1786 | | if (vo_gamma_saturation != 1000) |
| 1787 | | set_video_colors(sh_video, "saturation", vo_gamma_saturation); |
| 1788 | | if (vo_gamma_hue != 1000) |
| 1789 | | set_video_colors(sh_video, "hue", vo_gamma_hue); |
| 1790 | | } |
| 1791 | | |
| 1792 | 1778 | if(vo_flags & 0x08 && vo_spudec) |
| 1793 | 1779 | spudec_set_hw_spu(vo_spudec,video_out); |
| 1794 | 1780 | |
| … |
… |
|
| 3807 | 3793 | |
| 3808 | 3794 | return 1; |
| 3809 | 3795 | } |
| | 3796 | |
| | 3797 | void initial_set_video_colors() |
| | 3798 | { |
| | 3799 | if (sh_video) |
| | 3800 | { |
| | 3801 | if (vo_gamma_gamma != 1000) |
| | 3802 | set_video_colors (sh_video, "gamma", vo_gamma_gamma); |
| | 3803 | if (vo_gamma_brightness != 1000) |
| | 3804 | set_video_colors(sh_video, "brightness", vo_gamma_brightness); |
| | 3805 | if (vo_gamma_contrast != 1000) |
| | 3806 | set_video_colors(sh_video, "contrast", vo_gamma_contrast); |
| | 3807 | if (vo_gamma_saturation != 1000) |
| | 3808 | set_video_colors(sh_video, "saturation", vo_gamma_saturation); |
| | 3809 | if (vo_gamma_hue != 1000) |
| | 3810 | set_video_colors(sh_video, "hue", vo_gamma_hue); |
| | 3811 | } |
| | 3812 | } |
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_vo.c,v
retrieving revision 1.24
diff -u -r1.24 vf_vo.c
|
|
|
|
| 14 | 14 | |
| 15 | 15 | #define video_out ((vo_functions_t*)(vf->priv)) |
| 16 | 16 | |
| | 17 | extern void initial_set_video_colors(); |
| | 18 | |
| 17 | 19 | static int query_format(struct vf_instance_s* vf, unsigned int fmt); /* forward declaration */ |
| 18 | 20 | |
| 19 | 21 | static int config(struct vf_instance_s* vf, |
| … |
… |
|
| 49 | 51 | return 0; |
| 50 | 52 | |
| 51 | 53 | ++vo_config_count; |
| | 54 | initial_set_video_colors(); |
| 52 | 55 | return 1; |
| 53 | 56 | } |
| 54 | 57 | |