ソースを参照

LibGfx/WebPLossless: Add spec comment about transform order

This used to not be mentioned in the spec, but it got added
based on our feedback:
https://chromium-review.googlesource.com/c/webm/libwebp/+/4637757
Nico Weber 1 年間 前
コミット
a511f5507c

+ 1 - 2
Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.cpp

@@ -992,8 +992,7 @@ ErrorOr<NonnullRefPtr<Bitmap>> decode_webp_chunk_VP8L_contents(VP8LHeader const&
     auto format = vp8l_header.is_alpha_used ? BitmapFormat::BGRA8888 : BitmapFormat::BGRx8888;
     auto bitmap = TRY(decode_webp_chunk_VP8L_image(ImageKind::SpatiallyCoded, format, stored_size, bit_stream));
 
-    // Transforms have to be applied in the reverse order they appear in in the file.
-    // (As far as I can tell, this isn't mentioned in the spec.)
+    // "The inverse transforms are applied in the reverse order that they are read from the bitstream, that is, last one first."
     for (auto const& transform : transforms.in_reverse())
         bitmap = TRY(transform->transform(bitmap));