Lines Matching full:csc
355 static int calc_csc_coeffs(struct ipu_ic_csc *csc) in calc_csc_coeffs() argument
360 tbl_idx = (QUANT_MAP(csc->in_cs.quant) << 1) | in calc_csc_coeffs()
361 QUANT_MAP(csc->out_cs.quant); in calc_csc_coeffs()
363 if (csc->in_cs.cs == csc->out_cs.cs) { in calc_csc_coeffs()
364 csc->params = (csc->in_cs.cs == IPUV3_COLORSPACE_YUV) ? in calc_csc_coeffs()
372 switch (csc->out_cs.enc) { in calc_csc_coeffs()
374 params_tbl = (csc->in_cs.cs == IPUV3_COLORSPACE_YUV) ? in calc_csc_coeffs()
378 params_tbl = (csc->in_cs.cs == IPUV3_COLORSPACE_YUV) ? in calc_csc_coeffs()
385 csc->params = *params_tbl[tbl_idx]; in calc_csc_coeffs()
390 int __ipu_ic_calc_csc(struct ipu_ic_csc *csc) in __ipu_ic_calc_csc() argument
392 return calc_csc_coeffs(csc); in __ipu_ic_calc_csc()
396 int ipu_ic_calc_csc(struct ipu_ic_csc *csc, in ipu_ic_calc_csc() argument
404 ipu_ic_fill_colorspace(&csc->in_cs, in_enc, in_quant, in_cs); in ipu_ic_calc_csc()
405 ipu_ic_fill_colorspace(&csc->out_cs, out_enc, out_quant, out_cs); in ipu_ic_calc_csc()
407 return __ipu_ic_calc_csc(csc); in ipu_ic_calc_csc()