Sets an image description. This API is synchronous.
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)
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, allocated by using acldvppMalloc. |
size |
Input |
Buffer size in bytes. |
format |
Input |
Image format. |
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). |
0 on success; else, failure.