From: Steinar H. Gunderson Date: Sat, 25 Jan 2014 11:42:56 +0000 (+0100) Subject: Rescale resampling weights so that the sum becomes one. X-Git-Tag: 1.0~55 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=aa3e630eb0c455921c721f9ccd84e872bc9757bc;hp=aa3e630eb0c455921c721f9ccd84e872bc9757bc Rescale resampling weights so that the sum becomes one. For some reason, I had forgotten this, and it showed up because Qt has buggy handling of pixels with alpha != 0xff. Add unit test so it doesn't happen again. I'm a bit concerned that rounding might cause problems so that we should perhaps renormalize after the bilinear conversion, but we can deal with that later if it should show up. ---