View Source Membrane.RTP.H265.NAL.Header (Membrane RTP H265 Plugin v0.5.2)
Defines a structure representing Network Abstraction Layer Unit Header
Defined in RFC 7798
+---------------+---------------+
|0|1|2|3|4|5|6|7|0|1|2|3|4|5|6|7|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|F| Type | LayerId | TID |
+-------------+-----------------+
Summary
Types
Required to be 0 in first version of HEVC, may be used in future extensions.
Specifies the temporal sub-layer identifier of the NAL unit plus 1.
Specifies the type of RBSP data structure contained in the NAL unit.
Types
@type nuh_layer_id() :: 0
Required to be 0 in first version of HEVC, may be used in future extensions.
@type nuh_temporal_id_plus1() :: 1..7
Specifies the temporal sub-layer identifier of the NAL unit plus 1.
@type supported_types() :: :ap | :fu | :single_nalu
@type t() :: %Membrane.RTP.H265.NAL.Header{ nuh_layer_id: nuh_layer_id(), nuh_temporal_id_plus1: nuh_temporal_id_plus1(), type: type() }
@type type() :: 0..63
Specifies the type of RBSP data structure contained in the NAL unit.
@type types() :: supported_types() | unsupported_types() | :reserved
@type unsupported_types() :: :paci
Functions
@spec add_header(binary(), 0 | 1, type(), nuh_layer_id(), nuh_temporal_id_plus1()) :: binary()
Adds NAL header to payload
Parses type stored in NAL Header
Encodes given NAL type