MediaCodecs.H265.AccessUnitSplitter (MediCodecs v0.10.0)
View SourceMoodule resposible for splitting a stream of NAL units into access units.
Summary
Functions
Flushes the splitter and return the remaining nalus as an complete access unit
Creates a new access unit splitter.
Processes a NAL unit.
Types
@type access_unit() :: [binary()]
@type t() :: %MediaCodecs.H265.AccessUnitSplitter{ access_unit: access_unit(), previous_nalu_type: integer() | nil, stage: :first | :second }
Functions
@spec flush(t()) :: access_unit()
Flushes the splitter and return the remaining nalus as an complete access unit
@spec new() :: t()
Creates a new access unit splitter.
@spec process(nalu :: binary(), t()) :: {access_unit() | nil, t()}
Processes a NAL unit.
If the current NAL unit starts a new access unit, it returns the completed access unit.
If the NAL unit is part of the current access unit, it returns nil.