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

Types

t()

A structure holding the state of the NALu parser.

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 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

Link to this function

get_prefixed_nalu_payload(nalu, output_stream_structure, stable_prefixing? \\ true)

View Source

Specs

Returns payload of the NALu with appropriate prefix generated based on output stream structure and prefix length.

Link to this function

new(input_stream_structure \\ :annexb)

View Source

Specs

Returns a structure holding a clear NALu parser state. input_stream_structure determines the prefixes of input NALU payloads.

Link to this function

parse(nalu_payload, timestamps \\ {nil, nil}, payload_prefixed? \\ true, state)

View Source

Specs

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)".

Link to this function

parse_nalus(nalus_payloads, timestamps \\ {nil, nil}, payload_prefixed? \\ true, state)

View Source

Specs

Parses a list of binaries, each representing a single NALu.

See parse/3 for details.

Link to this function

prefix_nalus_payloads(nalus, arg2)

View Source

Specs

prefix_nalus_payloads([binary()], Membrane.H265.Parser.stream_structure()) ::
  binary()