Lines Matching refs: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)
157 vl_csc_matrix *matrix)
181 assert(matrix);
194 memcpy(matrix, bt_709_rev, sizeof(vl_csc_matrix));
199 memcpy(matrix, identity, sizeof(vl_csc_matrix));
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 +
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 +
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 +