MediaCodecs.H264 (MediCodecs v0.1.0)

View Source

Utilities for working with H.264 (AVC) video codec.

Summary

Functions

Gets NALu type.

Convert an access unit to a list of NALUs.

Parses a NALU bitstring and returns a NALU struct.

Types

nalu_type()

@type nalu_type() :: :sps | :pps | :unknown

profile()

@type profile() ::
  :high_cavlc_4_4_4_intra
  | :constrained_baseline
  | :baseline
  | :main
  | :extended
  | :constrained_high
  | :progressive_high
  | :high
  | :high_10_intra
  | :high_10
  | :high_4_2_2_intra
  | :high_4_2_2
  | :high_4_4_4_intra
  | :high_4_4_4_predictive

Functions

nalu_type(arg)

@spec nalu_type(bitstring()) :: nalu_type()

Gets NALu type.

nalus(access_unit)

@spec nalus(binary()) :: [binary()]

Convert an access unit to a list of NALUs.

parse_nalu(nalu)

@spec parse_nalu(bitstring()) :: MediaCodecs.H264.NALU.t()

Parses a NALU bitstring and returns a NALU struct.