fm.liveswitch.h265.Packet Class Reference

An H.265 packet for RTP. More...

Public Member Functions

fm.liveswitch.DataBuffer getBuffer ()
 Gets the Packet as a DataBuffer. More...
 
boolean getFragmentEnd ()
 Gets if this is the end of a Fragmented Unit. More...
 
boolean getFragmentStart ()
 Gets if this is the start of a Fragmented Unit. More...
 
fm.liveswitch.h265.Nalu[] getNalus ()
 Gets the NAL Units. More...
 
int getNaluType ()
 Gets the type of Payload that is in this packet. More...
 
 Packet ()
 Default constuctor. More...
 
void setNalus (fm.liveswitch.h265.Nalu[] value)
 Sets the NAL Units. More...
 

Static Public Member Functions

static fm.liveswitch.h265.Packet createAggregationPacket (fm.liveswitch.h265.Nalu[] nalus)
 Creates an Aggregation Packet (AP). More...
 
static fm.liveswitch.h265.Packet[] createFragmentationUnits (fm.liveswitch.h265.Nalu nalu)
 Creates Fragmentation Unit Packets (FUs). More...
 
static fm.liveswitch.h265.Packet createSingleNaluPacket (fm.liveswitch.h265.Nalu nalu)
 Creates a Single NAL Unit packet. More...
 
static int getFuHeaderEBitMask ()
 Gets the Fragmentation Unit header end bit mask. More...
 
static int getFuHeaderSBitMask ()
 Gets the Fragmentation Unit header start bit mask. More...
 
static int getFuHeaderTypeBitMask ()
 Gets the Fragmentation Unit header type mask. More...
 
static int getMaxPacketSize ()
 Gets the maximum packet size (affects packetization). More...
 
static fm.liveswitch.h265.Packet[] packetize (fm.liveswitch.DataBuffer encodedData)
 Packetizes a single encoded data frame into one or more H265 packets. More...
 
static fm.liveswitch.h265.Packet wrap (fm.liveswitch.DataBuffer buffer)
 Parses the specified packet bytes. More...
 

Detailed Description

An H.265 packet for RTP.

Constructor & Destructor Documentation

◆ Packet()

fm.liveswitch.h265.Packet.Packet ( )

Default constuctor.

Member Function Documentation

◆ createAggregationPacket()

static fm.liveswitch.h265.Packet fm.liveswitch.h265.Packet.createAggregationPacket ( fm.liveswitch.h265.Nalu[]  nalus)
static

Creates an Aggregation Packet (AP).

Parameters
nalusThe NALUs.

◆ createFragmentationUnits()

static fm.liveswitch.h265.Packet [] fm.liveswitch.h265.Packet.createFragmentationUnits ( fm.liveswitch.h265.Nalu  nalu)
static

Creates Fragmentation Unit Packets (FUs).

Parameters
naluThe NALU.

◆ createSingleNaluPacket()

static fm.liveswitch.h265.Packet fm.liveswitch.h265.Packet.createSingleNaluPacket ( fm.liveswitch.h265.Nalu  nalu)
static

Creates a Single NAL Unit packet.

Parameters
naluThe NALU.

◆ getBuffer()

fm.liveswitch.DataBuffer fm.liveswitch.h265.Packet.getBuffer ( )

Gets the Packet as a DataBuffer.

◆ getFragmentEnd()

boolean fm.liveswitch.h265.Packet.getFragmentEnd ( )

Gets if this is the end of a Fragmented Unit.

◆ getFragmentStart()

boolean fm.liveswitch.h265.Packet.getFragmentStart ( )

Gets if this is the start of a Fragmented Unit.

◆ getFuHeaderEBitMask()

static int fm.liveswitch.h265.Packet.getFuHeaderEBitMask ( )
static

Gets the Fragmentation Unit header end bit mask.

◆ getFuHeaderSBitMask()

static int fm.liveswitch.h265.Packet.getFuHeaderSBitMask ( )
static

Gets the Fragmentation Unit header start bit mask.

◆ getFuHeaderTypeBitMask()

static int fm.liveswitch.h265.Packet.getFuHeaderTypeBitMask ( )
static

Gets the Fragmentation Unit header type mask.

◆ getMaxPacketSize()

static int fm.liveswitch.h265.Packet.getMaxPacketSize ( )
static

Gets the maximum packet size (affects packetization).

◆ getNalus()

fm.liveswitch.h265.Nalu [] fm.liveswitch.h265.Packet.getNalus ( )

Gets the NAL Units.

◆ getNaluType()

int fm.liveswitch.h265.Packet.getNaluType ( )

Gets the type of Payload that is in this packet.

◆ packetize()

static fm.liveswitch.h265.Packet [] fm.liveswitch.h265.Packet.packetize ( fm.liveswitch.DataBuffer  encodedData)
static

Packetizes a single encoded data frame into one or more H265 packets.

Only non-interleaved is supported. (sprop-max-don-diff = 0)

Parameters
encodedDataThe encoded data.

◆ setNalus()

void fm.liveswitch.h265.Packet.setNalus ( fm.liveswitch.h265.Nalu[]  value)

Sets the NAL Units.

◆ wrap()

static fm.liveswitch.h265.Packet fm.liveswitch.h265.Packet.wrap ( fm.liveswitch.DataBuffer  buffer)
static

Parses the specified packet bytes.

Parameters
bufferThe packet bytes.