Closed GoogleCodeExporter closed 9 years ago
This bug also cause the value of each last destination row pixel to be wrong:
it is computed using last source row pixel and first source pixel of *next* row
(assuming stride = width)
Original comment by alt...@gmail.com
on 30 Aug 2013 at 7:03
The expected result is normally that the last pixel or row is used 100% and
last pixel + 1 is used 0%.
With clipping, this is not always the case - the last clipped pixel destination
pixel could be any source pixels. The patch as is, does not account for
clipping.
Can you add a pixel of padding?
Original comment by fbarch...@google.com
on 11 Sep 2013 at 2:51
Sorry for my late answer.
I don't see the issue with clipping. Can you provide an example please?
> Can you add a pixel of padding?
Not in the use case I encountered: the input buffer is allocated by an external
library with a fixed size.
Original comment by alt...@gmail.com
on 30 Sep 2013 at 2:24
util/convert tool as well argb tile scale unittest, demonstrate a tiled scale.
each small block of destination comes from a region of subpixel accurate
source, using clipping.
The change as is, doesnt solve the problem for all scale factors, and
introduces an issue with tiling.
More thought required.
Original comment by fbarch...@google.com
on 13 Oct 2013 at 3:25
In r895 I've plugged in CIF to/from QVGA and somewhat tracked down the problem.
Short term fix is for bilinear to essentially compute slope using (width -
1.0001) so the last pixel will be filtering width - 2 and width - 1 with nearly
100% on width - 1. Should have a fix today.
In the scaling down case, it would be easy to extrude the edge, but its less
easy on the upsample. So that will come later. A complication of the extrude
is it only should be done when clipping against the image edge. This will take
about a week, and I may want to refactor the scalers to share more code before
doing it.
Original comment by fbarch...@google.com
on 5 Dec 2013 at 10:37
r898 fixes for ARGB.
YUV scaler needs the same change, so I'll keep the bug open.
Original comment by fbarch...@google.com
on 6 Dec 2013 at 10:58
r905 resolves a vertical step beyond max_y.
All known overread issues resolved.
Original comment by fbarch...@google.com
on 9 Dec 2013 at 9:59
Original issue reported on code.google.com by
alt...@gmail.com
on 26 Aug 2013 at 3:31Attachments: