FMIceLinkH264Nalu Class Reference

Inherits from NSObject
Declared in FMIceLinkH264Nalu.h
FMIceLinkH264Nalu.m

Overview

An H264 Network Abstraction Layer Unit.

– bottomFieldFlag

Gets the bottom_field_flag.
- (int)bottomFieldFlag

Discussion

Gets the bottom_field_flag.

Declared In

FMIceLinkH264Nalu.h

– buffer

Gets the backing DataBuffer.
- (FMIceLinkDataBuffer *)buffer

Discussion

Gets the backing DataBuffer.

Declared In

FMIceLinkH264Nalu.h

– deltaPicOrderCnt

Gets the pic_order_cnt_lsb
- (NSMutableArray *)deltaPicOrderCnt

Discussion

Gets the pic_order_cnt_lsb

Declared In

FMIceLinkH264Nalu.h

– fBit

Gets the forbidden Zero Bit. The H.264 specification declares a value of 1 as a syntax violation.
- (bool)fBit

Discussion

Gets the forbidden Zero Bit. The H.264 specification declares a value of 1 as a syntax violation.

Declared In

FMIceLinkH264Nalu.h

+ fBitMask

Gets the forbidden zero bit mask.
+ (int)fBitMask

Discussion

Gets the forbidden zero bit mask.

Declared In

FMIceLinkH264Nalu.h

– fieldPicFlag

Gets the field_pic_flag.
- (int)fieldPicFlag

Discussion

Gets the field_pic_flag.

Declared In

FMIceLinkH264Nalu.h

+ findNaluWithEncodedData:

Scans for the index of the first NAL Unit after start.
+ (int)findNaluWithEncodedData:(FMIceLinkDataBuffer *)encodedData

Parameters

encodedData

The stream to search.

Discussion

Scans for the index of the first NAL Unit after start.

Declared In

FMIceLinkH264Nalu.h

+ findNextNaluWithEncodedData:start:

Scans for the index of the first NAL Unit after start.
+ (int)findNextNaluWithEncodedData:(FMIceLinkDataBuffer *)encodedData start:(int)start

Parameters

encodedData

The stream to search.

start

The index to start searching from.

Discussion

Scans for the index of the first NAL Unit after start.

Declared In

FMIceLinkH264Nalu.h

– firstMbInSlice

Gets the first_mb_in_slice specifies the address of the first macroblock in the slice. When arbitrary slice order is not allowed as specified in Annex A, the value of first_mb_in_slice is constrained as follows: – If separate_colour_plane_flag is equal to 0, the value of first_mb_in_slice shall not be less than the value of first_mb_in_slice for any other slice of the current picture that precedes the current slice in decoding order. – Otherwise (separate_colour_plane_flag is equal to 1), the value of first_mb_in_slice shall not be less than the value of first_mb_in_slice for any other slice of the current picture that precedes the current slice in decoding order and has the same value of colour_plane_id.
- (int)firstMbInSlice

Discussion

Gets the first_mb_in_slice specifies the address of the first macroblock in the slice. When arbitrary slice order is not allowed as specified in Annex A, the value of first_mb_in_slice is constrained as follows: – If separate_colour_plane_flag is equal to 0, the value of first_mb_in_slice shall not be less than the value of first_mb_in_slice for any other slice of the current picture that precedes the current slice in decoding order. – Otherwise (separate_colour_plane_flag is equal to 1), the value of first_mb_in_slice shall not be less than the value of first_mb_in_slice for any other slice of the current picture that precedes the current slice in decoding order and has the same value of colour_plane_id.

Declared In

FMIceLinkH264Nalu.h

– 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.
- (int)frameNum

Discussion

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.

Declared In

FMIceLinkH264Nalu.h

– getBytes

Gets the NAL Unit as a byte array that can be passed to an encoder (includes Start Code).
- (FMIceLinkDataBuffer *)getBytes

Discussion

Gets the NAL Unit as a byte array that can be passed to an encoder (includes Start Code).

Declared In

FMIceLinkH264Nalu.h

+ getNaluWithEncodedData:

Returns the first NAL unit after nalStart.
+ (FMIceLinkH264Nalu *)getNaluWithEncodedData:(FMIceLinkDataBuffer *)encodedData

Parameters

encodedData

The byte array to search.

Discussion

Returns the first NAL unit after nalStart.

Declared In

FMIceLinkH264Nalu.h

+ getNaluWithEncodedData:nalStart:

Returns the first NAL unit after nalStart.
+ (FMIceLinkH264Nalu *)getNaluWithEncodedData:(FMIceLinkDataBuffer *)encodedData nalStart:(int)nalStart

Parameters

encodedData

The byte array to search.

nalStart

The start index of the NAL.

Discussion

Returns the first NAL unit after nalStart.

Declared In

FMIceLinkH264Nalu.h

– header

Gets the NAL header.
- (int)header

Discussion

Gets the NAL header.

Declared In

FMIceLinkH264Nalu.h

– idrPicFlag

Gets the idr_pic_flag.
- (int)idrPicFlag

Discussion

Gets the idr_pic_flag.

Declared In

FMIceLinkH264Nalu.h

– 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.
- (int)idrPicId

Discussion

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.

Declared In

FMIceLinkH264Nalu.h

– init

Creates an empty NAL Unit.
- (instancetype)init

Discussion

Creates an empty NAL Unit.

Declared In

FMIceLinkH264Nalu.h

– initWithNaluBytes:

Creates a NAL Unit from a byte array.
- (instancetype)initWithNaluBytes:(FMIceLinkDataBuffer *)naluBytes

Parameters

naluBytes

The NALU bytes.

Discussion

Creates a NAL Unit from a byte array.

Declared In

FMIceLinkH264Nalu.h

– nalRefIdc

Gets the NRI: 2bits otherwise known as nal_ref_idc.
- (int)nalRefIdc

Discussion

Gets the NRI: 2bits otherwise known as nal_ref_idc.

Declared In

FMIceLinkH264Nalu.h

+ nalu

Creates an empty NAL Unit.
+ (FMIceLinkH264Nalu *)nalu

Discussion

Creates an empty NAL Unit.

Declared In

FMIceLinkH264Nalu.h

+ naluWithNaluBytes:

Creates a NAL Unit from a byte array.
+ (FMIceLinkH264Nalu *)naluWithNaluBytes:(FMIceLinkDataBuffer *)naluBytes

Parameters

naluBytes

The NALU bytes.

Discussion

Creates a NAL Unit from a byte array.

Declared In

FMIceLinkH264Nalu.h

+ nriMask

Gets the nal_ref_idc mask.
+ (int)nriMask

Discussion

Gets the nal_ref_idc mask.

Declared In

FMIceLinkH264Nalu.h

– payload

Gets the NAL pay[load](#//api/name/load).
- (FMIceLinkDataBuffer *)payload

Discussion

Gets the NAL pay[load](#//api/name/load).

Declared In

FMIceLinkH264Nalu.h

– picOrderCntLsb

Gets the pic_order_cnt_lsb.
- (int)picOrderCntLsb

Discussion

Gets the pic_order_cnt_lsb.

Declared In

FMIceLinkH264Nalu.h

– picOrderCntType

Gets the pic_order_cnt_[type](#//api/name/type).
- (int)picOrderCntType

Discussion

Gets the pic_order_cnt_[type](#//api/name/type).

Declared In

FMIceLinkH264Nalu.h

– 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.
- (int)ppsId

Discussion

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.

Declared In

FMIceLinkH264Nalu.h

– shortLength

Gets the size of the NAL Unit (including NAL [header](#//api/name/header)) in two octets stored in the returned byte array. Useful for creating certain types of H264 such as STAP.
- (FMIceLinkDataBuffer *)shortLength

Discussion

Gets the size of the NAL Unit (including NAL [header](#//api/name/header)) in two octets stored in the returned byte array. Useful for creating certain types of H264 such as STAP.

Declared In

FMIceLinkH264Nalu.h

– sliceType

Gets the [type](#//api/name/type) of Slice contained in this NAL.
- (int)sliceType

Discussion

Gets the [type](#//api/name/type) of Slice contained in this NAL.

Declared In

FMIceLinkH264Nalu.h

– spsId

Gets the Sequence Parameter Set this NAL references.
- (int)spsId

Discussion

Gets the Sequence Parameter Set this NAL references.

Declared In

FMIceLinkH264Nalu.h

+ startCode

Gets the 4-byte NALU start code.
+ (FMIceLinkDataBuffer *)startCode

Discussion

Gets the 4-byte NALU start code.

Declared In

FMIceLinkH264Nalu.h

– type

Gets the NAL Unit Type.
- (int)type

Discussion

Gets the NAL Unit Type.

Declared In

FMIceLinkH264Nalu.h

+ typeMask

Gets the NAL Unit Type mask.
+ (int)typeMask

Discussion

Gets the NAL Unit Type mask.

Declared In

FMIceLinkH264Nalu.h