Function: dvpp_jpeg_encode_async
|
C Prototype |
aclError acldvppJpegEncodeAsync(acldvppChannelDesc *channelDesc, acldvppPicDesc *inputDesc, const void *data, uint32_t *size, acldvppJpegeConfig *config, aclrtStream stream) |
|---|---|
|
Python Function |
ret = acl.media.dvpp_jpeg_encode_async(dvpp_channel_desc, input_dvpp_pic_desc, data, size_ptr, dvpp_jpege_config, stream) |
|
Function Usage |
Encodes YUV images into JPG images. This API is asynchronous. |
|
Input Description |
dvpp_channel_desc: int, pointer address of the channel description. It must be the same as the dvpp_channel_desc argument passed to the acl.media.dvpp_create_channel call.
input_dvpp_pic_desc: int, pointer address of the description of input images.
data: int, pointer address of the output buffer address for storing encoded data. size_ptr: int, pointer to the output buffer size, in bytes.
dvpp_jpege_config: int, pointer address of the image encoding configuration.
stream: int, stream object. |
|
Return Value |
ret: int, error code.
|
|
Restrictions |
This API is asynchronous. The API call delivers a task rather than executes a task. After this API is called, call the synchronization API (for example, acl.rt.synchronize_stream) to ensure that the task is complete. |
|
Reference |
For details about the API call sequence and example, see JPEGE. |