#[non_exhaustive]pub struct ImageHeader {
pub compression: u8,
pub unknown_color_space: u8,
pub ipr_flag: u8,
}Expand description
The Image Header box’s (ihdr, I.5.3.1) flags C, UnkC and IPR, as
stored. None of them changes the decode. The codestream’s SIZ decides the
image size, the component count and the depths, so ihdr’s HEIGHT,
WIDTH, NC and BPC, and the bpcc box, are not reported.
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.compression: u8C: the compression type. The standard requires 7 (JPEG 2000).
unknown_color_space: u8UnkC: 1 when the file does not know the color space, 0 when its
color specification boxes give it accurately. Not consulted for
Jp2Metadata::color.
ipr_flag: u8IPR: 1 when the file claims to hold intellectual property rights
boxes, 0 when it does not. The flag is stored as-is, so it can hold
the values I.5.3.1 reserves (only 0 and 1 are defined). It is not
checked against the boxes present, so it may disagree with
Jp2Metadata::ipr, which holds the top-level jp2i boxes.