Lines Matching full:matrix

142  * This matrix defines how the colors are generated, must be
356 /* Matrix coefficients */
411 { 0x4f, 0x80 }, /* "matrix coefficient 1" */
412 { 0x50, 0x80 }, /* "matrix coefficient 2" */
414 { 0x52, 0x22 }, /* "matrix coefficient 4" */
415 { 0x53, 0x5e }, /* "matrix coefficient 5" */
416 { 0x54, 0x80 }, /* "matrix coefficient 6" */
427 { 0x4f, 0xb3 }, /* "matrix coefficient 1" */
428 { 0x50, 0xb3 }, /* "matrix coefficient 2" */
430 { 0x52, 0x3d }, /* "matrix coefficient 4" */
431 { 0x53, 0xa7 }, /* "matrix coefficient 5" */
432 { 0x54, 0xe4 }, /* "matrix coefficient 6" */
443 { 0x4f, 0xb3 }, /* "matrix coefficient 1" */
444 { 0x50, 0xb3 }, /* "matrix coefficient 2" */
446 { 0x52, 0x3d }, /* "matrix coefficient 4" */
447 { 0x53, 0xa7 }, /* "matrix coefficient 5" */
448 { 0x54, 0xe4 }, /* "matrix coefficient 6" */
656 * Store information about the video data format. The color matrix
658 * The magic matrix numbers come from OmniVision.
1279 int matrix[CMATRIX_LEN]) in ov7670_store_cmatrix()
1294 if (matrix[i] < 0) { in ov7670_store_cmatrix()
1296 if (matrix[i] < -255) in ov7670_store_cmatrix()
1299 raw = (-1 * matrix[i]) & 0xff; in ov7670_store_cmatrix()
1301 if (matrix[i] > 255) in ov7670_store_cmatrix()
1304 raw = matrix[i] & 0xff; in ov7670_store_cmatrix()
1315 * Hue also requires messing with the color matrix. It also requires
1363 int matrix[CMATRIX_LEN], int sat, int hue) in ov7670_calc_cmatrix()
1370 matrix[i] = (info->fmt->cmatrix[i] * sat) >> 7; in ov7670_calc_cmatrix()
1377 memcpy(tmpmatrix, matrix, CMATRIX_LEN*sizeof(int)); in ov7670_calc_cmatrix()
1381 matrix[0] = (matrix[3]*sinth + matrix[0]*costh)/1000; in ov7670_calc_cmatrix()
1382 matrix[1] = (matrix[4]*sinth + matrix[1]*costh)/1000; in ov7670_calc_cmatrix()
1383 matrix[2] = (matrix[5]*sinth + matrix[2]*costh)/1000; in ov7670_calc_cmatrix()
1384 matrix[3] = (matrix[3]*costh - matrix[0]*sinth)/1000; in ov7670_calc_cmatrix()
1385 matrix[4] = (matrix[4]*costh - matrix[1]*sinth)/1000; in ov7670_calc_cmatrix()
1386 matrix[5] = (matrix[5]*costh - matrix[2]*sinth)/1000; in ov7670_calc_cmatrix()
1395 int matrix[CMATRIX_LEN]; in ov7670_s_sat_hue() local
1397 ov7670_calc_cmatrix(info, matrix, sat, hue); in ov7670_s_sat_hue()
1398 return ov7670_store_cmatrix(sd, matrix); in ov7670_s_sat_hue()