/ fm / liveswitch / vp8 / Utility
Class: Utility
liveswitch.vp8.Utility
Utility methods.
Table of contents
Constructors
Methods
Constructors
constructor
+ new Utility(): Utility
Returns: Utility
Defined in: Generated/TypeScript/fm.liveswitch/vp8/Utility.ts:11
Methods
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/vp8/Utility.ts:9
deriveHeight
▸ Static
deriveHeight(buffer
: DataBuffer): number
Derives the height.
Parameters:
Name | Type | Description |
---|---|---|
buffer |
DataBuffer | The buffer. |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/vp8/Utility.ts:29
deriveWidth
▸ Static
deriveWidth(buffer
: DataBuffer): number
Derives the width.
Parameters:
Name | Type | Description |
---|---|---|
buffer |
DataBuffer | The buffer. |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/vp8/Utility.ts:42
getPictureIdDelta
▸ Static
getPictureIdDelta(pictureId
: number, lastPictureId
: number): number
Retrieves the difference between two picture IDs while accounting for overflow rollover.
Parameters:
Name | Type | Description |
---|---|---|
pictureId |
number | The current picture ID. |
lastPictureId |
number | The last picture ID. |
Returns: number
The difference between the picture IDs.
Defined in: Generated/TypeScript/fm.liveswitch/vp8/Utility.ts:87
isKeyFrame
▸ Static
isKeyFrame(buffer
: DataBuffer): boolean
Determines whether the buffer holds a keyframe. The data buffer must represent the payload of a VP8 packet.
Parameters:
Name | Type | Description |
---|---|---|
buffer |
DataBuffer | The buffer. |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/vp8/Utility.ts:120