FMLiveSwitchVp8Utility Class Reference

Utility methods. More...

Instance Methods

(instancetype) - init
 

Class Methods

(int) + deriveHeightWithBuffer:
 Derives the height. More...
 
(int) + deriveWidthWithBuffer:
 Derives the width. More...
 
(int) + getPictureIdDeltaWithPictureId:lastPictureId:
 Retrieves the difference between two picture IDs while accounting for overflow rollover. More...
 
(bool) + isKeyFrameWithBuffer:
 Determines whether the buffer holds a keyframe. More...
 
(FMLiveSwitchVp8Utility *) + utility
 

Detailed Description

Utility methods.

Method Documentation

◆ deriveHeightWithBuffer:

+ (int) deriveHeightWithBuffer: (FMLiveSwitchDataBuffer *)  buffer

Derives the height.

Parameters
bufferThe buffer.

◆ deriveWidthWithBuffer:

+ (int) deriveWidthWithBuffer: (FMLiveSwitchDataBuffer *)  buffer

Derives the width.

Parameters
bufferThe buffer.

◆ getPictureIdDeltaWithPictureId:lastPictureId:

+ (int) getPictureIdDeltaWithPictureId: (int)  pictureId
lastPictureId: (int)  lastPictureId 

Retrieves the difference between two picture IDs while accounting for overflow rollover.

Parameters
pictureIdThe current picture ID.
lastPictureIdThe last picture ID.
Returns
The difference between the picture IDs.

◆ init

- (instancetype) init

◆ isKeyFrameWithBuffer:

+ (bool) isKeyFrameWithBuffer: (FMLiveSwitchDataBuffer *)  buffer

Determines whether the buffer holds a keyframe.

The data buffer must represent the payload of a VP8 packet.

Parameters
bufferThe buffer.

◆ utility

+ (FMLiveSwitchVp8Utility*) utility