Lines Matching full:matrix
142 * This matrix defines how the colors are generated, must be
363 /* Matrix coefficients */
418 { 0x4f, 0x80 }, /* "matrix coefficient 1" */
419 { 0x50, 0x80 }, /* "matrix coefficient 2" */
421 { 0x52, 0x22 }, /* "matrix coefficient 4" */
422 { 0x53, 0x5e }, /* "matrix coefficient 5" */
423 { 0x54, 0x80 }, /* "matrix coefficient 6" */
434 { 0x4f, 0xb3 }, /* "matrix coefficient 1" */
435 { 0x50, 0xb3 }, /* "matrix coefficient 2" */
437 { 0x52, 0x3d }, /* "matrix coefficient 4" */
438 { 0x53, 0xa7 }, /* "matrix coefficient 5" */
439 { 0x54, 0xe4 }, /* "matrix coefficient 6" */
450 { 0x4f, 0xb3 }, /* "matrix coefficient 1" */
451 { 0x50, 0xb3 }, /* "matrix coefficient 2" */
453 { 0x52, 0x3d }, /* "matrix coefficient 4" */
454 { 0x53, 0xa7 }, /* "matrix coefficient 5" */
455 { 0x54, 0xe4 }, /* "matrix coefficient 6" */
663 * Store information about the video data format. The color matrix
665 * The magic matrix numbers come from OmniVision.
1283 int matrix[CMATRIX_LEN]) in ov7670_store_cmatrix()
1298 if (matrix[i] < 0) { in ov7670_store_cmatrix()
1300 if (matrix[i] < -255) in ov7670_store_cmatrix()
1303 raw = (-1 * matrix[i]) & 0xff; in ov7670_store_cmatrix()
1305 if (matrix[i] > 255) in ov7670_store_cmatrix()
1308 raw = matrix[i] & 0xff; in ov7670_store_cmatrix()
1319 * Hue also requires messing with the color matrix. It also requires
1367 int matrix[CMATRIX_LEN], int sat, int hue) in ov7670_calc_cmatrix()
1374 matrix[i] = (info->fmt->cmatrix[i] * sat) >> 7; in ov7670_calc_cmatrix()
1381 memcpy(tmpmatrix, matrix, CMATRIX_LEN*sizeof(int)); in ov7670_calc_cmatrix()
1385 matrix[0] = (matrix[3]*sinth + matrix[0]*costh)/1000; in ov7670_calc_cmatrix()
1386 matrix[1] = (matrix[4]*sinth + matrix[1]*costh)/1000; in ov7670_calc_cmatrix()
1387 matrix[2] = (matrix[5]*sinth + matrix[2]*costh)/1000; in ov7670_calc_cmatrix()
1388 matrix[3] = (matrix[3]*costh - matrix[0]*sinth)/1000; in ov7670_calc_cmatrix()
1389 matrix[4] = (matrix[4]*costh - matrix[1]*sinth)/1000; in ov7670_calc_cmatrix()
1390 matrix[5] = (matrix[5]*costh - matrix[2]*sinth)/1000; in ov7670_calc_cmatrix()
1399 int matrix[CMATRIX_LEN]; in ov7670_s_sat_hue() local
1401 ov7670_calc_cmatrix(info, matrix, sat, hue); in ov7670_s_sat_hue()
1402 return ov7670_store_cmatrix(sd, matrix); in ov7670_s_sat_hue()