View Source ExMP4.Box protocol (MP4 Reader and Writer v0.6.0)

A protocol defining the behaviour of an ISOBMFF box.

Summary

Types

t()

All the types that implement this protocol.

Functions

Parses the binary into a box.

Serialize a box into a io list.

Get the size of a box.

Types

@type t() :: term()

All the types that implement this protocol.

Functions

@spec parse(t(), binary()) :: t()

Parses the binary into a box.

The header (size + name of the box) should not included.

@spec serialize(t()) :: iodata()

Serialize a box into a io list.

@spec size(t()) :: integer()

Get the size of a box.