FMLiveSwitchH265Utility Class Reference

Utility methods. More...

Instance Methods

(instancetype) - init
 

Class Methods

(int) + getNaluTypeWithEncodedFrame:
 Gets the NALU type. More...
 
(int) + getNaluTypeWithEncodedFrame:offset:
 Gets the NALU type at the specified offset. More...
 
(int) + getStartCodeLengthWithEncodedFrame:offset:
 Gets the start code length at the specified offset. 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, VPS, 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...
 
(bool) + isVpsWithEncodedFrame:
 Determines whether the encoded frame starts with a VPS NALU. More...
 
(bool) + isVpsWithEncodedFrame:offset:
 Determines whether the encoded frame starts with an VPS NALU. More...
 
(FMLiveSwitchH265Utility *) + utility
 

Detailed Description

Utility methods.

Method Documentation

◆ getNaluTypeWithEncodedFrame:

+ (int) getNaluTypeWithEncodedFrame: (FMLiveSwitchDataBuffer *)  encodedFrame

Gets the NALU type.

Parameters
encodedFrameThe encoded frame.

◆ getNaluTypeWithEncodedFrame:offset:

+ (int) getNaluTypeWithEncodedFrame: (FMLiveSwitchDataBuffer *)  encodedFrame
offset: (int)  offset 

Gets the NALU type at the specified offset.

Parameters
encodedFrameThe encoded frame.
offsetThe offset into the encoded frame.

◆ getStartCodeLengthWithEncodedFrame:offset:

+ (int) getStartCodeLengthWithEncodedFrame: (FMLiveSwitchDataBuffer *)  encodedFrame
offset: (int)  offset 

Gets the start code length at the specified offset.

Parameters
encodedFrameThe encoded frame.
offsetThe offset into the encoded frame.

◆ init

- (instancetype) init

◆ isIdrWithEncodedFrame:

+ (bool) isIdrWithEncodedFrame: (FMLiveSwitchDataBuffer *)  encodedFrame

Determines whether the encoded frame starts with an IDR NALU.

Parameters
encodedFrameThe encoded frame.

◆ isIdrWithEncodedFrame:offset:

+ (bool) isIdrWithEncodedFrame: (FMLiveSwitchDataBuffer *)  encodedFrame
offset: (int)  offset 

Determines whether the encoded frame starts with an IDR NALU.

Parameters
encodedFrameThe encoded frame.
offsetThe offset into the encoded frame.

◆ isKeyFrameWithEncodedFrame:

+ (bool) isKeyFrameWithEncodedFrame: (FMLiveSwitchDataBuffer *)  encodedFrame

Determines whether the encoded frame starts with a keyframe (IDR, VPS, PPS, or SPS).

Parameters
encodedFrameThe encoded frame.

◆ isNaluType:encodedFrame:offset:

+ (bool) isNaluType: (int)  naluType
encodedFrame: (FMLiveSwitchDataBuffer *)  encodedFrame
offset: (int)  offset 

Determines whether the encoded frame starts with a given NALU type.

Parameters
naluTypeThe NALU type.
encodedFrameThe encoded frame.
offsetThe offset into the encoded frame.

◆ isPpsWithEncodedFrame:

+ (bool) isPpsWithEncodedFrame: (FMLiveSwitchDataBuffer *)  encodedFrame

Determines whether the encoded frame starts with a PPS NALU.

Parameters
encodedFrameThe encoded frame.

◆ isPpsWithEncodedFrame:offset:

+ (bool) isPpsWithEncodedFrame: (FMLiveSwitchDataBuffer *)  encodedFrame
offset: (int)  offset 

Determines whether the encoded frame starts with a PPS NALU.

Parameters
encodedFrameThe encoded frame.
offsetThe offset into the encoded frame.

◆ isSpsWithEncodedFrame:

+ (bool) isSpsWithEncodedFrame: (FMLiveSwitchDataBuffer *)  encodedFrame

Determines whether the encoded frame starts with an SPS NALU.

Parameters
encodedFrameThe encoded frame.

◆ isSpsWithEncodedFrame:offset:

+ (bool) isSpsWithEncodedFrame: (FMLiveSwitchDataBuffer *)  encodedFrame
offset: (int)  offset 

Determines whether the encoded frame starts with an SPS NALU.

Parameters
encodedFrameThe encoded frame.
offsetThe offset into the encoded frame.

◆ isVpsWithEncodedFrame:

+ (bool) isVpsWithEncodedFrame: (FMLiveSwitchDataBuffer *)  encodedFrame

Determines whether the encoded frame starts with a VPS NALU.

Parameters
encodedFrameThe encoded frame.

◆ isVpsWithEncodedFrame:offset:

+ (bool) isVpsWithEncodedFrame: (FMLiveSwitchDataBuffer *)  encodedFrame
offset: (int)  offset 

Determines whether the encoded frame starts with an VPS NALU.

Parameters
encodedFrameThe encoded frame.
offsetThe offset into the encoded frame.

◆ utility