Membrane.H264.DecoderConfigurationRecord (Membrane H.264 and H.265 plugin v0.10.4)

View Source

Utility functions for parsing and generating AVC Configuration Record.

The structure of the record is described in section 5.2.4.1.1 of MPEG-4 part 15 (ISO/IEC 14496-15).

Summary

Types

t()

Structure representing the Decoder Configuartion Record

Functions

Generates a DCR based on given PPSs and SPSs.

Parses the DCR.

Types

t()

@type t() :: %Membrane.H264.DecoderConfigurationRecord{
  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

generate(spss, ppss, arg3)

@spec generate([binary()], [binary()], Membrane.H264.Parser.stream_structure()) ::
  binary() | nil

Generates a DCR based on given PPSs and SPSs.

parse(arg1)

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

Parses the DCR.

remove_parameter_sets(dcr)

@spec remove_parameter_sets(binary()) :: binary()