View Source Membrane.H264.DecoderConfigurationRecord (Membrane H.264 and H.265 plugin v0.10.2)

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

@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

Link to this function

generate(spss, ppss, arg3)

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

Generates a DCR based on given PPSs and SPSs.

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

Parses the DCR.

Link to this function

remove_parameter_sets(dcr)

View Source
@spec remove_parameter_sets(binary()) :: binary()