diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2018-11-24 19:23:01 +0300 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2018-11-25 21:38:31 +0300 |
commit | b6bb8536ad299d52a5ff49a4f0317b923ce6b8bb (patch) | |
tree | 9a331e11077aae3902651ffc0d258286e6ac7ab6 /include/dav1d/headers.h | |
parent | 3e95d8ed717082430db632d290309f4f7326e7fe (diff) |
Store literal bitstream values in Dav1dSequence/FrameHeader
This means storing monochrome, ss_hor/ver and hbd. The derived values
bpc and layout are then stored in Dav1dPictureParameters.
Diffstat (limited to 'include/dav1d/headers.h')
-rw-r--r-- | include/dav1d/headers.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/dav1d/headers.h b/include/dav1d/headers.h index cdde681..bf8c5ae 100644 --- a/include/dav1d/headers.h +++ b/include/dav1d/headers.h @@ -173,8 +173,6 @@ typedef struct Dav1dSequenceHeader { * a normative requirement. */ int max_width, max_height; - int bpc; ///< bits per pixel component (8 or 10) - enum Dav1dPixelLayout layout; ///< format of the picture enum Dav1dColorPrimaries pri; ///< color primaries (av1) enum Dav1dTransferCharacteristics trc; ///< transfer characteristics (av1) enum Dav1dMatrixCoefficients mtrx; ///< matrix coefficients (av1) @@ -231,7 +229,15 @@ typedef struct Dav1dSequenceHeader { int super_res; int cdef; int restoration; + /** + * 0, 1 and 2 mean 8, 10 or 12 bits/component, respectively. This is not + * exactly the same as 'hbd' from the spec; the spec's hbd distinguishes + * between 8 (0) and 10-12 (1) bits/component, and another element + * (twelve_bit) to distinguish between 10 and 12 bits/component. To get + * the spec's hbd, use !!our_hbd, and to get twelve_bit, use hbd == 2. + */ int hbd; + int ss_hor, ss_ver, monochrome; int color_description_present; int separate_uv_delta_q; int film_grain_present; |