acldvppGetStreamDesc Series

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

x

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

√

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 and call the acldvppSetStreamDesc series to set the description of a video stream in advance.

Returns

Parameter

Description

data

Stream buffer on the device.

size

Buffer size in bytes.

format

Stream format: H.264/H.265. For details, see acldvppStreamFormat.

timestamp

Timestamp.

retCode

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

eos

End of stream (EOS) flag.