Utility methods. More...
Instance Methods | |
(instancetype) | - init |
Class Methods | |
(int) | + getNaluLengthWithEncodedFrame:offset: |
Gets the NALU length at the specified offset. More... | |
(NSMutableArray *) | + getNaluTypesWithEncodedFrame: |
Gets the NALU types. More... | |
(int) | + getNaluTypeWithEncodedFrame: |
Gets the NALU type. More... | |
(int) | + getNaluTypeWithEncodedFrame:offset: |
Gets the NALU type at the specified offset. More... | |
(FMLiveSwitchNullableInt *) | + getPacketizationModeWithFormatParametersAttribute: |
Gets the packetization mode from an H.264 format parameters attribute. More... | |
(FMLiveSwitchNullableInt *) | + getPacketizationModeWithRtpMapAttribute: |
Gets the packetization mode from the related format parameters attribute of an H.264 RTP map attribute. More... | |
(FMLiveSwitchH264ProfileLevelId *) | + getProfileLevelIdWithFormatParametersAttribute: |
Gets the prolfile level id from an H.264 format parameters attribute. More... | |
(FMLiveSwitchH264ProfileLevelId *) | + getProfileLevelIdWithRtpMapAttribute: |
Gets the profile level id from the related format parameters attribute of an H.264 RTP map attribute. More... | |
(int) | + getStartCodeLengthWithEncodedFrame:offset: |
Gets the start code length at the specified offset. More... | |
(bool) | + isAudWithEncodedFrame: |
Determines whether the encoded frame starts with an AUD NALU. More... | |
(bool) | + isAudWithEncodedFrame:offset: |
Determines whether the encoded frame starts with an AUD NALU. More... | |
(bool) | + isIdrWithEncodedFrame: |
Determines whether the encoded frame starts with an IDR NALU. More... | |
(bool) | + isIdrWithEncodedFrame:offset: |
Determines whether the encoded frame starts with an IDR NALU. More... | |
(bool) | + isKeyFrameWithEncodedFrame: |
Determines whether the encoded frame starts with a keyframe (IDR, PPS, or SPS). More... | |
(bool) | + isNaluType:encodedFrame:offset: |
Determines whether the encoded frame starts with a given NALU type. More... | |
(bool) | + isPpsWithEncodedFrame: |
Determines whether the encoded frame starts with a PPS NALU. More... | |
(bool) | + isPpsWithEncodedFrame:offset: |
Determines whether the encoded frame starts with a PPS NALU. More... | |
(bool) | + isSpsWithEncodedFrame: |
Determines whether the encoded frame starts with an SPS NALU. More... | |
(bool) | + isSpsWithEncodedFrame:offset: |
Determines whether the encoded frame starts with an SPS NALU. More... | |
(NSMutableArray *) | + supportedPacketizationModes |
Gets the supported packetization modes. More... | |
(NSMutableArray *) | + supportedProfileIdcs |
Gets the supported profile ID codes. More... | |
(FMLiveSwitchDataBuffer *) | + trimAudWithEncodedFrame: |
Trims an AUD NALU from the start of the encoded frame, if one exists. More... | |
(FMLiveSwitchH264Utility *) | + utility |
Utility methods.
+ (int) getNaluLengthWithEncodedFrame: | (FMLiveSwitchDataBuffer *) | encodedFrame | |
offset: | (int) | offset | |
Gets the NALU length at the specified offset.
encodedFrame | The encoded frame. |
offset | The offset into the encoded frame. |
+ (NSMutableArray*) getNaluTypesWithEncodedFrame: | (FMLiveSwitchDataBuffer *) | encodedFrame |
Gets the NALU types.
encodedFrame | The encoded frame. |
+ (int) getNaluTypeWithEncodedFrame: | (FMLiveSwitchDataBuffer *) | encodedFrame |
Gets the NALU type.
encodedFrame | The encoded frame. |
+ (int) getNaluTypeWithEncodedFrame: | (FMLiveSwitchDataBuffer *) | encodedFrame | |
offset: | (int) | offset | |
Gets the NALU type at the specified offset.
encodedFrame | The encoded frame. |
offset | The offset into the encoded frame. |
+ (FMLiveSwitchNullableInt*) getPacketizationModeWithFormatParametersAttribute: | (FMLiveSwitchSdpFormatParametersAttribute *) | formatParametersAttribute |
Gets the packetization mode from an H.264 format parameters attribute.
formatParametersAttribute | The format parameters attribute. |
+ (FMLiveSwitchNullableInt*) getPacketizationModeWithRtpMapAttribute: | (FMLiveSwitchSdpRtpMapAttribute *) | rtpMapAttribute |
Gets the packetization mode from the related format parameters attribute of an H.264 RTP map attribute.
rtpMapAttribute | The RTP map attribute. |
+ (FMLiveSwitchH264ProfileLevelId*) getProfileLevelIdWithFormatParametersAttribute: | (FMLiveSwitchSdpFormatParametersAttribute *) | formatParametersAttribute |
Gets the prolfile level id from an H.264 format parameters attribute.
formatParametersAttribute | The format parameters attribute. |
+ (FMLiveSwitchH264ProfileLevelId*) getProfileLevelIdWithRtpMapAttribute: | (FMLiveSwitchSdpRtpMapAttribute *) | rtpMapAttribute |
Gets the profile level id from the related format parameters attribute of an H.264 RTP map attribute.
rtpMapAttribute | The RTP map attribute. |
+ (int) getStartCodeLengthWithEncodedFrame: | (FMLiveSwitchDataBuffer *) | encodedFrame | |
offset: | (int) | offset | |
Gets the start code length at the specified offset.
encodedFrame | The encoded frame. |
offset | The offset into the encoded frame. |
- (instancetype) init |
+ (bool) isAudWithEncodedFrame: | (FMLiveSwitchDataBuffer *) | encodedFrame |
Determines whether the encoded frame starts with an AUD NALU.
encodedFrame | The encoded frame. |
+ (bool) isAudWithEncodedFrame: | (FMLiveSwitchDataBuffer *) | encodedFrame | |
offset: | (int) | offset | |
Determines whether the encoded frame starts with an AUD NALU.
encodedFrame | The encoded frame. |
offset | The offset into the encoded frame. |
+ (bool) isIdrWithEncodedFrame: | (FMLiveSwitchDataBuffer *) | encodedFrame |
Determines whether the encoded frame starts with an IDR NALU.
encodedFrame | The encoded frame. |
+ (bool) isIdrWithEncodedFrame: | (FMLiveSwitchDataBuffer *) | encodedFrame | |
offset: | (int) | offset | |
Determines whether the encoded frame starts with an IDR NALU.
encodedFrame | The encoded frame. |
offset | The offset into the encoded frame. |
+ (bool) isKeyFrameWithEncodedFrame: | (FMLiveSwitchDataBuffer *) | encodedFrame |
Determines whether the encoded frame starts with a keyframe (IDR, PPS, or SPS).
encodedFrame | The encoded frame. |
+ (bool) isNaluType: | (int) | naluType | |
encodedFrame: | (FMLiveSwitchDataBuffer *) | encodedFrame | |
offset: | (int) | offset | |
Determines whether the encoded frame starts with a given NALU type.
naluType | The NALU type. |
encodedFrame | The encoded frame. |
offset | The offset into the encoded frame. |
+ (bool) isPpsWithEncodedFrame: | (FMLiveSwitchDataBuffer *) | encodedFrame |
Determines whether the encoded frame starts with a PPS NALU.
encodedFrame | The encoded frame. |
+ (bool) isPpsWithEncodedFrame: | (FMLiveSwitchDataBuffer *) | encodedFrame | |
offset: | (int) | offset | |
Determines whether the encoded frame starts with a PPS NALU.
encodedFrame | The encoded frame. |
offset | The offset into the encoded frame. |
+ (bool) isSpsWithEncodedFrame: | (FMLiveSwitchDataBuffer *) | encodedFrame |
Determines whether the encoded frame starts with an SPS NALU.
encodedFrame | The encoded frame. |
+ (bool) isSpsWithEncodedFrame: | (FMLiveSwitchDataBuffer *) | encodedFrame | |
offset: | (int) | offset | |
Determines whether the encoded frame starts with an SPS NALU.
encodedFrame | The encoded frame. |
offset | The offset into the encoded frame. |
+ (NSMutableArray*) supportedPacketizationModes |
Gets the supported packetization modes.
+ (NSMutableArray*) supportedProfileIdcs |
Gets the supported profile ID codes.
+ (FMLiveSwitchDataBuffer*) trimAudWithEncodedFrame: | (FMLiveSwitchDataBuffer *) | encodedFrame |
Trims an AUD NALU from the start of the encoded frame, if one exists.
encodedFrame | The encoded frame. |
+ (FMLiveSwitchH264Utility*) utility |