acl.himpi.vpc_set_chn_workspace
C Prototype |
hi_s32 hi_mpi_vpc_set_chn_workspace(hi_vpc_chn chn, hi_vpc_workspace_param *workspace_param, hi_u32 param_cnt) |
|---|---|
Python Function |
ret = acl.himpi.vpc_set_chn_workspace(chn, workspace_param, param_cnt) |
Function Usage |
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. The Atlas 200/300/500 Inference Product does not support this API. The Atlas Training Series Product does not support this API. |
Input Description |
chn: int, image processing channel ID.
workspace_param: list. The element type is an array of the hi_vpc_workspace_param dictionary. param_cnt: int, array length, which must be the same as the length of the workspace_param array. |
Return Value |
ret: int, error code.
|
Restrictions |
For each channel, this API can be set only once and cannot be modified later. |