1 #ifndef __GLVIDEO_PARAMS_H
2 #define __GLVIDEO_PARAMS_H
14 OSDmode
& operator++(OSDmode
& l
)
16 l
= (OSDmode
) ((l
+ 1) % OSD_MAX
);
21 std::istream
& operator>>(std::istream
& s
, OSDmode
& m
)
23 s
>> (unsigned int &)m
;
27 struct GLvideo_params
{
39 /* offset1 is the offset applied to src video
40 * offset1 result is multiplied by mul
41 * offset2 is then added */
44 int input_luma_blacklevel
;
45 int input_chroma_blacklevel
;
47 int output_blacklevel
;
49 float chrominance_mul
;
50 float luminance_offset2
;
51 float chrominance_offset2
;
53 /*optionally turn off luminance or chrominance channels*/
57 /* what colour matrix */
62 /* @interlaced_source@ modifies behaviour when repeating
63 * frames (paused) and playing backwards (field reversal)
64 * @deinterlace@ causes a .5 .5 deinterlacer to be used */
65 bool interlaced_source
;
68 /* @aspect_ratio_lock@ forces the assumption that
69 * the video PAR is the same as the device PAR */
71 bool aspect_ratio_lock
;
74 /* SetLumaCoeffsRec709
75 * Set Kr,Kg,Kb to have the luma coefficients defined in ITU-R Rec BT.709
76 * NB, these are *not* the colour primaries */
78 SetLumaCoeffsRec709(GLvideo_params
&p
)
85 /* SetLumaCoeffsRec601
86 * Set Kr,Kg,Kb to have the luma coefficients defined in ITU-R Rec BT.601
87 * NB, these are *not* the colour primaries */
89 SetLumaCoeffsRec601(GLvideo_params
&p
)