View Source ExMP4.Codec.Avc (MP4 Reader and Writer v0.4.0)

Module responsible for parsing and generating AVC Configuration Record.

Summary

Types

t()

Structure representing the Decoder Configuartion Record

Functions

Creates a new decoder configuration record from parameter sets.

Parses the DCR.

Serializes decoder configuration record.

Types

@type new_opts() :: [{:nalu_length_size, integer()}]
@type t() :: %ExMP4.Codec.Avc{
  avc_level: non_neg_integer(),
  avc_profile_indication: non_neg_integer(),
  nalu_length_size: pos_integer(),
  ppss: [binary()],
  profile_compatibility: non_neg_integer(),
  spss: [binary()]
}

Structure representing the Decoder Configuartion Record

Functions

Link to this function

new(spss, ppss, opts \\ [])

View Source
@spec new([binary()], [binary()], new_opts()) :: t()

Creates a new decoder configuration record from parameter sets.

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

Parses the DCR.

@spec serialize(t()) :: binary()

Serializes decoder configuration record.