pub struct Properties { /* private fields */ }Expand description
The parsed contents of iprp.
Implementations§
Source§impl Properties
impl Properties
Sourcepub fn parse(iprp: Reader<'_>) -> Result<Self>
pub fn parse(iprp: Reader<'_>) -> Result<Self>
Parse an iprp box payload.
§Errors
Returns PixelsError::Malformed if the box or any child is
structurally invalid.
Sourcepub fn for_item(&self, item_id: u32) -> Vec<&Property>
pub fn for_item(&self, item_id: u32) -> Vec<&Property>
Every property associated with item_id, in association order.
Sourcepub fn essential_unknown(&self, item_id: u32) -> Option<FourCc>
pub fn essential_unknown(&self, item_id: u32) -> Option<FourCc>
The type of the first essential property of item_id that this
decoder does not interpret, if there is one.
An item with such a property must be reported PixelsError::Unsupported
rather than decoded, because the property was declared to change the
meaning of the pixels.
Sourcepub fn av1_config(&self, item_id: u32) -> Option<&Av1Config>
pub fn av1_config(&self, item_id: u32) -> Option<&Av1Config>
The item’s AV1 configuration, from its av1C.
Sourcepub fn colour(&self, item_id: u32) -> Option<&Colour>
pub fn colour(&self, item_id: u32) -> Option<&Colour>
The item’s colour information, from its colr. An item may carry
both an nclx and an ICC colr (libavif writes both when given a
profile); the nclx is preferred, since it is what governs the YUV
to RGB conversion.
Sourcepub fn icc_profile(&self, item_id: u32) -> Option<&[u8]>
pub fn icc_profile(&self, item_id: u32) -> Option<&[u8]>
The item’s ICC profile, from an ICC colr.
Sourcepub fn auxiliary_type(&self, item_id: u32) -> Option<&str>
pub fn auxiliary_type(&self, item_id: u32) -> Option<&str>
The item’s auxiliary type URN, from its auxC.
Sourcepub fn orientation(&self, item_id: u32) -> Orientation
pub fn orientation(&self, item_id: u32) -> Orientation
The item’s irot and imir properties, composed in association
order, which is the order HEIF applies transformative properties in.