acldvppSetStreamDesc 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

Sets the description of a video stream.

Prototype

aclError acldvppSetStreamDescData(acldvppStreamDesc *streamDesc, void *dataDev)
aclError acldvppSetStreamDescSize(acldvppStreamDesc *streamDesc, uint32_t size)
aclError acldvppSetStreamDescFormat(acldvppStreamDesc *streamDesc, acldvppStreamFormat format)
aclError acldvppSetStreamDescTimestamp(acldvppStreamDesc *streamDesc, uint64_t timestamp)
aclError acldvppSetStreamDescRetCode(acldvppStreamDesc *streamDesc, uint32_t retCode)
aclError acldvppSetStreamDescEos(acldvppStreamDesc *streamDesc, uint8_t eos)

Parameters

Parameter

Input/Output

Description

streamDesc

Output

Pointer to the video stream description.

Call the acldvppCreateStreamDesc API to create the data of the acldvppStreamDesc type in advance.

dataDev

Input

Pointer to the stream buffer on the device.

size

Input

Buffer size in bytes.

format

Input

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

timestamp

Input

Timestamp.

retCode

Input

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

eos

Input

EOS flag (0: false; 1: true).

Returns

0 on success; else, failure. For details, see aclError.