2.5.36 IDeckLinkEncoderPacket Interface¶
The IDeckLinkEncoderPacket
interface represents an encoded data packet.
Interface |
Interface ID |
Description |
---|---|---|
IID_IDeckLinkEncoderVideoPacket |
|
|
IID_IDeckLinkEncoderAudioPacket |
|
2.5.36.1 IDeckLinkEncoderPacket::GetBytes method¶
-
HRESULT IDeckLinkEncoderPacket::GetBytes(void **buffer);¶
The GetBytes method allows direct access to the data buffer of an encoded packet.
- Parameters:
buffer – Pointer to raw encoded buffer - only valid while object remains valid.
- Return values:
E_FAIL – Failure
S_OK – Success
2.5.36.2 IDeckLinkEncoderPacket::GetSize method¶
-
long IDeckLinkEncoderPacket::GetSize();¶
The GetSize method returns the number of bytes in the encoded packet.
- Returns:
Number of bytes in the encoded packet buffer
2.5.36.3 IDeckLinkEncoderPacket::GetStreamTime method¶
-
HRESULT IDeckLinkEncoderPacket::GetStreamTime(BMDTimeValue *frameTime, BMDTimeScale timeScale);¶
The GetStreamTime method returns the time of an encoded video packet for a given timescale.
- Parameters:
frameTime – Frame time (in units of timeScale)
timeScale – Time scale for output parameters
- Return values:
E_FAIL – Failure
S_OK – Success
2.5.36.4 IDeckLinkEncoderPacket::GetPacketType method¶
-
BMDPacketType IDeckLinkEncoderPacket::GetPacketType();¶
The GetPacketType method returns the packet type of the encoded packet.
- Returns:
Packet type of encoded packet (
BMDPacketType
)