Search Results for

    Show / Hide Table of Contents

    Class Packet

    An H.265 packet for RTP.

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

    Constructors

    Packet()

    Default constuctor.

    Declaration
    public Packet()

    Properties

    Buffer

    Gets the Packet as a DataBuffer.

    Declaration
    public DataBuffer Buffer { get; }
    Property Value
    Type Description
    DataBuffer

    FragmentEnd

    Gets if this is the end of a Fragmented Unit.

    Declaration
    public bool FragmentEnd { get; }
    Property Value
    Type Description
    System.Boolean

    FragmentStart

    Gets if this is the start of a Fragmented Unit.

    Declaration
    public bool FragmentStart { get; }
    Property Value
    Type Description
    System.Boolean

    FuHeaderEBitMask

    Gets the Fragmentation Unit header end bit mask

    Declaration
    public static int FuHeaderEBitMask { get; }
    Property Value
    Type Description
    System.Int32

    FuHeaderSBitMask

    Gets the Fragmentation Unit header start bit mask

    Declaration
    public static int FuHeaderSBitMask { get; }
    Property Value
    Type Description
    System.Int32

    FuHeaderTypeBitMask

    Gets the Fragmentation Unit header type mask

    Declaration
    public static int FuHeaderTypeBitMask { get; }
    Property Value
    Type Description
    System.Int32

    MaxPacketSize

    Gets the maximum packet size (affects packetization).

    Declaration
    public static int MaxPacketSize { get; }
    Property Value
    Type Description
    System.Int32

    Nalus

    Gets or sets the NAL Units.

    Declaration
    public Nalu[] Nalus { get; set; }
    Property Value
    Type Description
    Nalu[]

    NaluType

    Gets the type of Payload that is in this packet.

    Declaration
    public int NaluType { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    CreateAggregationPacket(Nalu[])

    Creates an Aggregation Packet (AP).

    Declaration
    public static Packet CreateAggregationPacket(Nalu[] nalus)
    Parameters
    Type Name Description
    Nalu[] nalus

    The NALUs.

    Returns
    Type Description
    Packet

    CreateFragmentationUnits(Nalu)

    Creates Fragmentation Unit Packets (FUs).

    Declaration
    public static Packet[] CreateFragmentationUnits(Nalu nalu)
    Parameters
    Type Name Description
    Nalu nalu

    The NALU.

    Returns
    Type Description
    Packet[]

    CreateSingleNaluPacket(Nalu)

    Creates a Single NAL Unit packet.

    Declaration
    public static Packet CreateSingleNaluPacket(Nalu nalu)
    Parameters
    Type Name Description
    Nalu nalu

    The NALU.

    Returns
    Type Description
    Packet

    Packetize(DataBuffer)

    Packetizes a single encoded data frame into one or more H265 packets. Only non-interleaved is supported. (sprop-max-don-diff = 0)

    Declaration
    public static Packet[] Packetize(DataBuffer encodedData)
    Parameters
    Type Name Description
    DataBuffer encodedData

    The encoded data.

    Returns
    Type Description
    Packet[]

    Wrap(DataBuffer)

    Parses the specified packet bytes.

    Declaration
    public static Packet Wrap(DataBuffer buffer)
    Parameters
    Type Name Description
    DataBuffer buffer

    The packet bytes.

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