View Source Membrane.H264.Parser.NALuSplitter (Membrane H264 plugin v0.1.0)
A module with functions responsible for splitting the h264 stream into the NAL units.
The splitting is based on "Annex B" of the "ITU-T Rec. H.264 (01/2012)".
Link to this section Summary
Functions
Flushes the payload out of the splitter state.
Returns a structure holding a NALu splitter state.
Splits the binary into NALus sequence.
Link to this section Types
@opaque t()
A structure holding the state of the NALu splitter.
Link to this section Functions
Flushes the payload out of the splitter state.
That function gets the payload from the inner state of the splitter and sets the payload in the inner state clean.
Returns a structure holding a NALu splitter state.
By default, the inner unparsed_payload
of the state is clean.
However, there is a possibility to set that unparsed_payload
to a given binary, provided as an argument of the new/1
function.
Splits the binary into NALus sequence.
Takes a binary h264 stream as an input
and produces a list of binaries, where each binary is
a complete NALu that can be passed to the Membrane.H264.Parser.NALuParser.parse/2
.