Fix intra angle filter, changed from gauss filter table to run-time calculated 4-tap filter

This commit is contained in:
Marko Viitanen 2019-11-19 15:15:21 +02:00
parent 466d8772b0
commit eb2caf9118

View file

@ -243,7 +243,8 @@ static void kvz_angular_pred_generic(
if (dist_from_vert_or_hor <= filter_threshold) {
use_cubic = true;
}
int16_t const * const f = use_cubic ? cubic_filter[delta_fract] : intraGaussFilter[delta_fract];
const int16_t filter_coeff[4] = { 16 - (delta_fract >> 1), 32 - (delta_fract >> 1), 16 + (delta_fract >> 1), delta_fract >> 1 };
int16_t const * const f = use_cubic ? cubic_filter[delta_fract] : filter_coeff;
// Do 4-tap intra interpolation filtering
for (int_fast32_t x = 0; x < width; x++, ref_main_index++) {
p[0] = ref_main[ref_main_index];