#[non_exhaustive]pub struct ReaderRequirements {
pub mask_length: u8,
pub fully_understand: Vec<u8>,
pub decode_completely: Vec<u8>,
pub standard_features: Vec<StandardFeature>,
pub vendor_features: Vec<VendorFeature>,
}Expand description
A Reader Requirements box (rreq, ISO/IEC 15444-2 M.11.1): the features
a reader must support to use the file, each with a mask saying which of
the file’s requirement expressions it belongs to.
Every mask is ML bytes, as stored (big-endian). A box is reported when it
holds exactly the fields its counts give: ML, the two masks, NSF and
its standard features, NVF and its vendor features, and nothing after.
One that is cut short or has bytes left over is malformed: it is left out
of Jp2Metadata::reader_requirements and never fails a decode, as
OpenJPEG skips the box. The values are not checked (ISO/IEC 15444-2 allows
ML of 1, 2, 4 or 8) and nothing in the box changes the decode.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mask_length: u8ML: the length of each mask in bytes.
fully_understand: Vec<u8>FUAM: the fully-understand-aspects mask.
decode_completely: Vec<u8>DCM: the decode-completely mask.
standard_features: Vec<StandardFeature>The NSF standard features (SF and SM), in box order.
vendor_features: Vec<VendorFeature>The NVF vendor features (VF and VM), in box order.