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 isGapAllowed (fm.liveswitch.vp8.Fragment fragment, fm.liveswitch.vp8.Fragment lastFragment)
 Determines whether a gap in the sequence of two fragments is allowed. 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.

◆ isGapAllowed()

static boolean fm.liveswitch.vp8.Utility.isGapAllowed ( fm.liveswitch.vp8.Fragment  fragment,
fm.liveswitch.vp8.Fragment  lastFragment 
)
static

Determines whether a gap in the sequence of two fragments is allowed.

◆ 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.