Function: dvpp_jpeg_encode_async
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
x |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Description
Encodes YUV images into JPG images. This API is asynchronous.
Prototype
- C Prototype
1aclError acldvppJpegEncodeAsync(acldvppChannelDesc *channelDesc, acldvppPicDesc *inputDesc, const void *data, uint32_t *size, acldvppJpegeConfig *config, aclrtStream stream)
- Python Function
1ret = acl.media.dvpp_jpeg_encode_async(dvpp_channel_desc, input_dvpp_pic_desc, data, size_ptr, dvpp_jpege_config, stream)
Parameters
|
Parameter |
Description |
|---|---|
|
dvpp_channel_desc |
Int, pointer address of the channel description. The value must be the same as that of dvpp_channel_desc specified when a channel is created by calling acl.media.dvpp_create_channel. |
|
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 |
Specified stream. |
Return Value
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code. 0 on success; else, failure. |