Descriptionlibwebp: cherry-pick lossless decoding fix
783a8cd Regression fix for lossless decoding
Regression fix for lossless decoding
Reported here: https://code.google.com/p/webp/issues/detail?id=239
At the beginning of method 'DecodeImageData', pixels up to
'dec->last_pixel_' are assumed to be already cached. So, at the end of
previous call to that method also, that assumption should hold true.
Hence, we should cache all pixels up to 'src' regardless of 'src_last'.
This affects lossless incremental decoding only, as that is when
src_last and src_end differ.
Note: alpha decoding is implicitly incremental, as alpha decoding of
only the rows 'y_end - y_start' happens during FinishRow() call. So, this bug
affects alpha decoding in non-incremental decoding flow as well.
This bug was introduced in: https://gerrit.chromium.org/gerrit/#/c/59716.
BUG=
Committed: https://crrev.com/a92494b71a1a99292c32bf2b363cc5cf9fe30ac9
Cr-Commit-Position: refs/heads/master@{#312966}
Patch Set 1 #
Messages
Total messages: 11 (4 generated)
|