Lines Matching defs:matrix

139  * This matrix defines how the colors are generated, must be
399 { 0x4f, 0x80 }, /* "matrix coefficient 1" */
400 { 0x50, 0x80 }, /* "matrix coefficient 2" */
402 { 0x52, 0x22 }, /* "matrix coefficient 4" */
403 { 0x53, 0x5e }, /* "matrix coefficient 5" */
404 { 0x54, 0x80 }, /* "matrix coefficient 6" */
415 { 0x4f, 0xb3 }, /* "matrix coefficient 1" */
416 { 0x50, 0xb3 }, /* "matrix coefficient 2" */
418 { 0x52, 0x3d }, /* "matrix coefficient 4" */
419 { 0x53, 0xa7 }, /* "matrix coefficient 5" */
420 { 0x54, 0xe4 }, /* "matrix coefficient 6" */
431 { 0x4f, 0xb3 }, /* "matrix coefficient 1" */
432 { 0x50, 0xb3 }, /* "matrix coefficient 2" */
434 { 0x52, 0x3d }, /* "matrix coefficient 4" */
435 { 0x53, 0xa7 }, /* "matrix coefficient 5" */
436 { 0x54, 0xe4 }, /* "matrix coefficient 6" */
630 * Store information about the video data format. The color matrix
632 * The magic matrix numbers come from OmniVision.
1121 int matrix[CMATRIX_LEN])
1136 if (matrix[i] < 0) {
1138 if (matrix[i] < -255)
1141 raw = (-1 * matrix[i]) & 0xff;
1144 if (matrix[i] > 255)
1147 raw = matrix[i] & 0xff;
1157 * Hue also requires messing with the color matrix. It also requires
1205 int matrix[CMATRIX_LEN], int sat, int hue)
1212 matrix[i] = (info->fmt->cmatrix[i] * sat) >> 7;
1219 memcpy(tmpmatrix, matrix, CMATRIX_LEN*sizeof(int));
1223 matrix[0] = (matrix[3]*sinth + matrix[0]*costh)/1000;
1224 matrix[1] = (matrix[4]*sinth + matrix[1]*costh)/1000;
1225 matrix[2] = (matrix[5]*sinth + matrix[2]*costh)/1000;
1226 matrix[3] = (matrix[3]*costh - matrix[0]*sinth)/1000;
1227 matrix[4] = (matrix[4]*costh - matrix[1]*sinth)/1000;
1228 matrix[5] = (matrix[5]*costh - matrix[2]*sinth)/1000;
1237 int matrix[CMATRIX_LEN];
1240 ov7670_calc_cmatrix(info, matrix, sat, hue);
1241 ret = ov7670_store_cmatrix(sd, matrix);