]> granicus.if.org Git - libass/commit
Calculate \be using [0..64] value range (like VSFilter)
authorOleg Oshmyan <chortos@inbox.lv>
Thu, 13 Mar 2014 03:15:18 +0000 (03:15 +0000)
committerOleg Oshmyan <chortos@inbox.lv>
Tue, 10 Feb 2015 02:42:35 +0000 (04:42 +0200)
commit0f367cc55086e46070e4c4cda9a1800176bed3c0
treefac7afe0b15febf7ee5d30e8b5c44ba30ceeadbb
parent461ba65d18957aa20c686c22d4f73d930c602146
Calculate \be using [0..64] value range (like VSFilter)

To avoid banding in the output, the full [0..255] value range
is restored before the last \be pass, which then uses the full
range and hides the bands by virtue of being a blur.

With this, our \be finally closely matches VSFilter's.

The only visible difference (other than the lack of banding) is
in clipping: we add proper padding and output the whole blurred
image, while VSFilter does not add any padding and hence clips
the blurred image too early.
libass/ass_bitmap.c
libass/ass_bitmap.h