acldvppSetPicDesc 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

Sets an image description.

Prototype

1
2
3
4
5
6
7
8
aclError acldvppSetPicDescData(acldvppPicDesc *picDesc, void *dataDev)
aclError acldvppSetPicDescSize(acldvppPicDesc *picDesc, uint32_t size)
aclError acldvppSetPicDescFormat(acldvppPicDesc *picDesc, acldvppPixelFormat format)
aclError acldvppSetPicDescWidth(acldvppPicDesc *picDesc, uint32_t width)
aclError acldvppSetPicDescHeight(acldvppPicDesc *picDesc, uint32_t height)
aclError acldvppSetPicDescWidthStride(acldvppPicDesc *picDesc, uint32_t widthStride)
aclError acldvppSetPicDescHeightStride(acldvppPicDesc *picDesc, uint32_t heightStride)
aclError acldvppSetPicDescRetCode(acldvppPicDesc *picDesc, uint32_t retCode)

Parameters

Parameter

Input/Output

Description

picDesc

Output

Pointer to the image description.

Call acldvppCreatePicDesc to create data of the acldvppPicDesc type in advance.

dataDev

Input

Pointer to the image data memory on the device. The memory must be allocated by using acldvppMalloc.

size

Input

Memory size, in bytes.

format

Input

Image format. For details, see acldvppPixelFormat.

width

Input

Width of the source image.

height

Input

Height of the source image.

widthStride

Input

Width stride.

heightStride

Input

Height stride.

retCode

Input

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

Returns

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