Expand description
Module for parsing ISO Base Media Format aka video/mp4 streams.
Structs
- Represent an ALACSpecificBox ‘alac’
- See HEIF (ISO 23008-12:2017) § 6.5.8
- An Elementary Stream Descriptor See MPEG-4 Systems (ISO 14496-1:2010) § 7.2.6.5
- Represents a FLACSpecificBox ‘dfLa’
- The raw bytes of the ICC profile
- See ISOBMFF (ISO 14496-12:2020) § 8.11.14.1
- Internal data structures.
- A time to be scaled by the media’s global (mvhd) timescale.
- The media’s global (mvhd) timescale in units per second.
- Represents the contents of ‘ilst’ atoms within a metadata box ‘meta’, parsed as iTunes metadata using the conventional tags.
- Despite Rec. ITU-T H.273 (12/2016) defining the CICP fields as having a range of 0-255, and only a small fraction of those values being used, ISOBMFF (ISO 14496-12:2020) § 12.1.5 defines them as 16-bit values in the
colr
box. Since we have no use for the additional range, and it would complicate matters later, we fallibly convert before storing the input. - Represent an OpusSpecificBox ‘dOps’
- Track header box ‘tkhd’
- A time to be scaled by the track’s local (mdhd) timescale. Members are time in scale units and the track id.
- The track’s local (mdhd) timescale. Members are timescale units per second and the track id.
- A collection to indicate unsupported features that were encountered during parsing. Since the default behavior for many such features is to ignore them, this often not fatal and there may be several to report.
- Represents a userdata box ‘udta’. Currently, only the metadata atom ‘meta’ is parsed.
- Represent a Video Partition Codec Configuration ‘vpcC’ box (aka vp9). The meaning of each field is covered in detail in “VP Codec ISO Media File Format Binding”.
Enums
- Represents the parental advisory rating on the track, stored within the ‘rtng’ atom.
- Describes parser failures.
- Represents possible contents of the ©gen or gnre atoms within a metadata box. ‘udta.meta.ilst’ may only have either a standard genre box ‘gnre’ or a custom genre box ‘©gen’, but never both at once.
- The axis about which the image is mirrored (opposite of flip) Visualized in terms of starting with (⥠) UPWARDS HARPOON WITH BARB LEFT FROM BAR similar to a DIGIT ONE (1)
- Rotation in the positive (that is, anticlockwise) direction Visualized in terms of starting with (⥠) UPWARDS HARPOON WITH BARB LEFT FROM BAR similar to a DIGIT ONE (1)
- See ISOBMFF (ISO 14496-12:2020) § 8.11.14.1 Variants with no associated data are recognized but not necessarily supported. See
Feature
to determine support. - Represents the contents of a ‘stik’ atom that indicates content types within iTunes.
- The return value to the C API Any detail that needs to be communicated to the caller must be encoded here since the
Error
type’s associated data is part of the FFI.
Constants
- The brand to identify AV1 image items The ‘avif’ brand indicates structural requirements on files See https://aomediacodec.github.io/av1-avif/#image-and-image-collection-brand
- The brand to identify AVIF image sequences The ‘avis’ brand indicates structural requirements on files See https://aomediacodec.github.io/av1-avif/#image-and-image-collection-brand
- The HEIF image and image collection brand The ‘mif1’ brand indicates structural requirements on files See HEIF (ISO 23008-12:2017) § 10.2.1
- The HEIF image sequence brand The ‘msf1’ brand indicates structural requirements on files See HEIF (ISO 23008-12:2017) § 10.3.1
Traits
- A trait to indicate a type can be infallibly converted to
usize
. This should only be implemented for infallible conversions, so only unsigned types are valid.
Functions
- Read the contents of an AVIF file
- Read the contents of a box, including sub boxes.
- Re-serialize the Opus codec-specific config data as an
OpusHead
packet.
Type Definitions
- Result shorthand using our Error enum.