MediaCodecs.H265.NALU (MediCodecs v0.7.0)
View SourceStruct describing an h265 nalu.
Summary
Functions
Checks if the NALU is a keyframe (IRAP NALU).
Parses a NALU bitstring and returns a NALU struct.
Parses the NALU header.
Gets NALu type.
Checks if the NALU is a Video Coding Layer (VCL) NALU.
Types
@type nalu_type() ::
:trail_n
| :trail_r
| :tsa_n
| :tsa_r
| :stsa_n
| :stsa_r
| :radl_n
| :radl_r
| :rasl_n
| :rasl_r
| :bla_w_lp
| :bla_w_radl
| :bla_n_lp
| :idr_w_radl
| :idr_n_lp
| :cra
| :aud
| :eos
| :eob
| :fd
| :prefix_sei
| :suffix_sei
| :reserved_irap
| :reserved_nvcl
| :unspecified
@type t() :: %MediaCodecs.H265.NALU{ content: struct() | nil, nuh_layer_id: non_neg_integer(), nuh_temporal_id_plus1: non_neg_integer(), type: nalu_type() }
Functions
Checks if the NALU is a keyframe (IRAP NALU).
iex> MediaCodecs.H265.NALU.keyframe?(%MediaCodecs.H265.NALU{type: :idr_n_lp})
true
iex> MediaCodecs.H265.NALU.keyframe?(%MediaCodecs.H265.NALU{type: :sps})
false
Parses a NALU bitstring and returns a NALU struct.
An optional keyword can be provided to completely parse the NAL unit:
:sps
- provide the parsed sps NAL unit. Needed for slice parsing.:pps
- provide the parsed pps NAL unit. Needed for slice parsing.
Parses the NALU header.
Gets NALu type.
Checks if the NALU is a Video Coding Layer (VCL) NALU.