diff --git a/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.cpp b/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.cpp index 417fc909e70..9a21d96842d 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.cpp +++ b/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossless.cpp @@ -875,20 +875,6 @@ ErrorOr> decode_webp_chunk_VP8L_contents(VP8LHeader const& // transform = predictor-tx / color-tx / subtract-green-tx // transform =/ color-indexing-tx - enum TransformType { - // predictor-tx = %b00 predictor-image - PREDICTOR_TRANSFORM = 0, - - // color-tx = %b01 color-image - COLOR_TRANSFORM = 1, - - // subtract-green-tx = %b10 - SUBTRACT_GREEN_TRANSFORM = 2, - - // color-indexing-tx = %b11 color-indexing-image - COLOR_INDEXING_TRANSFORM = 3, - }; - TransformType transform_type = static_cast(TRY(bit_stream.read_bits(2))); dbgln_if(WEBP_DEBUG, "transform type {}", (int)transform_type); diff --git a/Userland/Libraries/LibGfx/ImageFormats/WebPSharedLossless.h b/Userland/Libraries/LibGfx/ImageFormats/WebPSharedLossless.h index 494d0d1dd47..43b466c2d0d 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/WebPSharedLossless.h +++ b/Userland/Libraries/LibGfx/ImageFormats/WebPSharedLossless.h @@ -66,4 +66,18 @@ enum class ImageKind { EntropyCoded, }; +enum TransformType { + // predictor-tx = %b00 predictor-image + PREDICTOR_TRANSFORM = 0, + + // color-tx = %b01 color-image + COLOR_TRANSFORM = 1, + + // subtract-green-tx = %b10 + SUBTRACT_GREEN_TRANSFORM = 2, + + // color-indexing-tx = %b11 color-indexing-image + COLOR_INDEXING_TRANSFORM = 3, +}; + }