Class Utility
Utility methods.
Inheritance
System.Object
Utility
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch.Vp8
Assembly: FM.LiveSwitch.dll
Syntax
public class Utility
Methods
DeriveHeight(DataBuffer)
Derives the height.
Declaration
public static int DeriveHeight(DataBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | buffer | The buffer. |
Returns
Type | Description |
---|---|
System.Int32 |
DeriveWidth(DataBuffer)
Derives the width.
Declaration
public static int DeriveWidth(DataBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | buffer | The buffer. |
Returns
Type | Description |
---|---|
System.Int32 |
GetPictureIdDelta(Int32, Int32)
Retrieves the difference between two picture IDs while accounting for overflow rollover.
Declaration
public static int GetPictureIdDelta(int pictureId, int lastPictureId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pictureId | The current picture ID. |
System.Int32 | lastPictureId | The last picture ID. |
Returns
Type | Description |
---|---|
System.Int32 | The difference between the picture IDs. |
IsKeyFrame(DataBuffer)
Determines whether the buffer holds a keyframe. The data buffer must represent the payload of a VP8 packet.
Declaration
public static bool IsKeyFrame(DataBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | buffer | The buffer. |
Returns
Type | Description |
---|---|
System.Boolean |