vpc_convert_color
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
x |
|
√ |
|
√ |
Function Usage
Converts the image format. This API is asynchronous.
Prototype
- C Prototype
1hi_s32 hi_mpi_vpc_convert_color (hi_vpc_chn chn, const hi_vpc_pic_info *source_pic, hi_vpc_pic_info *dest_pic, hi_u32 *task_id, hi_s32 milli_sec);
- Python Function
1task_id, ret = acl.himpi.vpc_convert_color(chn, source_pic, dest_pic, milli_sec)
Parameter Description
Parameter |
Description |
|---|---|
chn |
Int, channel ID for image processing.
|
source_pic |
Dict, source image information. For details, see hi_vpc_pic_info. For details about related restrictions, see Restrictions. |
dest_pic |
Dict, destination image information. For details, see hi_vpc_pic_info. Specify the width, height, width stride, height stride, memory address, memory size, and format of the output image.
|
milli_sec |
Int, timeout interval, in milliseconds.
|
Return Value Description
Return Value |
Description |
|---|---|
task_id |
Int, task ID, used to identify a task. |
ret |
Int, error code.
|
Restrictions
Version |
Restrictions |
|---|---|
|
|
|