FMLiveSwitchH265Packet Class Reference

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

Instance Methods

(FMLiveSwitchDataBuffer *) - buffer
 Gets the Packet as a DataBuffer. More...
 
(bool) - fragmentEnd
 Gets if this is the end of a Fragmented Unit. More...
 
(bool) - fragmentStart
 Gets if this is the start of a Fragmented Unit. More...
 
(instancetype) - init
 Default constuctor. More...
 
(NSMutableArray *) - nalus
 Gets the NAL Units. More...
 
(int) - naluType
 Gets the type of Payload that is in this packet. More...
 
(void) - setNalus:
 Sets the NAL Units. More...
 

Class Methods

(FMLiveSwitchH265Packet *) + createAggregationPacketWithNalus:
 Creates an Aggregation Packet (AP). More...
 
(NSMutableArray *) + createFragmentationUnitsWithNalu:
 Creates Fragmentation Unit Packets (FUs). More...
 
(FMLiveSwitchH265Packet *) + createSingleNaluPacketWithNalu:
 Creates a Single NAL Unit packet. More...
 
(int) + fuHeaderEBitMask
 Gets the Fragmentation Unit header end bit mask. More...
 
(int) + fuHeaderSBitMask
 Gets the Fragmentation Unit header start bit mask. More...
 
(int) + fuHeaderTypeBitMask
 Gets the Fragmentation Unit header type mask. More...
 
(int) + maxPacketSize
 Gets the maximum packet size (affects packetization). More...
 
(FMLiveSwitchH265Packet *) + packet
 Default constuctor. More...
 
(NSMutableArray *) + packetizeWithEncodedData:
 Packetizes a single encoded data frame into one or more H265 packets. More...
 
(FMLiveSwitchH265Packet *) + wrapWithBuffer:
 Parses the specified packet bytes. More...
 

Detailed Description

An H.265 packet for RTP.

Method Documentation

◆ buffer

Gets the Packet as a DataBuffer.

◆ createAggregationPacketWithNalus:

+ (FMLiveSwitchH265Packet*) createAggregationPacketWithNalus: (NSMutableArray *)  nalus

Creates an Aggregation Packet (AP).

Parameters
nalusThe NALUs.

◆ createFragmentationUnitsWithNalu:

+ (NSMutableArray*) createFragmentationUnitsWithNalu: (FMLiveSwitchH265Nalu *)  nalu

Creates Fragmentation Unit Packets (FUs).

Parameters
naluThe NALU.

◆ createSingleNaluPacketWithNalu:

+ (FMLiveSwitchH265Packet*) createSingleNaluPacketWithNalu: (FMLiveSwitchH265Nalu *)  nalu

Creates a Single NAL Unit packet.

Parameters
naluThe NALU.

◆ fragmentEnd

- (bool) fragmentEnd

Gets if this is the end of a Fragmented Unit.

◆ fragmentStart

- (bool) fragmentStart

Gets if this is the start of a Fragmented Unit.

◆ fuHeaderEBitMask

+ (int) fuHeaderEBitMask

Gets the Fragmentation Unit header end bit mask.

◆ fuHeaderSBitMask

+ (int) fuHeaderSBitMask

Gets the Fragmentation Unit header start bit mask.

◆ fuHeaderTypeBitMask

+ (int) fuHeaderTypeBitMask

Gets the Fragmentation Unit header type mask.

◆ init

- (instancetype) init

Default constuctor.

◆ maxPacketSize

+ (int) maxPacketSize

Gets the maximum packet size (affects packetization).

◆ nalus

- (NSMutableArray*) nalus

Gets the NAL Units.

◆ naluType

- (int) naluType

Gets the type of Payload that is in this packet.

◆ packet

Default constuctor.

◆ packetizeWithEncodedData:

+ (NSMutableArray*) packetizeWithEncodedData: (FMLiveSwitchDataBuffer *)  encodedData

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) setNalus: (NSMutableArray *)  value

Sets the NAL Units.

◆ wrapWithBuffer:

+ (FMLiveSwitchH265Packet*) wrapWithBuffer: (FMLiveSwitchDataBuffer *)  buffer

Parses the specified packet bytes.

Parameters
bufferThe packet bytes.