Membrane.MP4.Container.Header (Membrane MP4 plugin v0.36.8)

View Source

A structure describing the header of the box.

The content_size field is equal to the box size minus the size of the header (8 bytes).

Summary

Functions

Parses the header of a box.

Types

t()

@type t() :: %Membrane.MP4.Container.Header{
  content_size: non_neg_integer(),
  header_size: non_neg_integer(),
  name: atom()
}

Functions

parse(arg1)

@spec parse(binary()) ::
  {:ok, t(), leftover :: binary()}
  | {:error, :not_enough_data}
  | {:error, {:unknown_box, binary(), non_neg_integer(), non_neg_integer()}}

Parses the header of a box.

Returns the t/0 and the leftover data.