fm.liveswitch.vp8.Utility Class Reference

Utility methods. More...

Public Member Functions

 Utility ()
 

Static Public Member Functions

static int deriveHeight (fm.liveswitch.DataBuffer buffer)
 Derives the height. More...
 
static int deriveWidth (fm.liveswitch.DataBuffer buffer)
 Derives the width. More...
 
static int getPictureIdDelta (int pictureId, int lastPictureId)
 Retrieves the difference between two picture IDs while accounting for overflow rollover. More...
 
static boolean isKeyFrame (fm.liveswitch.DataBuffer buffer)
 Determines whether the buffer holds a keyframe. More...
 

Detailed Description

Utility methods.

Constructor & Destructor Documentation

◆ Utility()

fm.liveswitch.vp8.Utility.Utility ( )

Member Function Documentation

◆ deriveHeight()

static int fm.liveswitch.vp8.Utility.deriveHeight ( fm.liveswitch.DataBuffer  buffer)
static

Derives the height.

Parameters
bufferThe buffer.

◆ deriveWidth()

static int fm.liveswitch.vp8.Utility.deriveWidth ( fm.liveswitch.DataBuffer  buffer)
static

Derives the width.

Parameters
bufferThe buffer.

◆ getPictureIdDelta()

static int fm.liveswitch.vp8.Utility.getPictureIdDelta ( int  pictureId,
int  lastPictureId 
)
static

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.

◆ isKeyFrame()

static boolean fm.liveswitch.vp8.Utility.isKeyFrame ( fm.liveswitch.DataBuffer  buffer)
static

Determines whether the buffer holds a keyframe.

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

Parameters
bufferThe buffer.