Allocates internal buffers based on the maximum width and height of the input and output images. The allocated buffers are automatically released when the channel is destroyed. This API must be called before hi_mpi_vpc_lut_remap is called for the first time in each channel. This API is synchronous.
The Ascend 310 AI Processor does not support this API in the current version.
The Ascend 910 AI Processor does not support this API in the current version.
The Ascend 310P AI Processor does not support this API in the current version.
hi_s32 hi_mpi_vpc_set_chn_workspace(hi_vpc_chn chn, hi_vpc_workspace_param *workspace_param, hi_u32 param_cnt)
For each channel, this API can be set only once and cannot be modified later.
Parameter |
Input/Output |
Description |
|---|---|---|
chn |
Input |
Image processing channel ID, whose value range is [0, 256). The maximum number of channels is 256. |
workspace_param |
Input |
Pointer to the workspace_param array. |
param_cnt |
Input |
Array length, which must be the same as the length of the workspace_param array. |