Lines Matching refs:matrix
1156 int matrix[CMATRIX_LEN]) in ov7670_store_cmatrix()
1171 if (matrix[i] < 0) { in ov7670_store_cmatrix()
1173 if (matrix[i] < -255) in ov7670_store_cmatrix()
1176 raw = (-1 * matrix[i]) & 0xff; in ov7670_store_cmatrix()
1179 if (matrix[i] > 255) in ov7670_store_cmatrix()
1182 raw = matrix[i] & 0xff; in ov7670_store_cmatrix()
1240 int matrix[CMATRIX_LEN], int sat, int hue) in ov7670_calc_cmatrix()
1247 matrix[i] = (info->fmt->cmatrix[i] * sat) >> 7; in ov7670_calc_cmatrix()
1254 memcpy(tmpmatrix, matrix, CMATRIX_LEN*sizeof(int)); in ov7670_calc_cmatrix()
1258 matrix[0] = (matrix[3]*sinth + matrix[0]*costh)/1000; in ov7670_calc_cmatrix()
1259 matrix[1] = (matrix[4]*sinth + matrix[1]*costh)/1000; in ov7670_calc_cmatrix()
1260 matrix[2] = (matrix[5]*sinth + matrix[2]*costh)/1000; in ov7670_calc_cmatrix()
1261 matrix[3] = (matrix[3]*costh - matrix[0]*sinth)/1000; in ov7670_calc_cmatrix()
1262 matrix[4] = (matrix[4]*costh - matrix[1]*sinth)/1000; in ov7670_calc_cmatrix()
1263 matrix[5] = (matrix[5]*costh - matrix[2]*sinth)/1000; in ov7670_calc_cmatrix()
1272 int matrix[CMATRIX_LEN]; in ov7670_s_sat_hue() local
1275 ov7670_calc_cmatrix(info, matrix, sat, hue); in ov7670_s_sat_hue()
1276 ret = ov7670_store_cmatrix(sd, matrix); in ov7670_s_sat_hue()