// SPDX-License-Identifier: MIT // // Copyright 2024 Advanced Micro Devices, Inc. #include "dc_spl_types.h" #include "dc_spl_scl_filters.h" //========================================= // <num_taps> = 2 // <num_phases> = 16 // <scale_ratio> = 0.833333 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = s1.10 // <CoefOut> = s1.12 //========================================= static const uint16_t filter_2tap_16p[18] = …; //========================================= // <num_taps> = 3 // <num_phases> = 16 // <scale_ratio> = 0.83333 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_3tap_16p_upscale[27] = …; //========================================= // <num_taps> = 3 // <num_phases> = 16 // <scale_ratio> = 1.16666 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_3tap_16p_116[27] = …; //========================================= // <num_taps> = 3 // <num_phases> = 16 // <scale_ratio> = 1.49999 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_3tap_16p_149[27] = …; //========================================= // <num_taps> = 3 // <num_phases> = 16 // <scale_ratio> = 1.83332 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_3tap_16p_183[27] = …; //========================================= // <num_taps> = 4 // <num_phases> = 16 // <scale_ratio> = 0.83333 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_4tap_16p_upscale[36] = …; //========================================= // <num_taps> = 4 // <num_phases> = 16 // <scale_ratio> = 1.16666 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_4tap_16p_116[36] = …; //========================================= // <num_taps> = 4 // <num_phases> = 16 // <scale_ratio> = 1.49999 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_4tap_16p_149[36] = …; //========================================= // <num_taps> = 4 // <num_phases> = 16 // <scale_ratio> = 1.83332 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_4tap_16p_183[36] = …; //========================================= // <num_taps> = 2 // <num_phases> = 64 // <scale_ratio> = 0.833333 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = s1.10 // <CoefOut> = s1.12 //========================================= static const uint16_t filter_2tap_64p[66] = …; //========================================= // <num_taps> = 3 // <num_phases> = 64 // <scale_ratio> = 0.83333 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_3tap_64p_upscale[99] = …; //========================================= // <num_taps> = 3 // <num_phases> = 64 // <scale_ratio> = 1.16666 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_3tap_64p_116[99] = …; //========================================= // <num_taps> = 3 // <num_phases> = 64 // <scale_ratio> = 1.49999 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_3tap_64p_149[99] = …; //========================================= // <num_taps> = 3 // <num_phases> = 64 // <scale_ratio> = 1.83332 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_3tap_64p_183[99] = …; //========================================= // <num_taps> = 4 // <num_phases> = 64 // <scale_ratio> = 0.83333 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_4tap_64p_upscale[132] = …; //========================================= // <num_taps> = 4 // <num_phases> = 64 // <scale_ratio> = 1.16666 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_4tap_64p_116[132] = …; //========================================= // <num_taps> = 4 // <num_phases> = 64 // <scale_ratio> = 1.49999 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_4tap_64p_149[132] = …; //========================================= // <num_taps> = 4 // <num_phases> = 64 // <scale_ratio> = 1.83332 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_4tap_64p_183[132] = …; //========================================= // <num_taps> = 5 // <num_phases> = 64 // <scale_ratio> = 0.83333 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_5tap_64p_upscale[165] = …; //========================================= // <num_taps> = 5 // <num_phases> = 64 // <scale_ratio> = 1.16666 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_5tap_64p_116[165] = …; //========================================= // <num_taps> = 5 // <num_phases> = 64 // <scale_ratio> = 1.49999 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_5tap_64p_149[165] = …; //========================================= // <num_taps> = 5 // <num_phases> = 64 // <scale_ratio> = 1.83332 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_5tap_64p_183[165] = …; //========================================= // <num_taps> = 6 // <num_phases> = 64 // <scale_ratio> = 0.83333 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_6tap_64p_upscale[198] = …; //========================================= // <num_taps> = 6 // <num_phases> = 64 // <scale_ratio> = 1.16666 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_6tap_64p_116[198] = …; //========================================= // <num_taps> = 6 // <num_phases> = 64 // <scale_ratio> = 1.49999 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_6tap_64p_149[198] = …; //========================================= // <num_taps> = 6 // <num_phases> = 64 // <scale_ratio> = 1.83332 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_6tap_64p_183[198] = …; //========================================= // <num_taps> = 7 // <num_phases> = 64 // <scale_ratio> = 0.83333 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_7tap_64p_upscale[231] = …; //========================================= // <num_taps> = 7 // <num_phases> = 64 // <scale_ratio> = 1.16666 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_7tap_64p_116[231] = …; //========================================= // <num_taps> = 7 // <num_phases> = 64 // <scale_ratio> = 1.49999 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_7tap_64p_149[231] = …; //========================================= // <num_taps> = 7 // <num_phases> = 64 // <scale_ratio> = 1.83332 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_7tap_64p_183[231] = …; //========================================= // <num_taps> = 8 // <num_phases> = 64 // <scale_ratio> = 0.83333 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_8tap_64p_upscale[264] = …; //========================================= // <num_taps> = 8 // <num_phases> = 64 // <scale_ratio> = 1.16666 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_8tap_64p_116[264] = …; //========================================= // <num_taps> = 8 // <num_phases> = 64 // <scale_ratio> = 1.49999 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_8tap_64p_149[264] = …; //========================================= // <num_taps> = 8 // <num_phases> = 64 // <scale_ratio> = 1.83332 (input/output) // <sharpness> = 0 // <CoefType> = ModifiedLanczos // <CoefQuant> = 1.10 // <CoefOut> = 1.12 //========================================= static const uint16_t filter_8tap_64p_183[264] = …; const uint16_t *spl_get_filter_3tap_16p(struct fixed31_32 ratio) { … } const uint16_t *spl_get_filter_3tap_64p(struct fixed31_32 ratio) { … } const uint16_t *spl_get_filter_4tap_16p(struct fixed31_32 ratio) { … } const uint16_t *spl_get_filter_4tap_64p(struct fixed31_32 ratio) { … } const uint16_t *spl_get_filter_5tap_64p(struct fixed31_32 ratio) { … } const uint16_t *spl_get_filter_6tap_64p(struct fixed31_32 ratio) { … } const uint16_t *spl_get_filter_7tap_64p(struct fixed31_32 ratio) { … } const uint16_t *spl_get_filter_8tap_64p(struct fixed31_32 ratio) { … } const uint16_t *spl_get_filter_2tap_16p(void) { … } const uint16_t *spl_get_filter_2tap_64p(void) { … }