FMLiveSwitchH264Depacketizer Class Reference

An H.264 depacketizer. More...

Instance Methods

(FMLiveSwitchH264Fragment *) - doCreateFragmentWithHeader:dataBuffer:
 Creates a fragment from a data buffer. More...
 
(void) - doDestroy
 Destroys this instance. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchH264Depacketizer class. More...
 
(instancetype) - initWithInput:
 Initializes a new instance of the FMLiveSwitchH264Depacketizer class. More...
 
(instancetype) - initWithPacketizationMode:
 Initializes a new instance of the FMLiveSwitchH264Depacketizer class. More...
 
(instancetype) - initWithProfile:level:packetizationMode:
 Initializes a new instance of the FMLiveSwitchH264Depacketizer class. More...
 
(instancetype) - initWithProfileLevelId:packetizationMode:
 Initializes a new instance of the FMLiveSwitchH264Depacketizer class. More...
 
(bool) - isKeyFrameWithInputBuffer:
 Checks if the databuffer contains a keyframe. More...
 
(NSString *) - label
 Gets a label that identifies this class. More...
 
(int) - packetizationMode
 Gets the packetization mode. More...
 
(void) - raiseFrame:
 Raises a frame. More...
 
- Instance Methods inherited from FMLiveSwitchVideoDepacketizer
(bool) - delayDepacketize
 Gets a value indicating whether depacketizing should be delayed. More...
 
(bool) - delayDepacketizeOnPendingKeyFrame
 Gets a flag indicating whether depacketizing should be bypassed for incoming media packets when a key frame request has been made via a PLI message. More...
 
(void) - doProcessFrame:inputBuffer:
 Processes a frame. More...
 
(void) - doProcessTrackStatsFromInputWithTrackStats:
 Process track stats from an input. More...
 
(long long) - framesCorrupted
 Gets the number of corrupted frames. More...
 
(long long) - framesDropped
 Gets the number of dropped frames. More...
 
(long long) - framesReceived
 Gets the number of received frames. More...
 
(instancetype) - initWithFormat:
 Initializes a new instance of the FMLiveSwitchVideoDepacketizer`1 class. More...
 
(instancetype) - initWithInputFormat:outputFormat:
 Initializes a new instance of the FMLiveSwitchVideoDepacketizer`1 class. More...
 
(bool) - isGapAllowedWithFragment:lastFragment:
 Determines whether a gap between two fragments is allowed. More...
 
(void) - sendKeyFrameRequestWithReason:
 Sends a key-frame request. More...
 
(void) - setDelayDepacketizeOnPendingKeyFrame:
 Sets a flag indicating whether depacketizing should be bypassed for incoming media packets when a key frame request has been made via a PLI message. More...
 

Class Methods

(FMLiveSwitchH264Depacketizer *) + depacketizer
 Initializes a new instance of the FMLiveSwitchH264Depacketizer class. More...
 
(FMLiveSwitchH264Depacketizer *) + depacketizerWithInput:
 Initializes a new instance of the FMLiveSwitchH264Depacketizer class. More...
 
(FMLiveSwitchH264Depacketizer *) + depacketizerWithPacketizationMode:
 Initializes a new instance of the FMLiveSwitchH264Depacketizer class. More...
 
(FMLiveSwitchH264Depacketizer *) + depacketizerWithProfile:level:packetizationMode:
 Initializes a new instance of the FMLiveSwitchH264Depacketizer class. More...
 
(FMLiveSwitchH264Depacketizer *) + depacketizerWithProfileLevelId:packetizationMode:
 Initializes a new instance of the FMLiveSwitchH264Depacketizer class. More...
 
- Class Methods inherited from FMLiveSwitchVideoDepacketizer
(FMLiveSwitchVideoDepacketizer *) + videoDepacketizerWithFormat:
 Initializes a new instance of the FMLiveSwitchVideoDepacketizer`1 class. More...
 
(FMLiveSwitchVideoDepacketizer *) + videoDepacketizerWithInput:
 Initializes a new instance of the FMLiveSwitchVideoDepacketizer`1 class. More...
 
(FMLiveSwitchVideoDepacketizer *) + videoDepacketizerWithInputFormat:outputFormat:
 Initializes a new instance of the FMLiveSwitchVideoDepacketizer`1 class. More...
 

Additional Inherited Members

- Protected Attributes inherited from FMLiveSwitchVideoDepacketizer
 __pad0__: FMLiveSwitchVideoPipe- (bool) allowDiagnosticTimer
 

Detailed Description

An H.264 depacketizer.

Method Documentation

◆ depacketizer

+ (FMLiveSwitchH264Depacketizer*) depacketizer

Initializes a new instance of the FMLiveSwitchH264Depacketizer class.

◆ depacketizerWithInput:

+ (FMLiveSwitchH264Depacketizer*) depacketizerWithInput: (NSObject< FMLiveSwitchIVideoOutput > *)  input

Initializes a new instance of the FMLiveSwitchH264Depacketizer class.

Parameters
inputThe input.

◆ depacketizerWithPacketizationMode:

+ (FMLiveSwitchH264Depacketizer*) depacketizerWithPacketizationMode: (int)  packetizationMode

Initializes a new instance of the FMLiveSwitchH264Depacketizer class.

Parameters
packetizationModeThe packetization mode.

◆ depacketizerWithProfile:level:packetizationMode:

+ (FMLiveSwitchH264Depacketizer*) depacketizerWithProfile: (NSString *)  profile
level: (NSString *)  level
packetizationMode: (int)  packetizationMode 

Initializes a new instance of the FMLiveSwitchH264Depacketizer class.

Parameters
profileThe profile.
levelThe level.
packetizationModeThe packetization mode.

◆ depacketizerWithProfileLevelId:packetizationMode:

+ (FMLiveSwitchH264Depacketizer*) depacketizerWithProfileLevelId: (FMLiveSwitchH264ProfileLevelId *)  profileLevelId
packetizationMode: (int)  packetizationMode 

Initializes a new instance of the FMLiveSwitchH264Depacketizer class.

Parameters
profileLevelIdThe profile level ID.
packetizationModeThe packetization mode.

◆ doCreateFragmentWithHeader:dataBuffer:

- (FMLiveSwitchH264Fragment*) doCreateFragmentWithHeader: (FMLiveSwitchRtpPacketHeader *)  header
dataBuffer: (FMLiveSwitchDataBuffer *)  dataBuffer 

Creates a fragment from a data buffer.

Parameters
headerThe rtp header for this packet.
dataBufferThe data buffer.

Implements FMLiveSwitchVideoDepacketizer.

◆ doDestroy

- (void) doDestroy

Destroys this instance.

Implements FMLiveSwitchVideoDepacketizer.

◆ init

- (instancetype) init

Initializes a new instance of the FMLiveSwitchH264Depacketizer class.

◆ initWithInput:

- (instancetype) initWithInput: (NSObject< FMLiveSwitchIVideoOutput > *)  input

Initializes a new instance of the FMLiveSwitchH264Depacketizer class.

Parameters
inputThe input.

Implements FMLiveSwitchVideoDepacketizer.

◆ initWithPacketizationMode:

- (instancetype) initWithPacketizationMode: (int)  packetizationMode

Initializes a new instance of the FMLiveSwitchH264Depacketizer class.

Parameters
packetizationModeThe packetization mode.

◆ initWithProfile:level:packetizationMode:

- (instancetype) initWithProfile: (NSString *)  profile
level: (NSString *)  level
packetizationMode: (int)  packetizationMode 

Initializes a new instance of the FMLiveSwitchH264Depacketizer class.

Parameters
profileThe profile.
levelThe level.
packetizationModeThe packetization mode.

◆ initWithProfileLevelId:packetizationMode:

- (instancetype) initWithProfileLevelId: (FMLiveSwitchH264ProfileLevelId *)  profileLevelId
packetizationMode: (int)  packetizationMode 

Initializes a new instance of the FMLiveSwitchH264Depacketizer class.

Parameters
profileLevelIdThe profile level ID.
packetizationModeThe packetization mode.

◆ isKeyFrameWithInputBuffer:

- (bool) isKeyFrameWithInputBuffer: (FMLiveSwitchDataBuffer *)  inputBuffer

Checks if the databuffer contains a keyframe.

Parameters
inputBufferVideoBuffer containing video data.

Implements FMLiveSwitchVideoDepacketizer.

◆ label

- (NSString*) label

Gets a label that identifies this class.

◆ packetizationMode

- (int) packetizationMode

Gets the packetization mode.

◆ raiseFrame:

- (void) raiseFrame: (FMLiveSwitchVideoFrame *)  frame

Raises a frame.

Parameters
frameThe frame.