|
产品 |
是否支持 |
|---|---|
|
|
√ |
|
|
√ |
|
|
☓ |
|
|
☓ |
|
|
☓ |
算子功能:对图像做逆时针方向的旋转。
每个算子有两段接口,必须先调用“acldvppRotateGetWorkspaceSize”接口获取入参并根据计算流程计算所需workspace大小,再调用“acldvppRotate”接口执行计算。两段式接口如下:
1
|
acldvppStatus acldvppRotateGetWorkspaceSize(const aclTensor *self, float angle, uint32_t interpolationMode, bool expand, const aclIntArray *center, uint32_t paddingMode, const aclFloatArray *fill, aclTensor *out, uint64_t *workspaceSize, aclOpExecutor **executor) |
1
|
acldvppStatus acldvppRotate(void *workspace, uint64_t workspaceSize, aclOpExecutor *executor, aclrtStream stream) |
当expand为False时,如果center设置为nullptr,表示按照图像中心点旋转;如果设置center,则按照center设置的中心点旋转,以图像左上角为原点设置center的坐标值。
当expand为True时,设置center不生效,固定按照图像中心点旋转。
返回acldvppStatus状态码,具体请参见acldvpp返回码。
返回acldvppStatus状态码,具体请参见acldvpp返回码。