acldvppSetStreamDesc 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

Sets the description of a video stream.

Prototype

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

timestamp

Input

Timestamp.

retCode

Input

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

eos

Input

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

Returns

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