acldvppGetStreamDesc series

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Obtains the description of a video stream.

Prototype

void *acldvppGetStreamDescData(const acldvppStreamDesc *streamDesc)
uint32_t acldvppGetStreamDescSize(const acldvppStreamDesc *streamDesc)
acldvppStreamFormat acldvppGetStreamDescFormat(const acldvppStreamDesc *streamDesc)
uint64_t acldvppGetStreamDescTimestamp(const acldvppStreamDesc *streamDesc)
uint32_t acldvppGetStreamDescRetCode(const acldvppStreamDesc *streamDesc)
uint8_t acldvppGetStreamDescEos(const acldvppStreamDesc *streamDesc)

Parameters

Parameter

Input/Output

Description

streamDesc

Input

Pointer to the video stream description.

Call acldvppCreateStreamDesc to create data of the acldvppStreamDesc type in advance, and call acldvppSetStreamDesc series APIs to set the attributes of the video stream information.

Returns

Parameter

Description

data

Stream buffer on the device.

size

Buffer size in bytes.

format

Indicates the stream format (H.264/H.265).

timestamp

Timestamp.

retCode

Return code (0 on success; else, failure).

eos

End of stream (EOS) flag.