View Source Membrane.H265.AUSplitter (Membrane H.264 and H.265 plugin v0.10.2)

Module providing functionalities to group H265 NAL units into access units.

The access unit splitter's behaviour is based on section 7.4.2.4.4 "Order of NAL units and coded pictures and association to access units" of the "ITU-T Rec. H.265 (08/2021)" specification.

Summary

Types

t()

A structure holding a state of the access unit splitter.

Functions

Returns a structure holding a clear state of the access unit splitter.

Splits the given list of NAL units into the access units.

Types

@opaque t()

A structure holding a state of the access unit splitter.

Functions

@spec new() :: t()

Returns a structure holding a clear state of the access unit splitter.

Link to this function

split(nalus, assume_au_aligned \\ false, state)

View Source

Splits the given list of NAL units into the access units.

It can be used for a stream which is not completely available at the time of function invocation, as the function updates the state of the access unit splitter - the function can be invoked once more, with new NAL units and the updated state. Under the hood, split/2 defines a finite state machine with two states: :first and :second. The state :first describes the state before reaching the first segment of a coded picture NALu of a given access unit. The state :second describes the state after processing the first segment of the coded picture of a given access unit.