ISOMedia.Boxes.MovieHeader (ISOMedia v0.1.0)

Copy Markdown View Source

Typed view of the mvhd Movie Header Box. Exposes timescale/duration (and creation/modification times); all trailing fields (rate, volume, matrix, next_track_ID, ...) are preserved verbatim in rest.

Summary

Functions

Decode an mvhd box into a %MovieHeader{}.

Encode a %MovieHeader{} back into an mvhd box.

Types

t()

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

Functions

decode(box)

Decode an mvhd box into a %MovieHeader{}.

encode(h)

Encode a %MovieHeader{} back into an mvhd box.