View Source Membrane.AAC.Parser.ADTS (Membrane AAC plugin v0.19.0)

Utility functions for parsing and generating ADTS encapsulation structures.

Summary

Functions

Link to this function

next_timestamp(timestamp, stream_format)

View Source
Link to this function

parse_adts(data, stream_format, timestamp, state)

View Source
@spec parse_adts(
  binary(),
  Membrane.AAC.t() | nil,
  Membrane.AAC.Parser.timestamp(),
  Membrane.Element.state()
) ::
  {:ok,
   {[stream_format: Membrane.AAC.t(), buffer: Membrane.Buffer.t()], binary(),
    Membrane.AAC.Parser.timestamp()}}
  | {:error, :invalid_adts_header}
Link to this function

payload_to_adts(payload, stream_format)

View Source
@spec payload_to_adts(binary(), Membrane.AAC.t()) :: binary()