Search Results for

    Show / Hide Table of Contents

    Class Utility

    Utility methods.

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

    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
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.19.0