mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-27 10:29:23 +00:00
LibGfx/WebPLossless: Remove "AMENDED" in spec comments
No behavior change. This corresponds to this spec change: https://chromium-review.googlesource.com/c/webm/libwebp/+/4567695
This commit is contained in:
parent
05bb657b8b
commit
076a8e5d0b
Notes:
sideshowbarker
2024-07-17 06:54:15 +09:00
Author: https://github.com/nico
Commit: 076a8e5d0b
Pull-request: https://github.com/SerenityOS/serenity/pull/24249
1 changed files with 2 additions and 2 deletions
|
|
@ -321,7 +321,7 @@ static ErrorOr<NonnullRefPtr<Bitmap>> decode_webp_chunk_VP8L_image(ImageKind ima
|
||||||
|
|
||||||
// https://developers.google.com/speed/webp/docs/webp_lossless_bitstream_specification#52_encoding_of_image_data
|
// https://developers.google.com/speed/webp/docs/webp_lossless_bitstream_specification#52_encoding_of_image_data
|
||||||
// "The encoded image data consists of several parts:
|
// "The encoded image data consists of several parts:
|
||||||
// 1. Decoding and building the prefix codes [AMENDED2]
|
// 1. Decoding and building the prefix codes
|
||||||
// 2. Meta prefix codes
|
// 2. Meta prefix codes
|
||||||
// 3. Entropy-coded image data"
|
// 3. Entropy-coded image data"
|
||||||
// data = prefix-codes lz77-coded-image
|
// data = prefix-codes lz77-coded-image
|
||||||
|
|
@ -539,7 +539,7 @@ private:
|
||||||
int pT = abs(pAlpha - (int)ALPHA(T)) + abs(pRed - (int)RED(T)) + abs(pGreen - (int)GREEN(T)) + abs(pBlue - (int)BLUE(T));
|
int pT = abs(pAlpha - (int)ALPHA(T)) + abs(pRed - (int)RED(T)) + abs(pGreen - (int)GREEN(T)) + abs(pBlue - (int)BLUE(T));
|
||||||
|
|
||||||
// "Return either left or top, the one closer to the prediction."
|
// "Return either left or top, the one closer to the prediction."
|
||||||
if (pL < pT) { // "\[AMENDED\]"
|
if (pL < pT) {
|
||||||
return L;
|
return L;
|
||||||
} else {
|
} else {
|
||||||
return T;
|
return T;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue