Просмотр исходного кода

WebP/Lossy: Move two enums closer to the struct that uses them

I accidentally inserted a bunch of code in between.

No behavior change.
Nico Weber 2 лет назад
Родитель
Сommit
cf934f9bfc
1 измененных файлов с 10 добавлено и 10 удалено
  1. 10 10
      Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossy.cpp

+ 10 - 10
Userland/Libraries/LibGfx/ImageFormats/WebPLoaderLossy.cpp

@@ -121,16 +121,6 @@ ErrorOr<i8> read_signed_literal(BooleanDecoder& decoder, u8 n)
 #define B(prob) decoder.read_bool(prob)
 #define B(prob) decoder.read_bool(prob)
 #define L_signed(n) read_signed_literal(decoder, n)
 #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-9.3 Segment-Based Adjustments"
 // https://datatracker.ietf.org/doc/html/rfc6386#section-19.2 "Frame Header"
 // https://datatracker.ietf.org/doc/html/rfc6386#section-19.2 "Frame Header"
 enum class SegmentFeatureMode {
 enum class SegmentFeatureMode {
@@ -181,6 +171,16 @@ enum class FilterType {
     Simple = 1,
     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"
 // https://datatracker.ietf.org/doc/html/rfc6386#section-19.2 "Frame Header"
 struct FrameHeader {
 struct FrameHeader {
     ColorSpaceAndPixelType color_space {};
     ColorSpaceAndPixelType color_space {};