2.5.39 IDeckLinkH265NALPacket Interface

The IDeckLinkH265NALPacket interface represents a H.265 encoded packet which has been captured by an IDeckLinkEncoderVideoPacket interface.

An IDeckLinkH265NALPacket instance can be obtained from IDeckLinkEncoderVideoPacket via QueryInterface when the captured pixel format is bmdFormatH265, otherwise QueryInterface will fail and return E_NOINTERFACE.

Related Interfaces

Interface

Interface ID

Description

IDeckLinkEncoderVideoPacket

IID_IDeckLinkEncoderVideoPacket

An IDeckLinkH265NALPacket object interface may be obtained from IDeckLinkEncoderVideoPacket using QueryInterface

IDeckLinkEncoderVideoPacket

IID_IDeckLinkEncoderVideoPacket

IDeckLinkH265NALPacket subclasses IDeckLinkEncoderVideoPacket

2.5.39.1 IDeckLinkH265NALPacket::GetUnitType method

HRESULT IDeckLinkH265NALPacket::GetUnitType(uint8_t *unitType);

The GetUnitType method returns the H.265 NAL packet unit type.

Parameters:

unitType – H.265 NAL unit type

Return values:
  • E_INVALIDARG – If unitType is not provided

  • S_OK – Success

2.5.39.2 IDeckLinkH265NALPacket::GetBytesNoPrefix method

HRESULT IDeckLinkH265NALPacket::GetBytesNoPrefix(void **buffer);

The GetBytesNoPrefix method allows direct access to the data buffer of an encoded packet without the NAL start code prefix.

Parameters:

buffer – Pointer to raw encoded buffer without start code prefix - only valid while object remains valid.

Return values:

S_OK – Success

2.5.39.3 IDeckLinkH265NALPacket::GetSizeNoPrefix method

long IDeckLinkH265NALPacket::GetSizeNoPrefix();

The GetSizeNoPrefix method returns the number of bytes in the encoded packet without the NAL start code prefix.

Returns:

Number of bytes in the encoded packet buffer without the start code prefix