ISOMedia.Boxes.TrackHeader (ISOMedia v0.1.0)

Copy Markdown View Source

Typed view of the tkhd Track Header Box. Exposes track_id/duration (and creation/modification times); trailing fields are preserved in rest.

Summary

Functions

Decode a tkhd box into a %TrackHeader{}.

Encode a %TrackHeader{} back into a tkhd box.

Types

t()

@type t() :: %ISOMedia.Boxes.TrackHeader{
  creation_time: non_neg_integer(),
  duration: non_neg_integer(),
  flags: <<_::24>>,
  modification_time: non_neg_integer(),
  rest: binary(),
  track_id: non_neg_integer(),
  version: non_neg_integer()
}

Functions

decode(box)

Decode a tkhd box into a %TrackHeader{}.

encode(h)

Encode a %TrackHeader{} back into a tkhd box.