A video depacketizer. More...
Instance Methods | |
| (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... | |
| (TFragment) | - doCreateFragmentWithHeader:dataBuffer: |
| Creates a fragment from a data buffer. More... | |
| (void) | - doDestroy |
| Destroys this instance. 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) | - initWithInput: |
| 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... | |
| (bool) | - isKeyFrameWithInputBuffer: |
| Determines whether a buffer represents the start of a keyframe. 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 | |
| (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... | |
Protected Attributes | |
| __pad0__: FMLiveSwitchVideoPipe- (bool) allowDiagnosticTimer | |
A video depacketizer.
| - (bool) delayDepacketize |
Gets a value indicating whether depacketizing should be delayed.
| - (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.
Default is true.
| - (TFragment) doCreateFragmentWithHeader: | (FMLiveSwitchRtpPacketHeader *) | header | |
| dataBuffer: | (FMLiveSwitchDataBuffer *) | dataBuffer | |
Creates a fragment from a data buffer.
| header | The RTP header for this packet. |
| dataBuffer | The data buffer. |
Implemented in FMLiveSwitchVp9Depacketizer, FMLiveSwitchVp8Depacketizer, FMLiveSwitchH265Depacketizer, FMLiveSwitchH264Depacketizer, and FMLiveSwitchBasicVideoDepacketizer.
| - (void) doDestroy |
Destroys this instance.
Implemented in FMLiveSwitchVp9Depacketizer, FMLiveSwitchVp8Depacketizer, FMLiveSwitchH265Depacketizer, FMLiveSwitchH264Depacketizer, and FMLiveSwitchBasicVideoDepacketizer.
| - (void) doProcessFrame: | (FMLiveSwitchVideoFrame *) | frame | |
| inputBuffer: | (FMLiveSwitchVideoBuffer *) | inputBuffer | |
Processes a frame.
| frame | The frame. |
| inputBuffer | The input buffer. |
| - (void) doProcessTrackStatsFromInputWithTrackStats: | (FMLiveSwitchMediaTrackStats *) | trackStats |
Process track stats from an input.
| trackStats | The track stats. |
| - (long long) framesCorrupted |
Gets the number of corrupted frames.
| - (long long) framesDropped |
Gets the number of dropped frames.
| - (long long) framesReceived |
Gets the number of received frames.
| - (instancetype) initWithFormat: | (FMLiveSwitchVideoFormat *) | format |
Initializes a new instance of the FMLiveSwitchVideoDepacketizer`1 class.
| format | The format. |
Implemented in FMLiveSwitchBasicVideoDepacketizer.
| - (instancetype) initWithInput: | (NSObject< FMLiveSwitchIVideoOutput > *) | input |
Initializes a new instance of the FMLiveSwitchVideoDepacketizer`1 class.
| input | The input. |
Implemented in FMLiveSwitchVp9Depacketizer, FMLiveSwitchVp8Depacketizer, FMLiveSwitchH264Depacketizer, and FMLiveSwitchBasicVideoDepacketizer.
| - (instancetype) initWithInputFormat: | (FMLiveSwitchVideoFormat *) | inputFormat | |
| outputFormat: | (FMLiveSwitchVideoFormat *) | outputFormat | |
Initializes a new instance of the FMLiveSwitchVideoDepacketizer`1 class.
| inputFormat | The input format. |
| outputFormat | The output format. |
| - (bool) isGapAllowedWithFragment: | (TFragment) | fragment | |
| lastFragment: | (TFragment) | lastFragment | |
Determines whether a gap between two fragments is allowed.
| fragment | The fragment. |
| lastFragment | The last fragment. |
true if the gap is allowed; otherwise, false. | - (bool) isKeyFrameWithInputBuffer: | (FMLiveSwitchDataBuffer *) | inputBuffer |
Determines whether a buffer represents the start of a keyframe.
| inputBuffer | The buffer. |
true if the buffer represents the start of a keyframe; otherwise, false. Implemented in FMLiveSwitchVp9Depacketizer, FMLiveSwitchVp8Depacketizer, FMLiveSwitchH265Depacketizer, FMLiveSwitchH264Depacketizer, and FMLiveSwitchBasicVideoDepacketizer.
| - (void) sendKeyFrameRequestWithReason: | (NSString *) | reason |
Sends a key-frame request.
| - (void) setDelayDepacketizeOnPendingKeyFrame: | (bool) | value |
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.
Default is true.
| + (FMLiveSwitchVideoDepacketizer*) videoDepacketizerWithFormat: | (FMLiveSwitchVideoFormat *) | format |
Initializes a new instance of the FMLiveSwitchVideoDepacketizer`1 class.
| format | The format. |
| + (FMLiveSwitchVideoDepacketizer*) videoDepacketizerWithInput: | (NSObject< FMLiveSwitchIVideoOutput > *) | input |
Initializes a new instance of the FMLiveSwitchVideoDepacketizer`1 class.
| input | The input. |
| + (FMLiveSwitchVideoDepacketizer*) videoDepacketizerWithInputFormat: | (FMLiveSwitchVideoFormat *) | inputFormat | |
| outputFormat: | (FMLiveSwitchVideoFormat *) | outputFormat | |
Initializes a new instance of the FMLiveSwitchVideoDepacketizer`1 class.
| inputFormat | The input format. |
| outputFormat | The output format. |
|
protected |