mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-21 19:32:52 +01:00
webp-lossless-bitstream-spec: refine pixel copy text
in 6.2.3 Decoding Entropy-Coded Image Data. The copying of distance code pixels cause some confusion during the AUTH48 portion of the RFC review process. Bug: webp:611 Change-Id: I78f547ae10c95f180355a4c93ec6d48acdc09141
This commit is contained in:
parent
29c9f2d410
commit
8b55425a56
@ -1046,8 +1046,8 @@ The interpretation of S depends on its value:
|
|||||||
1. Read extra bits for the distance from the bitstream.
|
1. Read extra bits for the distance from the bitstream.
|
||||||
1. Determine backward-reference distance D from the distance prefix code
|
1. Determine backward-reference distance D from the distance prefix code
|
||||||
and the extra bits read.
|
and the extra bits read.
|
||||||
1. Copy the L pixels (in scan-line order) from the sequence of pixels
|
1. Copy L pixels (in scan-line order) from the sequence of pixels starting
|
||||||
prior to them by D pixels.
|
at the current position minus D pixels.
|
||||||
1. If S >= 256 + 24
|
1. If S >= 256 + 24
|
||||||
1. Use S - (256 + 24) as the index into the color cache.
|
1. Use S - (256 + 24) as the index into the color cache.
|
||||||
1. Get ARGB color from the color cache at that index.
|
1. Get ARGB color from the color cache at that index.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user