23 #ifndef GR_COLOURSPACE_MATRIX__H
24 #define GR_COLOURSPACE_MATRIX__H
38 static g__constexpr
int scale = 256 ;
40 static g__constexpr
int ry = 256 ;
41 static g__constexpr
int ru = 0 ;
42 static g__constexpr
int rv = 359 ;
44 static g__constexpr
int gy = 256 ;
45 static g__constexpr
int gu = -88 ;
46 static g__constexpr
int gv = -183 ;
48 static g__constexpr
int by = 256 ;
49 static g__constexpr
int bu = 454 ;
50 static g__constexpr
int bv = 0 ;
59 static g__constexpr
int scale = 256 ;
61 static g__constexpr
int yr = 77 ;
62 static g__constexpr
int yg = 150 ;
63 static g__constexpr
int yb = 29 ;
65 static g__constexpr
int ur = -43 ;
66 static g__constexpr
int ug = -85 ;
67 static g__constexpr
int ub = 128 ;
69 static g__constexpr
int vr = 128 ;
70 static g__constexpr
int vg = -107 ;
71 static g__constexpr
int vb = -21 ;
79 static g__constexpr
int scale = 1000 ;
81 static g__constexpr
int ry = 1000 ;
82 static g__constexpr
int ru = 0 ;
83 static g__constexpr
int rv = 1402 ;
85 static g__constexpr
int gy = 1000 ;
86 static g__constexpr
int gu = -344 ;
87 static g__constexpr
int gv = -714 ;
89 static g__constexpr
int by = 1000 ;
90 static g__constexpr
int bu = 1772 ;
91 static g__constexpr
int bv = 0 ;
100 static g__constexpr
int scale = 1000 ;
102 static g__constexpr
int yr = 299 ;
103 static g__constexpr
int yg = 587 ;
104 static g__constexpr
int yb = 114 ;
106 static g__constexpr
int ur = -169 ;
107 static g__constexpr
int ug = -331 ;
108 static g__constexpr
int ub = 500 ;
110 static g__constexpr
int vr = 500 ;
111 static g__constexpr
int vg = -419 ;
112 static g__constexpr
int vb = -81 ;
Rgb-to-yuv matrix using scaled integers where 256 is 1.
Yuv-to-rgb matrix using scaled integers where 256 is 1.
Yuv-to-rgb matrix using scaled integers where 1000 is 1.
Rgb-to-yuv matrix using scaled integers where 1000 is 1.