FFmpeg/tests/ref
Jean Delvare f0bcb13aed lavfi/delogo: avoid propagation of rounding errors in chroma planes
When operating on subsampled chroma planes, some rounding is taking
place. The left and top borders are rounded down while the width and
height are rounded up, so all rounding is done outward to guarantee the
logo area is fully covered.

The problem is that the width and height are counted from the
unrounded left and top borders, respectively. So if the left or top
border position has indeed been rounded down, and the width or height
needs no rounding (up), the position of the the right or bottom border
will be effectively rounded down, i.e. inward.

The issue can easily be seen with a yuv240p input and
  -vf delogo=45:45:60:40:show=1 -vframes 1 delogo-bug.png
(or virtually any logo area with odd x and y and even width and
height.) The right and bottom chroma borders (in green) are clearly
off.

In order to fix this, the width and height must be adjusted to include
the bits lost in the rounding of the left and top border positions,
respectively, prior to being themselves rounded up.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-07-03 23:10:57 +02:00
..
acodec lswr: Improve default resampler's default parameters 2013-01-04 16:47:57 +01:00
fate lavfi/delogo: avoid propagation of rounding errors in chroma planes 2013-07-03 23:10:57 +02:00
lavf Add unscaled converter from GBRP > 8bit to RGBx48/64. 2013-06-06 23:57:50 +02:00
lavf-fate lavf/id3v2enc: fix cover art display on some software 2013-05-30 21:16:57 +00:00
seek avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
vsynth avcodec/jpeg2000dwt: merge rescaling with interleave in 9/7 int IDWT 2013-06-03 13:24:20 +02:00
vsynth1 Merge commit 'f919cc7df6' 2012-05-30 01:40:54 +02:00
vsynth2 Merge commit 'f919cc7df6' 2012-05-30 01:40:54 +02:00