Home
last modified time | relevance | path

Searched refs:coeffs (Results 1 – 17 of 17) sorted by relevance

/drivers/gpu/drm/arm/display/komeda/
Dkomeda_color_mgmt.c49 const s32 *coeffs; in komeda_select_yuv2rgb_coeffs() local
53 coeffs = narrow ? yuv2rgb_bt709_narrow : yuv2rgb_bt709_wide; in komeda_select_yuv2rgb_coeffs()
56 coeffs = narrow ? yuv2rgb_bt601_narrow : yuv2rgb_bt601_wide; in komeda_select_yuv2rgb_coeffs()
59 coeffs = yuv2rgb_bt2020; in komeda_select_yuv2rgb_coeffs()
62 coeffs = NULL; in komeda_select_yuv2rgb_coeffs()
66 return coeffs; in komeda_select_yuv2rgb_coeffs()
92 drm_lut_to_coeffs(struct drm_property_blob *lut_blob, u32 *coeffs, in drm_lut_to_coeffs() argument
108 coeffs[num++] = drm_color_lut_extract(lut[in].red, in drm_lut_to_coeffs()
113 coeffs[num] = BIT(KOMEDA_COLOR_PRECISION); in drm_lut_to_coeffs()
116 void drm_lut_to_fgamma_coeffs(struct drm_property_blob *lut_blob, u32 *coeffs) in drm_lut_to_fgamma_coeffs() argument
[all …]
Dkomeda_color_mgmt.h20 void drm_lut_to_fgamma_coeffs(struct drm_property_blob *lut_blob, u32 *coeffs);
21 void drm_ctm_to_coeffs(struct drm_property_blob *ctm_blob, u32 *coeffs);
/drivers/misc/echo/
Dfir.h44 const int16_t *coeffs; member
56 const int32_t *coeffs; member
67 const float *coeffs; member
72 const int16_t *coeffs, int taps) in fir16_create() argument
76 fir->coeffs = coeffs; in fir16_create()
104 y += fir->coeffs[i] * fir->history[i - offset1]; in fir16()
106 y += fir->coeffs[i] * fir->history[i + offset2]; in fir16()
114 const int32_t *coeffs, int taps) in fir32_create() argument
118 fir->coeffs = coeffs; in fir32_create()
145 y += fir->coeffs[i] * fir->history[i - offset1]; in fir32()
[all …]
Decho.c351 ec->fir_state.coeffs = ec->fir_taps16[0]; in oslec_update()
/drivers/gpu/drm/mediatek/
Dmtk_disp_ccorr.c115 uint16_t coeffs[9] = { 0 }; in mtk_ccorr_ctm_set() local
126 for (i = 0; i < ARRAY_SIZE(coeffs); i++) in mtk_ccorr_ctm_set()
127 coeffs[i] = mtk_ctm_s31_32_to_s1_n(input[i], matrix_bits); in mtk_ccorr_ctm_set()
129 mtk_ddp_write(cmdq_pkt, coeffs[0] << 16 | coeffs[1], in mtk_ccorr_ctm_set()
131 mtk_ddp_write(cmdq_pkt, coeffs[2] << 16 | coeffs[3], in mtk_ccorr_ctm_set()
133 mtk_ddp_write(cmdq_pkt, coeffs[4] << 16 | coeffs[5], in mtk_ccorr_ctm_set()
135 mtk_ddp_write(cmdq_pkt, coeffs[6] << 16 | coeffs[7], in mtk_ccorr_ctm_set()
137 mtk_ddp_write(cmdq_pkt, coeffs[8] << 16, in mtk_ccorr_ctm_set()
/drivers/iio/light/
Dsi1133.c248 const struct si1133_coeff *coeffs) in si1133_calculate_output() argument
256 shift = ((u16)coeffs->info & 0xFF00) >> 8; in si1133_calculate_output()
263 coeffs->mag, shift); in si1133_calculate_output()
270 coeffs->mag, shift); in si1133_calculate_output()
283 const struct si1133_coeff *coeffs) in si1133_calc_polynomial() argument
291 if (coeffs->info < 0) in si1133_calc_polynomial()
296 x_order = si1133_get_x_order(coeffs->info); in si1133_calc_polynomial()
297 y_order = si1133_get_y_order(coeffs->info); in si1133_calc_polynomial()
301 sign * coeffs->mag << SI1133_LUX_OUTPUT_FRACTION; in si1133_calc_polynomial()
306 coeffs); in si1133_calc_polynomial()
[all …]
/drivers/gpu/drm/i915/display/
Dintel_color.c233 u16 coeffs[9]) in ilk_csc_convert_ctm()
258 coeffs[i] = 0; in ilk_csc_convert_ctm()
262 coeffs[i] |= 1 << 15; in ilk_csc_convert_ctm()
265 coeffs[i] |= (3 << 12) | in ilk_csc_convert_ctm()
268 coeffs[i] |= (2 << 12) | in ilk_csc_convert_ctm()
271 coeffs[i] |= (1 << 12) | in ilk_csc_convert_ctm()
274 coeffs[i] |= ILK_CSC_COEFF_FP(abs_coeff, 9); in ilk_csc_convert_ctm()
276 coeffs[i] |= (7 << 12) | in ilk_csc_convert_ctm()
279 coeffs[i] |= (6 << 12) | in ilk_csc_convert_ctm()
357 u16 coeffs[9]; in chv_load_cgm_csc() local
[all …]
/drivers/gpu/drm/xlnx/
Dzynqmp_disp.c711 const u16 *coeffs; in zynqmp_disp_blend_set_output_format() local
717 coeffs = csc_identity_matrix; in zynqmp_disp_blend_set_output_format()
720 coeffs = csc_rgb_to_sdtv_matrix; in zynqmp_disp_blend_set_output_format()
727 coeffs[i]); in zynqmp_disp_blend_set_output_format()
781 const u16 *coeffs, in zynqmp_disp_blend_layer_set_csc() argument
806 zynqmp_disp_blend_write(disp, reg + 0, coeffs[i + swap[0]]); in zynqmp_disp_blend_layer_set_csc()
807 zynqmp_disp_blend_write(disp, reg + 4, coeffs[i + swap[1]]); in zynqmp_disp_blend_layer_set_csc()
808 zynqmp_disp_blend_write(disp, reg + 8, coeffs[i + swap[2]]); in zynqmp_disp_blend_layer_set_csc()
828 const u16 *coeffs; in zynqmp_disp_blend_layer_enable() local
842 coeffs = csc_sdtv_to_rgb_matrix; in zynqmp_disp_blend_layer_enable()
[all …]
/drivers/media/test-drivers/vicodec/
Dcodec-fwht.c711 fwht(input, cf->coeffs, stride, input_step, 1); in encode_plane()
712 quantize_intra(cf->coeffs, cf->de_coeffs, in encode_plane()
717 fwht16(deltablock, cf->coeffs, 8, 0); in encode_plane()
718 quantize_inter(cf->coeffs, cf->de_coeffs, in encode_plane()
732 size = rlc(cf->coeffs, *rlco, blocktype); in encode_plane()
886 stat = derlc(rlco, cf->coeffs, end_of_rlco_buf); in decode_plane()
890 dequantize_inter(cf->coeffs); in decode_plane()
892 dequantize_intra(cf->coeffs); in decode_plane()
894 ifwht(cf->coeffs, cf->de_fwht, in decode_plane()
Dcodec-fwht.h83 s16 coeffs[8 * 8]; member
/drivers/staging/media/atomisp/pci/
Datomisp_csi2.c286 atomisp_csi2_configure_calc(const short int coeffs[2], int mipi_freq, int def) in atomisp_csi2_configure_calc()
295 r = accinv * coeffs[1] * (500000000 >> LIMIT_SHIFT); in atomisp_csi2_configure_calc()
297 r += accinv * coeffs[0]; in atomisp_csi2_configure_calc()
/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_transform_v.c287 const uint16_t *coeffs, in program_multi_taps_filter() argument
299 if (!coeffs) in program_multi_taps_filter()
338 data, coeffs[array_idx], in program_multi_taps_filter()
354 data, coeffs[array_idx + 1], in program_multi_taps_filter()
/drivers/gpu/drm/arm/
Dmalidp_crtc.c127 u32 coeffs[MALIDP_COEFFTAB_NUM_COEFFS]) in malidp_generate_gamma_table()
142 coeffs[i] = DE_COEFTAB_DATA(a, b); in malidp_generate_gamma_table()
/drivers/gpu/drm/amd/display/dc/dce/
Ddce_transform.c210 const uint16_t *coeffs, in program_multi_taps_filter() argument
220 if (!coeffs) in program_multi_taps_filter()
235 uint16_t even_coeff = coeffs[array_idx]; in program_multi_taps_filter()
245 odd_coeff = coeffs[array_idx + 1]; in program_multi_taps_filter()
/drivers/media/i2c/
Dmax2175.c428 u8 bank, const u16 *coeffs) in max2175_set_filter_coeffs() argument
441 max2175_write(ctx, 115, coeffs[i] >> 8); in max2175_set_filter_coeffs()
442 max2175_write(ctx, 116, coeffs[i]); in max2175_set_filter_coeffs()
/drivers/gpu/drm/tegra/
Dhub.c299 static const unsigned int coeffs[192] = { in tegra_shared_plane_setup_scaler() local
357 value = COEFF_INDEX(index) | COEFF_DATA(coeffs[index]); in tegra_shared_plane_setup_scaler()
/drivers/staging/media/ipu3/
Dipu3-css-params.c46 const int *coeffs, unsigned int coeffs_size, in imgu_css_scaler_setup_lut() argument
76 s64 coeff = coeffs[coeffs_size - in imgu_css_scaler_setup_lut()