ExMP4.Box.Utils (MP4 Reader and Writer v0.11.0)

View Source

Utilities functions used by the parser and serializer

Summary

Functions

base_date()

@spec base_date() :: DateTime.t()

from_date(date)

@spec from_date(DateTime.t()) :: integer()

parse_header(arg)

@spec parse_header(binary()) :: {String.t(), binary(), binary()}

to_date(diff)

@spec to_date(integer()) :: DateTime.t()

try_parse_header(arg1)

@spec try_parse_header(binary()) ::
  {:ok, String.t(), content_size :: integer()}
  | {:more, String.t()}
  | {:error, :not_enough_data}