acldvppGetStreamDesc series

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function

Obtains the description of a video stream.

Prototype

1
2
3
4
5
6
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). For details about the type definition, see acldvppStreamFormat.

timestamp

Timestamp.

retCode

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

eos

End of stream (EOS) flag.