Lines Matching full:matrix
141 * This matrix defines how the colors are generated, must be
362 /* Matrix coefficients */
417 { 0x4f, 0x80 }, /* "matrix coefficient 1" */
418 { 0x50, 0x80 }, /* "matrix coefficient 2" */
420 { 0x52, 0x22 }, /* "matrix coefficient 4" */
421 { 0x53, 0x5e }, /* "matrix coefficient 5" */
422 { 0x54, 0x80 }, /* "matrix coefficient 6" */
433 { 0x4f, 0xb3 }, /* "matrix coefficient 1" */
434 { 0x50, 0xb3 }, /* "matrix coefficient 2" */
436 { 0x52, 0x3d }, /* "matrix coefficient 4" */
437 { 0x53, 0xa7 }, /* "matrix coefficient 5" */
438 { 0x54, 0xe4 }, /* "matrix coefficient 6" */
449 { 0x4f, 0xb3 }, /* "matrix coefficient 1" */
450 { 0x50, 0xb3 }, /* "matrix coefficient 2" */
452 { 0x52, 0x3d }, /* "matrix coefficient 4" */
453 { 0x53, 0xa7 }, /* "matrix coefficient 5" */
454 { 0x54, 0xe4 }, /* "matrix coefficient 6" */
662 * Store information about the video data format. The color matrix
664 * The magic matrix numbers come from OmniVision.
1282 int matrix[CMATRIX_LEN]) in ov7670_store_cmatrix()
1297 if (matrix[i] < 0) { in ov7670_store_cmatrix()
1299 if (matrix[i] < -255) in ov7670_store_cmatrix()
1302 raw = (-1 * matrix[i]) & 0xff; in ov7670_store_cmatrix()
1304 if (matrix[i] > 255) in ov7670_store_cmatrix()
1307 raw = matrix[i] & 0xff; in ov7670_store_cmatrix()
1318 * Hue also requires messing with the color matrix. It also requires
1366 int matrix[CMATRIX_LEN], int sat, int hue) in ov7670_calc_cmatrix()
1373 matrix[i] = (info->fmt->cmatrix[i] * sat) >> 7; in ov7670_calc_cmatrix()
1380 memcpy(tmpmatrix, matrix, CMATRIX_LEN*sizeof(int)); in ov7670_calc_cmatrix()
1384 matrix[0] = (matrix[3]*sinth + matrix[0]*costh)/1000; in ov7670_calc_cmatrix()
1385 matrix[1] = (matrix[4]*sinth + matrix[1]*costh)/1000; in ov7670_calc_cmatrix()
1386 matrix[2] = (matrix[5]*sinth + matrix[2]*costh)/1000; in ov7670_calc_cmatrix()
1387 matrix[3] = (matrix[3]*costh - matrix[0]*sinth)/1000; in ov7670_calc_cmatrix()
1388 matrix[4] = (matrix[4]*costh - matrix[1]*sinth)/1000; in ov7670_calc_cmatrix()
1389 matrix[5] = (matrix[5]*costh - matrix[2]*sinth)/1000; in ov7670_calc_cmatrix()
1398 int matrix[CMATRIX_LEN]; in ov7670_s_sat_hue() local
1400 ov7670_calc_cmatrix(info, matrix, sat, hue); in ov7670_s_sat_hue()
1401 return ov7670_store_cmatrix(sd, matrix); in ov7670_s_sat_hue()