acldvppSetPicDesc Series
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
☓ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
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 the acldvppCreatePicDesc API 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 calling acldvppMalloc. |
size |
Input |
Buffer size in bytes. |
format |
Input |
Image format. For details about the type definition, 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; otherwise, failure. For details, see aclError.