Search Results for

    Show / Hide Table of Contents

    Class Utility

    Utility methods.

    Inheritance
    System.Object
    Utility
    Namespace: FM.LiveSwitch.H265
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class Utility : object

    Methods

    GetNaluType(DataBuffer)

    Gets the NALU type.

    Declaration
    public static int GetNaluType(DataBuffer encodedFrame)
    Parameters
    Type Name Description
    DataBuffer encodedFrame

    The encoded frame.

    Returns
    Type Description
    System.Int32

    GetNaluType(DataBuffer, Int32)

    Gets the NALU type at the specified offset.

    Declaration
    public static int GetNaluType(DataBuffer encodedFrame, int offset)
    Parameters
    Type Name Description
    DataBuffer encodedFrame

    The encoded frame.

    System.Int32 offset

    The offset into the encoded frame.

    Returns
    Type Description
    System.Int32

    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
    DataBuffer encodedFrame

    The encoded frame.

    System.Int32 offset

    The offset into the encoded frame.

    Returns
    Type Description
    System.Int32

    IsIdr(DataBuffer)

    Determines whether the encoded frame starts with an IDR NALU.

    Declaration
    public static bool IsIdr(DataBuffer encodedFrame)
    Parameters
    Type Name Description
    DataBuffer encodedFrame

    The encoded frame.

    Returns
    Type Description
    System.Boolean

    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
    DataBuffer encodedFrame

    The encoded frame.

    System.Int32 offset

    The offset into the encoded frame.

    Returns
    Type Description
    System.Boolean

    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
    DataBuffer encodedFrame

    The encoded frame.

    Returns
    Type Description
    System.Boolean

    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.Int32 naluType

    The NALU type.

    DataBuffer encodedFrame

    The encoded frame.

    System.Int32 offset

    The offset into the encoded frame.

    Returns
    Type Description
    System.Boolean

    IsPps(DataBuffer)

    Determines whether the encoded frame starts with a PPS NALU.

    Declaration
    public static bool IsPps(DataBuffer encodedFrame)
    Parameters
    Type Name Description
    DataBuffer encodedFrame

    The encoded frame.

    Returns
    Type Description
    System.Boolean

    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
    DataBuffer encodedFrame

    The encoded frame.

    System.Int32 offset

    The offset into the encoded frame.

    Returns
    Type Description
    System.Boolean

    IsSps(DataBuffer)

    Determines whether the encoded frame starts with an SPS NALU.

    Declaration
    public static bool IsSps(DataBuffer encodedFrame)
    Parameters
    Type Name Description
    DataBuffer encodedFrame

    The encoded frame.

    Returns
    Type Description
    System.Boolean

    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
    DataBuffer encodedFrame

    The encoded frame.

    System.Int32 offset

    The offset into the encoded frame.

    Returns
    Type Description
    System.Boolean

    IsVps(DataBuffer)

    Determines whether the encoded frame starts with a VPS NALU.

    Declaration
    public static bool IsVps(DataBuffer encodedFrame)
    Parameters
    Type Name Description
    DataBuffer encodedFrame

    The encoded frame.

    Returns
    Type Description
    System.Boolean

    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
    DataBuffer encodedFrame

    The encoded frame.

    System.Int32 offset

    The offset into the encoded frame.

    Returns
    Type Description
    System.Boolean
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0