avfilter/vf_framerate: change blend factor precision
authorMarton Balint <cus@passwd.hu>
Mon, 15 Jan 2018 21:19:46 +0000 (22:19 +0100)
committerMarton Balint <cus@passwd.hu>
Sun, 28 Jan 2018 17:50:50 +0000 (18:50 +0100)
commit2cbe6bac0337939f023bd1c37a9c455e6d535f3a
treeb648ae97976e20afcf2351a14cff180fd3e07d61
parent1b6ffe9aca1bdcc0bf2249c8c1314faa1ab0dae6
avfilter/vf_framerate: change blend factor precision

This is done mainly in preparation for the SIMD patches.

- for the 8-bit input, decrease the blend factor precision to 7-bit.
- for the 16-bit input, increase the blend factor precision to 15-bit.
- make sure the blend functions are not called with 0 or maximum blending
  factors, because we don't want the signed factor integers to overflow.

Fate test changes are due to different rounding.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavfilter/vf_framerate.c
tests/ref/fate/filter-framerate-12bit-down
tests/ref/fate/filter-framerate-12bit-up
tests/ref/fate/filter-framerate-up