View Source Membrane.H264.NALuParser (Membrane H.264 and H.265 plugin v0.10.2)
This module is an extension to Membrane.H26x.NALuParser
and contains
H264 specific functions.
Summary
Functions
Parses a binary representing a single NALu and removes it's prefix (if it exists).
Parses a list of binaries, each representing a single NALu.
Functions
Link to this function
get_prefixed_nalu_payload(nalu, output_stream_structure, stable_prefixing? \\ true)
View Source
Link to this function
parse(nalu_payload, timestamps \\ {nil, nil}, payload_prefixed? \\ true, state)
View Source@spec parse( binary(), Membrane.H26x.NALu.timestamps(), boolean(), Membrane.H26x.NALuParser.t() ) :: {Membrane.H26x.NALu.t(), Membrane.H26x.NALuParser.t()}
Parses a binary representing a single NALu and removes it's prefix (if it exists).
Returns a structure that
contains parsed fields fetched from that NALu.
When payload_prefixed?
is true the input binary is expected to contain one of:
- prefix defined as the "Annex B" in the H26x recommendation document.
- prefix of size defined in state describing the length of the NALU in bytes, as described in ISO/IEC 14496-15.
Link to this function
parse_nalus(nalus_payloads, timestamps \\ {nil, nil}, payload_prefixed? \\ true, state)
View Source@spec parse_nalus( [binary()], Membrane.H26x.NALu.timestamps(), boolean(), Membrane.H26x.NALuParser.t() ) :: {[Membrane.H26x.NALu.t()], Membrane.H26x.NALuParser.t()}
Parses a list of binaries, each representing a single NALu.
See parse/4
for details.