An H264 Network Abstraction Layer Unit. More...
Instance Methods | |
| (int) | - bottomFieldFlag |
| Gets the bottom_field_flag. More... | |
| (FMLiveSwitchDataBuffer *) | - buffer |
| Gets the backing DataBuffer. More... | |
| (NSMutableArray *) | - deltaPicOrderCnt |
| Gets the pic_order_cnt_lsb. More... | |
| (bool) | - fBit |
| Gets the forbidden Zero Bit. More... | |
| (int) | - fieldPicFlag |
| Gets the field_pic_flag. More... | |
| (int) | - frameNum |
| Gets the frame_num: The Frame Number is used as an identifier for pictures and shall be represented by log2_max_frame_num_minus4 + 4 bits in the bitstream. More... | |
| (FMLiveSwitchDataBuffer *) | - getBytes |
| Gets the NAL Unit as a byte array that can be passed to an encoder (includes Start Code). More... | |
| (int) | - header |
| Gets the NAL header. More... | |
| (int) | - idrPicFlag |
| Gets the idr_pic_flag. More... | |
| (int) | - idrPicId |
| Gets the idr_pic_id: The values of idr_pic_id in all the slices of an IDR picture shall remain unchanged. More... | |
| (instancetype) | - init |
| Creates an empty NAL Unit. More... | |
| (instancetype) | - initWithNaluBytes: |
| Creates a NAL Unit from a byte array. More... | |
| (int) | - nalRefIdc |
| Gets the NRI: 2bits otherwise known as nal_ref_idc. More... | |
| (FMLiveSwitchDataBuffer *) | - payload |
| Gets the NAL payload. More... | |
| (int) | - picOrderCntLsb |
| Gets the pic_order_cnt_lsb. More... | |
| (int) | - picOrderCntType |
| Gets the pic_order_cnt_type. More... | |
| (int) | - ppsId |
| Gets the Picture Parameter Set specifies the picture parameter set in use. More... | |
| (FMLiveSwitchDataBuffer *) | - shortLength |
| Gets the size of the NAL Unit (including NAL header) in two octets stored in the returned byte array. More... | |
| (int) | - sliceType |
| Gets the type of Slice contained in this NAL. More... | |
| (int) | - spsId |
| Gets the Sequence Parameter Set this NAL references. 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... | |
| (FMLiveSwitchH264Nalu *) | + getNaluWithEncodedData: |
| Returns the first NAL unit after nalStart. More... | |
| (FMLiveSwitchH264Nalu *) | + getNaluWithEncodedData:nalStart:nextStartCodeLength: |
| Returns the first NAL unit after nalStart. More... | |
| (FMLiveSwitchH264Nalu *) | + nalu |
| Creates an empty NAL Unit. More... | |
| (FMLiveSwitchH264Nalu *) | + naluWithNaluBytes: |
| Creates a NAL Unit from a byte array. More... | |
| (int) | + nriMask |
| Gets the nal_ref_idc mask. More... | |
| (FMLiveSwitchDataBuffer *) | + startCode |
| Gets the 4-byte NALU start code. More... | |
| (int) | + typeMask |
| Gets the NAL Unit Type mask. More... | |
An H264 Network Abstraction Layer Unit.
| - (int) bottomFieldFlag |
Gets the bottom_field_flag.
| - (FMLiveSwitchDataBuffer*) buffer |
Gets the backing DataBuffer.
| - (NSMutableArray*) deltaPicOrderCnt |
Gets the pic_order_cnt_lsb.
| - (bool) fBit |
Gets the forbidden Zero Bit.
The H.264 specification declares a value of 1 as a syntax violation.
| + (int) fBitMask |
Gets the forbidden zero bit mask.
| - (int) fieldPicFlag |
Gets the field_pic_flag.
| + (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. |
| - (int) frameNum |
Gets the frame_num: The Frame Number is used as an identifier for pictures and shall be represented by log2_max_frame_num_minus4 + 4 bits in the bitstream.
| - (FMLiveSwitchDataBuffer*) getBytes |
Gets the NAL Unit as a byte array that can be passed to an encoder (includes Start Code).
| + (FMLiveSwitchH264Nalu*) getNaluWithEncodedData: | (FMLiveSwitchDataBuffer *) | encodedData |
Returns the first NAL unit after nalStart.
| encodedData | The byte array to search. |
| + (FMLiveSwitchH264Nalu*) 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. |
| - (int) header |
Gets the NAL header.
| - (int) idrPicFlag |
Gets the idr_pic_flag.
| - (int) idrPicId |
Gets the idr_pic_id: The values of idr_pic_id in all the slices of an IDR picture shall remain unchanged.
When two consecutive access units in decoding order are both IDR access units, the value of idr_pic_id in the slices of the first such IDR access unit shall differ from the idr_pic_id in the second such IDR access unit. The value of idr_pic_id shall be in the range of 0 to 65535, inclusive.
| - (instancetype) init |
Creates an empty NAL Unit.
| - (instancetype) initWithNaluBytes: | (FMLiveSwitchDataBuffer *) | naluBytes |
Creates a NAL Unit from a byte array.
| naluBytes | The NALU bytes. |
| - (int) nalRefIdc |
Gets the NRI: 2bits otherwise known as nal_ref_idc.
| + (FMLiveSwitchH264Nalu*) nalu |
Creates an empty NAL Unit.
| + (FMLiveSwitchH264Nalu*) naluWithNaluBytes: | (FMLiveSwitchDataBuffer *) | naluBytes |
Creates a NAL Unit from a byte array.
| naluBytes | The NALU bytes. |
| + (int) nriMask |
Gets the nal_ref_idc mask.
| - (FMLiveSwitchDataBuffer*) payload |
Gets the NAL payload.
| - (int) picOrderCntLsb |
Gets the pic_order_cnt_lsb.
| - (int) picOrderCntType |
Gets the pic_order_cnt_type.
| - (int) ppsId |
Gets the Picture Parameter Set specifies the picture parameter set in use.
The value of pic_parameter_set_id shall be in the range of 0 to 255, inclusive.
| - (FMLiveSwitchDataBuffer*) shortLength |
Gets the size of the NAL Unit (including NAL header) in two octets stored in the returned byte array.
Useful for creating certain types of H264 such as STAP.
| - (int) sliceType |
Gets the type of Slice contained in this NAL.
| - (int) spsId |
Gets the Sequence Parameter Set this NAL references.
| + (FMLiveSwitchDataBuffer*) startCode |
Gets the 4-byte NALU start code.
| - (int) type |
Gets the NAL Unit Type.
| + (int) typeMask |
Gets the NAL Unit Type mask.