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