Class Utility
Utility methods.
Inheritance
Inherited Members
Namespace: FM.LiveSwitch.H265
Assembly: FM.LiveSwitch.dll
Syntax
public class Utility
Methods
GetNaluType(DataBuffer)
Gets the NALU type.
Declaration
public static int GetNaluType(DataBuffer encodedFrame)
Parameters
Type | Name | Description |
---|---|---|
Data |
encodedFrame | The encoded frame. |
Returns
Type | Description |
---|---|
System. |
GetNaluType(DataBuffer, Int32)
Gets the NALU type at the specified offset.
Declaration
public static int GetNaluType(DataBuffer encodedFrame, int offset)
Parameters
Type | Name | Description |
---|---|---|
Data |
encodedFrame | The encoded frame. |
System. |
offset | The offset into the encoded frame. |
Returns
Type | Description |
---|---|
System. |
GetStartCodeLength(DataBuffer, Int32)
Gets the start code length at the specified offset.
Declaration
public static int GetStartCodeLength(DataBuffer encodedFrame, int offset)
Parameters
Type | Name | Description |
---|---|---|
Data |
encodedFrame | The encoded frame. |
System. |
offset | The offset into the encoded frame. |
Returns
Type | Description |
---|---|
System. |
IsIdr(DataBuffer)
Determines whether the encoded frame starts with an IDR NALU.
Declaration
public static bool IsIdr(DataBuffer encodedFrame)
Parameters
Type | Name | Description |
---|---|---|
Data |
encodedFrame | The encoded frame. |
Returns
Type | Description |
---|---|
System. |
IsIdr(DataBuffer, Int32)
Determines whether the encoded frame starts with an IDR NALU.
Declaration
public static bool IsIdr(DataBuffer encodedFrame, int offset)
Parameters
Type | Name | Description |
---|---|---|
Data |
encodedFrame | The encoded frame. |
System. |
offset | The offset into the encoded frame. |
Returns
Type | Description |
---|---|
System. |
IsKeyFrame(DataBuffer)
Determines whether the encoded frame starts with a keyframe (IDR, VPS, PPS, or SPS).
Declaration
public static bool IsKeyFrame(DataBuffer encodedFrame)
Parameters
Type | Name | Description |
---|---|---|
Data |
encodedFrame | The encoded frame. |
Returns
Type | Description |
---|---|
System. |
IsNaluType(Int32, DataBuffer, Int32)
Determines whether the encoded frame starts with a given NALU type.
Declaration
public static bool IsNaluType(int naluType, DataBuffer encodedFrame, int offset)
Parameters
Type | Name | Description |
---|---|---|
System. |
naluType | The NALU type. |
Data |
encodedFrame | The encoded frame. |
System. |
offset | The offset into the encoded frame. |
Returns
Type | Description |
---|---|
System. |
IsPps(DataBuffer)
Determines whether the encoded frame starts with a PPS NALU.
Declaration
public static bool IsPps(DataBuffer encodedFrame)
Parameters
Type | Name | Description |
---|---|---|
Data |
encodedFrame | The encoded frame. |
Returns
Type | Description |
---|---|
System. |
IsPps(DataBuffer, Int32)
Determines whether the encoded frame starts with a PPS NALU.
Declaration
public static bool IsPps(DataBuffer encodedFrame, int offset)
Parameters
Type | Name | Description |
---|---|---|
Data |
encodedFrame | The encoded frame. |
System. |
offset | The offset into the encoded frame. |
Returns
Type | Description |
---|---|
System. |
IsSps(DataBuffer)
Determines whether the encoded frame starts with an SPS NALU.
Declaration
public static bool IsSps(DataBuffer encodedFrame)
Parameters
Type | Name | Description |
---|---|---|
Data |
encodedFrame | The encoded frame. |
Returns
Type | Description |
---|---|
System. |
IsSps(DataBuffer, Int32)
Determines whether the encoded frame starts with an SPS NALU.
Declaration
public static bool IsSps(DataBuffer encodedFrame, int offset)
Parameters
Type | Name | Description |
---|---|---|
Data |
encodedFrame | The encoded frame. |
System. |
offset | The offset into the encoded frame. |
Returns
Type | Description |
---|---|
System. |
IsVps(DataBuffer)
Determines whether the encoded frame starts with a VPS NALU.
Declaration
public static bool IsVps(DataBuffer encodedFrame)
Parameters
Type | Name | Description |
---|---|---|
Data |
encodedFrame | The encoded frame. |
Returns
Type | Description |
---|---|
System. |
IsVps(DataBuffer, Int32)
Determines whether the encoded frame starts with an VPS NALU.
Declaration
public static bool IsVps(DataBuffer encodedFrame, int offset)
Parameters
Type | Name | Description |
---|---|---|
Data |
encodedFrame | The encoded frame. |
System. |
offset | The offset into the encoded frame. |
Returns
Type | Description |
---|---|
System. |