Typed view of the tfhd Track Fragment Header box.
Summary
Functions
Decode a tfhd box (only flag-present optional fields are read).
Encode a %TrackFragmentHeader{} into a tfhd box. Supports only the default-base-is-moof form (track_id + flag 0x020000), which is what Phase 10 produces.
Types
@type t() :: %ISOMedia.Boxes.TrackFragmentHeader{ base_data_offset: non_neg_integer() | nil, default_base_is_moof?: boolean(), default_sample_duration: non_neg_integer() | nil, default_sample_flags: non_neg_integer() | nil, default_sample_size: non_neg_integer() | nil, sample_description_index: non_neg_integer() | nil, track_id: non_neg_integer() }
Functions
@spec decode(ISOMedia.Box.t()) :: t()
Decode a tfhd box (only flag-present optional fields are read).
@spec encode(t()) :: ISOMedia.Box.t()
Encode a %TrackFragmentHeader{} into a tfhd box. Supports only the default-base-is-moof form (track_id + flag 0x020000), which is what Phase 10 produces.