Lines Matching refs:cstd
42 * mat44 csc, cstd, procamp, bias
43 * csc = cstd * (procamp * bias)
45 * Where cstd is a matrix corresponding to one of the color standards (BT.601, BT.709, etc)
92 * [ c*cstd[ 0], c*cstd[ 1]*s*cos(h) - c*cstd[ 2]*s*sin(h), c*cstd[ 2]*s*cos(h) + c*cstd[ 1]*s*sin(h), cstd[ 3] + cstd[ 0]*(b + c*ybias) + cstd[ 1]*(c*cbbias*s*cos(h) + c*crbias*s*sin(h)) + cstd[ 2]*(c*crbias*s*cos(h) - c*cbbias*s*sin(h))]
93 * [ c*cstd[ 4], c*cstd[ 5]*s*cos(h) - c*cstd[ 6]*s*sin(h), c*cstd[ 6]*s*cos(h) + c*cstd[ 5]*s*sin(h), cstd[ 7] + cstd[ 4]*(b + c*ybias) + cstd[ 5]*(c*cbbias*s*cos(h) + c*crbias*s*sin(h)) + cstd[ 6]*(c*crbias*s*cos(h) - c*cbbias*s*sin(h))]
94 * [ c*cstd[ 8], c*cstd[ 9]*s*cos(h) - c*cstd[10]*s*sin(h), c*cstd[10]*s*cos(h) + c*cstd[ 9]*s*sin(h), cstd[11] + cstd[ 8]*(b + c*ybias) + cstd[ 9]*(c*cbbias*s*cos(h) + c*crbias*s*sin(h)) + cstd[10]*(c*crbias*s*cos(h) - c*cbbias*s*sin(h))]
95 * [ c*cstd[12], c*cstd[13]*s*cos(h) - c*cstd[14]*s*sin(h), c*cstd[14]*s*cos(h) + c*cstd[13]*s*sin(h), cstd[15] + cstd[12]*(b + c*ybias) + cstd[13]*(c*cbbias*s*cos(h) + c*crbias*s*sin(h)) + cstd[14]*(c*crbias*s*cos(h) - c*cbbias*s*sin(h))]
169 const vl_csc_matrix *cstd;
185 cstd = &bt_601;
188 cstd = &bt_709;
191 cstd = &smpte240m;
203 (*matrix)[0][0] = c * (*cstd)[0][0];
204 (*matrix)[0][1] = (*cstd)[0][1] * x - (*cstd)[0][2] * y;
205 (*matrix)[0][2] = (*cstd)[0][2] * x + (*cstd)[0][1] * y;
206 (*matrix)[0][3] = (*cstd)[0][3] + (*cstd)[0][0] * b +
207 (*cstd)[0][1] * (x * cbbias + y * crbias) +
208 (*cstd)[0][2] * (x * crbias - y * cbbias);
210 (*matrix)[1][0] = c * (*cstd)[1][0];
211 (*matrix)[1][1] = (*cstd)[1][1] * x - (*cstd)[1][2] * y;
212 (*matrix)[1][2] = (*cstd)[1][2] * x + (*cstd)[1][1] * y;
213 (*matrix)[1][3] = (*cstd)[1][3] + (*cstd)[1][0] * b +
214 (*cstd)[1][1] * (x * cbbias + y * crbias) +
215 (*cstd)[1][2] * (x * crbias - y * cbbias);
217 (*matrix)[2][0] = c * (*cstd)[2][0];
218 (*matrix)[2][1] = (*cstd)[2][1] * x - (*cstd)[2][2] * y;
219 (*matrix)[2][2] = (*cstd)[2][2] * x + (*cstd)[2][1] * y;
220 (*matrix)[2][3] = (*cstd)[2][3] + (*cstd)[2][0] * b +
221 (*cstd)[2][1] * (x * cbbias + y * crbias) +
222 (*cstd)[2][2] * (x * crbias - y * cbbias);