An H265 Network Abstraction Layer Unit. More...
Instance Methods | |
| (FMLiveSwitchDataBuffer *) | - buffer |
| Gets the backing DataBuffer. More... | |
| (bool) | - fBit |
| Gets the forbidden Zero Bit. More... | |
| (FMLiveSwitchDataBuffer *) | - getBytes |
| Gets the NAL Unit as a byte array that can be passed to an encoder (includes Start Code). More... | |
| (instancetype) | - init |
| Creates an empty NAL Unit. More... | |
| (instancetype) | - initWithNaluBytes: |
| Creates a NAL Unit from a byte array. More... | |
| (int) | - layerId |
| Gets the LayerId: 6bits otherwise known as nuh_layer_id. More... | |
| (FMLiveSwitchDataBuffer *) | - payload |
| Gets the NAL payload. More... | |
| (FMLiveSwitchDataBuffer *) | - shortLength |
| Gets the size of the NAL Unit (including NAL header) in two octets stored in the returned byte array. More... | |
| (int) | - tid |
| Gets the TID: 3bits otherwise known as nuh_temporal_plus1. More... | |
| (int) | - type |
| Gets the NAL Unit Type. More... | |
Class Methods | |
| (int) | + fBitMask |
| Gets the forbidden zero bit mask. More... | |
| (int) | + findNaluWithEncodedData: |
| Scans for the index of the first NAL Unit after start. More... | |
| (int) | + findNextNaluWithEncodedData:start: |
| Scans for the index of the first NAL Unit after start. More... | |
| (FMLiveSwitchH265Nalu *) | + getNaluWithEncodedData: |
| Returns the first NAL unit after nalStart. More... | |
| (FMLiveSwitchH265Nalu *) | + getNaluWithEncodedData:nalStart:nextStartCodeLength: |
| Returns the first NAL unit after nalStart. More... | |
| (int) | + layerIdMask |
| Gets the Layer Id (nuh_layer_id) mask. More... | |
| (FMLiveSwitchH265Nalu *) | + nalu |
| Creates an empty NAL Unit. More... | |
| (FMLiveSwitchH265Nalu *) | + naluWithNaluBytes: |
| Creates a NAL Unit from a byte array. More... | |
| (FMLiveSwitchDataBuffer *) | + startCode |
| Gets the 4-byte NALU start code. More... | |
| (int) | + tidMask |
| Gets the TID (nuh_temporal_id_plus1) mask. More... | |
| (int) | + typeMask |
| Gets the NAL Unit Type (nal_unit_type) mask. More... | |
An H265 Network Abstraction Layer Unit.
| - (FMLiveSwitchDataBuffer*) buffer |
Gets the backing DataBuffer.
| - (bool) fBit |
Gets the forbidden Zero Bit.
The H.265 specification declares a value of 1 as a syntax violation.
| + (int) fBitMask |
Gets the forbidden zero bit mask.
| + (int) findNaluWithEncodedData: | (FMLiveSwitchDataBuffer *) | encodedData |
Scans for the index of the first NAL Unit after start.
| encodedData | The stream to search. |
| + (int) findNextNaluWithEncodedData: | (FMLiveSwitchDataBuffer *) | encodedData | |
| start: | (int) | start | |
Scans for the index of the first NAL Unit after start.
| encodedData | The stream to search. |
| start | The index to start searching from. |
| - (FMLiveSwitchDataBuffer*) getBytes |
Gets the NAL Unit as a byte array that can be passed to an encoder (includes Start Code).
| + (FMLiveSwitchH265Nalu*) getNaluWithEncodedData: | (FMLiveSwitchDataBuffer *) | encodedData |
Returns the first NAL unit after nalStart.
| encodedData | The byte array to search. |
| + (FMLiveSwitchH265Nalu*) getNaluWithEncodedData: | (FMLiveSwitchDataBuffer *) | encodedData | |
| nalStart: | (int) | nalStart | |
| nextStartCodeLength: | (int *) | nextStartCodeLength | |
Returns the first NAL unit after nalStart.
| encodedData | The byte array to search. |
| nalStart | The start index of the NAL. |
| nextStartCodeLength | OUT The length of the next the NAL startcode. |
| - (instancetype) init |
Creates an empty NAL Unit.
| - (instancetype) initWithNaluBytes: | (FMLiveSwitchDataBuffer *) | naluBytes |
Creates a NAL Unit from a byte array.
| naluBytes | The NALU bytes. |
| - (int) layerId |
Gets the LayerId: 6bits otherwise known as nuh_layer_id.
| + (int) layerIdMask |
Gets the Layer Id (nuh_layer_id) mask.
| + (FMLiveSwitchH265Nalu*) nalu |
Creates an empty NAL Unit.
| + (FMLiveSwitchH265Nalu*) naluWithNaluBytes: | (FMLiveSwitchDataBuffer *) | naluBytes |
Creates a NAL Unit from a byte array.
| naluBytes | The NALU bytes. |
| - (FMLiveSwitchDataBuffer*) payload |
Gets the NAL payload.
| - (FMLiveSwitchDataBuffer*) shortLength |
Gets the size of the NAL Unit (including NAL header) in two octets stored in the returned byte array.
Useful for creating H265 aggregation packets.
| + (FMLiveSwitchDataBuffer*) startCode |
Gets the 4-byte NALU start code.
| - (int) tid |
Gets the TID: 3bits otherwise known as nuh_temporal_plus1.
| + (int) tidMask |
Gets the TID (nuh_temporal_id_plus1) mask.
| - (int) type |
Gets the NAL Unit Type.
| + (int) typeMask |
Gets the NAL Unit Type (nal_unit_type) mask.