Membrane.H265.NALuParser (Membrane H.264 and H.265 plugin v0.10.4)
View SourceThis module is an extension to Membrane.H26x.NALuParser
and contains
H265 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
@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.
@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.