// SPDX-License-Identifier: MIT // // Copyright 2024 Advanced Micro Devices, Inc. #include "dc_spl_types.h" #include "dc_spl_isharp_filters.h" //======================================== // Delta Gain 1DLUT // LUT content is packed as 4-bytes into one DWORD/entry // A_start = 0.000000 // A_end = 10.000000 // A_gain = 2.000000 // B_start = 11.000000 // B_end = 86.000000 // C_start = 40.000000 // C_end = 64.000000 //======================================== static const uint32_t filter_isharp_1D_lut_0[32] = …; //======================================== // Delta Gain 1DLUT // LUT content is packed as 4-bytes into one DWORD/entry // A_start = 0.000000 // A_end = 10.000000 // A_gain = 0.500000 // B_start = 11.000000 // B_end = 127.000000 // C_start = 96.000000 // C_end = 127.000000 //======================================== static const uint32_t filter_isharp_1D_lut_0p5x[32] = …; //======================================== // Delta Gain 1DLUT // LUT content is packed as 4-bytes into one DWORD/entry // A_start = 0.000000 // A_end = 10.000000 // A_gain = 1.000000 // B_start = 11.000000 // B_end = 127.000000 // C_start = 96.000000 // C_end = 127.000000 //======================================== static const uint32_t filter_isharp_1D_lut_1p0x[32] = …; //======================================== // Delta Gain 1DLUT // LUT content is packed as 4-bytes into one DWORD/entry // A_start = 0.000000 // A_end = 10.000000 // A_gain = 1.500000 // B_start = 11.000000 // B_end = 127.000000 // C_start = 96.000000 // C_end = 127.000000 //======================================== static const uint32_t filter_isharp_1D_lut_1p5x[32] = …; //======================================== // Delta Gain 1DLUT // LUT content is packed as 4-bytes into one DWORD/entry // A_start = 0.000000 // A_end = 10.000000 // A_gain = 2.000000 // B_start = 11.000000 // B_end = 127.000000 // C_start = 40.000000 // C_end = 127.000000 //======================================== static const uint32_t filter_isharp_1D_lut_2p0x[32] = …; // Wide scaler coefficients //======================================================== // <using> gen_scaler_coeffs.m // <date> 15-Dec-2021 // <coeffDescrip> 6t_64p_LanczosEd_p_1_p_10qb_ // <num_taps> 6 // <num_phases> 64 // <CoefType> LanczosEd // <CoefQuant> S1.10 //======================================================== static const uint16_t filter_isharp_wide_6tap_64p[198] = …; // Blur and scale coefficients //======================================================== // <using> gen_BlurScale_coeffs.m // <date> 25-Apr-2022 // <num_taps> 4 // <num_phases> 64 // <CoefType> Blur & Scale LPF // <CoefQuant> S1.10 //======================================================== static const uint16_t filter_isharp_bs_4tap_64p[198] = …; const uint32_t *spl_get_filter_isharp_1D_lut_0(void) { … } const uint32_t *spl_get_filter_isharp_1D_lut_0p5x(void) { … } const uint32_t *spl_get_filter_isharp_1D_lut_1p0x(void) { … } const uint32_t *spl_get_filter_isharp_1D_lut_1p5x(void) { … } const uint32_t *spl_get_filter_isharp_1D_lut_2p0x(void) { … } const uint16_t *spl_get_filter_isharp_wide_6tap_64p(void) { … } const uint16_t *spl_get_filter_isharp_bs_4tap_64p(void) { … }