MediaCodecs.H265.AccessUnitSplitter (MediCodecs v0.10.0)

View Source

Moodule 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

access_unit()

@type access_unit() :: [binary()]

t()

@type t() :: %MediaCodecs.H265.AccessUnitSplitter{
  access_unit: access_unit(),
  previous_nalu_type: integer() | nil,
  stage: :first | :second
}

Functions

flush(splitter)

@spec flush(t()) :: access_unit()

Flushes the splitter and return the remaining nalus as an complete access unit

new()

@spec new() :: t()

Creates a new access unit splitter.

process(nalu, 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.