Lines Matching full:matrix
41 * To calculate the color space conversion matrix csc with ProcAmp adjustments,
45 * Where cstd is a matrix corresponding to one of the color standards (BT.601, BT.709, etc)
47 * bias is a matrix corresponding to the kind of YCbCr -> RGB mapping wanted (1:1, full)
177 vl_csc_matrix *matrix)
191 assert(matrix);
206 memcpy(matrix, identity, sizeof(vl_csc_matrix));
210 (*matrix)[0][0] = c * (*cstd)[0][0];
211 (*matrix)[0][1] = c * (*cstd)[0][1] * s * cosf(h) - c * (*cstd)[0][2] * s * sinf(h);
212 (*matrix)[0][2] = c * (*cstd)[0][2] * s * cosf(h) + c * (*cstd)[0][1] * s * sinf(h);
213 (*matrix)[0][3] = (*cstd)[0][3] + (*cstd)[0][0] * (b + c * ybias) +
217 (*matrix)[1][0] = c * (*cstd)[1][0];
218 (*matrix)[1][1] = c * (*cstd)[1][1] * s * cosf(h) - c * (*cstd)[1][2] * s * sinf(h);
219 (*matrix)[1][2] = c * (*cstd)[1][2] * s * cosf(h) + c * (*cstd)[1][1] * s * sinf(h);
220 (*matrix)[1][3] = (*cstd)[1][3] + (*cstd)[1][0] * (b + c * ybias) +
224 (*matrix)[2][0] = c * (*cstd)[2][0];
225 (*matrix)[2][1] = c * (*cstd)[2][1] * s * cosf(h) - c * (*cstd)[2][2] * s * sinf(h);
226 (*matrix)[2][2] = c * (*cstd)[2][2] * s * cosf(h) + c * (*cstd)[2][1] * s * sinf(h);
227 (*matrix)[2][3] = (*cstd)[2][3] + (*cstd)[2][0] * (b + c * ybias) +