diff options
author | Wan-Teh Chang <wtc@google.com> | 2020-08-08 04:27:03 +0300 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2022-01-06 21:36:44 +0300 |
commit | f9bddfff7bd93b875a86d4401bc699337706b8cf (patch) | |
tree | bf783a01683e8250ec851eb21cffb921fc386797 /include | |
parent | 633c63ed51b54a14c0fc547255b97f0e657e054d (diff) |
DAV1D_MC_IDENTITY requires DAV1D_PIXEL_LAYOUT_I444
Section 6.4.2 (Color config semantics) of the AV1 spec says:
If matrix_coefficients is equal to MC_IDENTITY, it is a requirement of
bitstream conformance that subsampling_x is equal to 0 and
subsampling_y is equal to 0.
Add Dav1dSettings.strict_std_compliance flag which, when set, allows
aborting decoding when such standard-compliance violations fail, even
though they don't affect decoding. In CLI, this flag can be accessed
using -strict.
Diffstat (limited to 'include')
-rw-r--r-- | include/dav1d/dav1d.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/dav1d/dav1d.h b/include/dav1d/dav1d.h index e73d79e..105578f 100644 --- a/include/dav1d/dav1d.h +++ b/include/dav1d/dav1d.h @@ -67,7 +67,10 @@ typedef struct Dav1dSettings { unsigned frame_size_limit; ///< maximum frame size, in pixels (0 = unlimited) Dav1dPicAllocator allocator; ///< Picture allocator callback. Dav1dLogger logger; ///< Logger callback. - uint8_t reserved[32]; ///< reserved for future use + int strict_std_compliance; ///< whether to abort decoding on standard compliance violations + ///< that don't affect actual bitstream decoding (e.g. inconsistent + ///< or invalid metadata) + uint8_t reserved[28]; ///< reserved for future use } Dav1dSettings; /** |