Browse Source

LibGfx/WebPLossless: Add a spec comment

No behavior change. Makes things flow better with the comment I'm
about to add in the next commit.
Nico Weber 1 year ago
parent
commit
e69a0fa7d3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.cpp

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

@@ -969,6 +969,7 @@ ErrorOr<NonnullRefPtr<Bitmap>> decode_webp_chunk_VP8L_contents(VP8LHeader const&
             return Error::from_string_literal("WebPImageDecoderPlugin: transform type used multiple times");
             return Error::from_string_literal("WebPImageDecoderPlugin: transform type used multiple times");
         seen_transforms |= mask;
         seen_transforms |= mask;
 
 
+        // "Transform data contains the information required to apply the inverse transform and depends on the transform type."
         switch (transform_type) {
         switch (transform_type) {
         case PREDICTOR_TRANSFORM:
         case PREDICTOR_TRANSFORM:
             TRY(transforms.try_append(TRY(PredictorTransform::read(bit_stream, stored_size))));
             TRY(transforms.try_append(TRY(PredictorTransform::read(bit_stream, stored_size))));