View Source Membrane.H265.Parser.NALuParser (Membrane H265 plugin v0.4.0)
A module providing functionality of parsing a stream of binaries, out of which each is a payload of a single NAL unit.
Link to this section Summary
Functions
Returns payload of the NALu with appropriate prefix generated based on output stream structure and prefix length.
Returns a structure holding a clear NALu parser state. input_stream_structure
determines the prefixes of input NALU payloads.
Parses a binary representing a single NALu.
Parses a list of binaries, each representing a single NALu.
Link to this section Types
Specs
t()
A structure holding the state of the NALu parser.
Link to this section Functions
get_prefixed_nalu_payload(nalu, output_stream_structure, stable_prefixing? \\ true)
View SourceSpecs
get_prefixed_nalu_payload( Membrane.H265.Parser.NALu.t(), Membrane.H265.Parser.stream_structure(), boolean() ) :: binary()
Returns payload of the NALu with appropriate prefix generated based on output stream structure and prefix length.
Specs
new(Membrane.H265.Parser.stream_structure()) :: t()
Returns a structure holding a clear NALu parser state. input_stream_structure
determines the prefixes of input NALU payloads.
parse(nalu_payload, timestamps \\ {nil, nil}, payload_prefixed? \\ true, state)
View SourceSpecs
parse(binary(), Membrane.H265.Parser.NALu.timestamps(), boolean(), t()) :: {Membrane.H265.Parser.NALu.t(), t()}
Parses a binary representing a single NALu.
Returns a structure that contains parsed fields fetched from that NALu. The input binary is expected to contain the prefix, defined as in the "Annex B" of the "ITU-T Rec. H.265 (08/2021)".
parse_nalus(nalus_payloads, timestamps \\ {nil, nil}, payload_prefixed? \\ true, state)
View SourceSpecs
parse_nalus([binary()], Membrane.H265.Parser.NALu.timestamps(), boolean(), t()) :: {[Membrane.H265.Parser.NALu.t()], t()}
Parses a list of binaries, each representing a single NALu.
See parse/3
for details.
Specs
prefix_nalus_payloads([binary()], Membrane.H265.Parser.stream_structure()) :: binary()