From cf934f9bfc2e614fa4f52d7101fccf0ad297e14c Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 31 May 2023 09:20:44 -0400 Subject: [PATCH] WebP/Lossy: Move two enums closer to the struct that uses them I accidentally inserted a bunch of code in between. No behavior change. --- .../LibGfx/ImageFormats/WebPLoaderLossy.cpp | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossy.cpp b/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossy.cpp index 499a546ecf..37b1b20665 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossy.cpp +++ b/Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossy.cpp @@ -121,16 +121,6 @@ ErrorOr read_signed_literal(BooleanDecoder& decoder, u8 n) #define B(prob) decoder.read_bool(prob) #define L_signed(n) read_signed_literal(decoder, n) -// https://datatracker.ietf.org/doc/html/rfc6386#section-9.2 "Color Space and Pixel Type (Key Frames Only)" -enum class ColorSpaceAndPixelType { - YUV = 0, - ReservedForFutureUse = 1, -}; -enum class ClampingSpecification { - DecoderMustClampTo0To255 = 0, - NoClampingNecessary = 1, -}; - // https://datatracker.ietf.org/doc/html/rfc6386#section-9.3 Segment-Based Adjustments" // https://datatracker.ietf.org/doc/html/rfc6386#section-19.2 "Frame Header" enum class SegmentFeatureMode { @@ -181,6 +171,16 @@ enum class FilterType { Simple = 1, }; +// https://datatracker.ietf.org/doc/html/rfc6386#section-9.2 "Color Space and Pixel Type (Key Frames Only)" +enum class ColorSpaceAndPixelType { + YUV = 0, + ReservedForFutureUse = 1, +}; +enum class ClampingSpecification { + DecoderMustClampTo0To255 = 0, + NoClampingNecessary = 1, +}; + // https://datatracker.ietf.org/doc/html/rfc6386#section-19.2 "Frame Header" struct FrameHeader { ColorSpaceAndPixelType color_space {};