1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:27:45 +00:00

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

I accidentally inserted a bunch of code in between.

No behavior change.
This commit is contained in:
Nico Weber 2023-05-31 09:20:44 -04:00 committed by Andreas Kling
parent 13086d3c97
commit cf934f9bfc

View file

@ -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 {};