From: Steinar H. Gunderson Date: Thu, 3 Apr 2014 20:40:23 +0000 (+0200) Subject: Re-add resample kernel normalization, which was broken by accident. X-Git-Tag: 1.1~6 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=27d066774adf38a774934c09746d638196d7d392;ds=sidebyside Re-add resample kernel normalization, which was broken by accident. --- diff --git a/resample_effect.cpp b/resample_effect.cpp index d136e1c..792d861 100644 --- a/resample_effect.cpp +++ b/resample_effect.cpp @@ -423,7 +423,6 @@ void SingleResamplePassEffect::update_texture(GLuint glsl_program_num, const str // Normalize so that the sum becomes one. Note that we do it twice; // this sometimes helps a tiny little bit when we have many samples. -#if 0 for (int normalize_pass = 0; normalize_pass < 2; ++normalize_pass) { double sum = 0.0; for (int i = 0; i < src_bilinear_samples; ++i) { @@ -434,7 +433,6 @@ void SingleResamplePassEffect::update_texture(GLuint glsl_program_num, const str fp16_to_fp64(bilinear_weights_fp16_ptr[i * 2 + 0]) / sum); } } -#endif } // Encode as a two-component texture. Note the GL_REPEAT.