/openbmc/linux/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_color_mgmt.c | 49 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() 121 void drm_ctm_to_coeffs(struct drm_property_blob *ctm_blob, u32 *coeffs) in drm_ctm_to_coeffs() argument [all …]
|
H A D | komeda_color_mgmt.h | 20 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);
|
/openbmc/linux/drivers/misc/echo/ |
H A D | fir.h | 44 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 …]
|
H A D | echo.c | 351 ec->fir_state.coeffs = ec->fir_taps16[0]; in oslec_update()
|
/openbmc/linux/drivers/gpu/drm/mediatek/ |
H A D | mtk_disp_ccorr.c | 110 uint16_t coeffs[9] = { 0 }; in mtk_ccorr_ctm_set() local 121 for (i = 0; i < ARRAY_SIZE(coeffs); i++) in mtk_ccorr_ctm_set() 122 coeffs[i] = mtk_ctm_s31_32_to_s1_n(input[i], matrix_bits); in mtk_ccorr_ctm_set() 124 mtk_ddp_write(cmdq_pkt, coeffs[0] << 16 | coeffs[1], in mtk_ccorr_ctm_set() 126 mtk_ddp_write(cmdq_pkt, coeffs[2] << 16 | coeffs[3], in mtk_ccorr_ctm_set() 128 mtk_ddp_write(cmdq_pkt, coeffs[4] << 16 | coeffs[5], in mtk_ccorr_ctm_set() 130 mtk_ddp_write(cmdq_pkt, coeffs[6] << 16 | coeffs[7], in mtk_ccorr_ctm_set() 132 mtk_ddp_write(cmdq_pkt, coeffs[8] << 16, in mtk_ccorr_ctm_set()
|
/openbmc/linux/drivers/gpu/drm/xlnx/ |
H A D | zynqmp_disp.c | 653 const u16 *coeffs; in zynqmp_disp_blend_set_output_format() local 659 coeffs = csc_identity_matrix; in zynqmp_disp_blend_set_output_format() 662 coeffs = csc_rgb_to_sdtv_matrix; in zynqmp_disp_blend_set_output_format() 669 coeffs[i]); in zynqmp_disp_blend_set_output_format() 723 const u16 *coeffs, in zynqmp_disp_blend_layer_set_csc() argument 748 zynqmp_disp_blend_write(disp, reg + 0, coeffs[i + swap[0]]); in zynqmp_disp_blend_layer_set_csc() 749 zynqmp_disp_blend_write(disp, reg + 4, coeffs[i + swap[1]]); in zynqmp_disp_blend_layer_set_csc() 750 zynqmp_disp_blend_write(disp, reg + 8, coeffs[i + swap[2]]); in zynqmp_disp_blend_layer_set_csc() 770 const u16 *coeffs; in zynqmp_disp_blend_layer_enable() local 784 coeffs = csc_sdtv_to_rgb_matrix; in zynqmp_disp_blend_layer_enable() [all …]
|
/openbmc/linux/drivers/media/platform/nxp/imx8-isi/ |
H A D | imx8-isi-hw.c | 218 const u32 *coeffs; in mxc_isi_channel_set_csc() local 228 coeffs = mxc_isi_yuv2rgb_coeffs; in mxc_isi_channel_set_csc() 234 coeffs = mxc_isi_rgb2yuv_coeffs; in mxc_isi_channel_set_csc() 246 mxc_isi_write(pipe, CHNL_CSC_COEFF0, coeffs[0]); in mxc_isi_channel_set_csc() 247 mxc_isi_write(pipe, CHNL_CSC_COEFF1, coeffs[1]); in mxc_isi_channel_set_csc() 248 mxc_isi_write(pipe, CHNL_CSC_COEFF2, coeffs[2]); in mxc_isi_channel_set_csc() 249 mxc_isi_write(pipe, CHNL_CSC_COEFF3, coeffs[3]); in mxc_isi_channel_set_csc() 250 mxc_isi_write(pipe, CHNL_CSC_COEFF4, coeffs[4]); in mxc_isi_channel_set_csc() 251 mxc_isi_write(pipe, CHNL_CSC_COEFF5, coeffs[5]); in mxc_isi_channel_set_csc()
|
/openbmc/linux/drivers/iio/light/ |
H A D | si1133.c | 248 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 …]
|
/openbmc/linux/drivers/gpu/drm/mxsfb/ |
H A D | lcdif_kms.c | 276 const u32 *coeffs = in lcdif_set_formats() local 283 writel(coeffs[0], lcdif->base + LCDC_V8_CSC0_COEF0); in lcdif_set_formats() 284 writel(coeffs[1], lcdif->base + LCDC_V8_CSC0_COEF1); in lcdif_set_formats() 285 writel(coeffs[2], lcdif->base + LCDC_V8_CSC0_COEF2); in lcdif_set_formats() 286 writel(coeffs[3], lcdif->base + LCDC_V8_CSC0_COEF3); in lcdif_set_formats() 287 writel(coeffs[4], lcdif->base + LCDC_V8_CSC0_COEF4); in lcdif_set_formats() 288 writel(coeffs[5], lcdif->base + LCDC_V8_CSC0_COEF5); in lcdif_set_formats()
|
/openbmc/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_hdmi.c | 1351 HDMI_WRITE(HDMI_CSC_12_11, (coeffs[0][1] << 16) | coeffs[0][0]); in vc5_hdmi_set_csc_coeffs() 1352 HDMI_WRITE(HDMI_CSC_14_13, (coeffs[0][3] << 16) | coeffs[0][2]); in vc5_hdmi_set_csc_coeffs() 1353 HDMI_WRITE(HDMI_CSC_22_21, (coeffs[1][1] << 16) | coeffs[1][0]); in vc5_hdmi_set_csc_coeffs() 1354 HDMI_WRITE(HDMI_CSC_24_23, (coeffs[1][3] << 16) | coeffs[1][2]); in vc5_hdmi_set_csc_coeffs() 1355 HDMI_WRITE(HDMI_CSC_32_31, (coeffs[2][1] << 16) | coeffs[2][0]); in vc5_hdmi_set_csc_coeffs() 1356 HDMI_WRITE(HDMI_CSC_34_33, (coeffs[2][3] << 16) | coeffs[2][2]); in vc5_hdmi_set_csc_coeffs() 1365 HDMI_WRITE(HDMI_CSC_12_11, (coeffs[1][1] << 16) | coeffs[1][0]); in vc5_hdmi_set_csc_coeffs_swap() 1366 HDMI_WRITE(HDMI_CSC_14_13, (coeffs[1][3] << 16) | coeffs[1][2]); in vc5_hdmi_set_csc_coeffs_swap() 1367 HDMI_WRITE(HDMI_CSC_22_21, (coeffs[2][1] << 16) | coeffs[2][0]); in vc5_hdmi_set_csc_coeffs_swap() 1368 HDMI_WRITE(HDMI_CSC_24_23, (coeffs[2][3] << 16) | coeffs[2][2]); in vc5_hdmi_set_csc_coeffs_swap() [all …]
|
/openbmc/linux/drivers/media/test-drivers/vicodec/ |
H A D | codec-fwht.c | 711 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()
|
H A D | codec-fwht.h | 83 s16 coeffs[8 * 8]; member
|
/openbmc/linux/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_csi2.c | 244 atomisp_csi2_configure_calc(const short int coeffs[2], int mipi_freq, int def) in atomisp_csi2_configure_calc() 253 r = accinv * coeffs[1] * (500000000 >> LIMIT_SHIFT); in atomisp_csi2_configure_calc() 255 r += accinv * coeffs[0]; in atomisp_csi2_configure_calc()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce110/ |
H A D | dce110_transform_v.c | 285 const uint16_t *coeffs, in program_multi_taps_filter() argument 297 if (!coeffs) in program_multi_taps_filter() 336 data, coeffs[array_idx], in program_multi_taps_filter() 352 data, coeffs[array_idx + 1], in program_multi_taps_filter()
|
/openbmc/linux/drivers/gpu/drm/arm/ |
H A D | malidp_crtc.c | 128 u32 coeffs[MALIDP_COEFFTAB_NUM_COEFFS]) in malidp_generate_gamma_table() 143 coeffs[i] = DE_COEFTAB_DATA(a, b); in malidp_generate_gamma_table()
|
/openbmc/linux/drivers/media/platform/rockchip/rkisp1/ |
H A D | rkisp1-params.c | 1109 const struct csm_coeffs *coeffs; in rkisp1_csm_config() local 1116 coeffs = &rec601_coeffs; in rkisp1_csm_config() 1119 coeffs = &rec709_coeffs; in rkisp1_csm_config() 1122 coeffs = &rec2020_coeffs; in rkisp1_csm_config() 1125 coeffs = &smpte240m_coeffs; in rkisp1_csm_config() 1130 csm = coeffs->full; in rkisp1_csm_config() 1135 csm = coeffs->limited; in rkisp1_csm_config()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_transform.c | 210 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()
|
/openbmc/linux/drivers/media/i2c/ |
H A D | max2175.c | 428 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()
|
/openbmc/linux/sound/pci/asihpi/ |
H A D | hpifunc.c | 2239 u16 hpi_parametric_eq_get_coeffs(u32 h_control, u16 index, short coeffs[5] in hpi_parametric_eq_get_coeffs() 2254 coeffs[0] = (short)hr.u.c.an_log_value[0]; in hpi_parametric_eq_get_coeffs() 2255 coeffs[1] = (short)hr.u.c.an_log_value[1]; in hpi_parametric_eq_get_coeffs() 2256 coeffs[2] = (short)hr.u.c.param1; in hpi_parametric_eq_get_coeffs() 2257 coeffs[3] = (short)(hr.u.c.param1 >> 16); in hpi_parametric_eq_get_coeffs() 2258 coeffs[4] = (short)hr.u.c.param2; in hpi_parametric_eq_get_coeffs()
|
H A D | hpi.h | 1602 u16 hpi_parametric_eq_get_coeffs(u32 h_control, u16 index, short coeffs[5]
|
/openbmc/linux/drivers/gpu/drm/tegra/ |
H A D | hub.c | 302 static const unsigned int coeffs[192] = { in tegra_shared_plane_setup_scaler() local 360 value = COEFF_INDEX(index) | COEFF_DATA(coeffs[index]); in tegra_shared_plane_setup_scaler()
|
/openbmc/linux/Documentation/input/devices/ |
H A D | iforce-protocol.rst | 190 The encoding is a bit funny here: For coeffs, these are signed values. The
|
/openbmc/openbmc/meta-raspberrypi/recipes-multimedia/rpidistro-ffmpeg/files/ |
H A D | 0004-ffmpeg-4.3.4-rpi_14.patch | 21301 + int16_t *coeffs; 21854 + FFSWAP(int16_t, coeffs[i], coeffs[16 - i - 1]); 33510 + return coeffs; 34976 + // Copy coeffs 40856 + coeffs[x] += coeffs[x - size]; 40862 + coeffs[x] += coeffs[x - 1]; 40878 + *coeffs = (*coeffs + offset) >> shift; 40885 + *coeffs = *coeffs << -shift; 40925 + TR_4x4_LUMA(coeffs, coeffs, 1, SCALE); 40926 + coeffs += 4; [all …]
|
/openbmc/linux/drivers/staging/media/ipu3/ |
H A D | ipu3-css-params.c | 46 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()
|