更改输入图像的尺寸,同时拉伸/挤压图像。 更多...
函数 | |
| VPIStatus | vpiSubmitRescale (VPIStream stream, uint64_t backend, VPIImage input, VPIImage output, VPIInterpolationType interpolationType, VPIBorderExtension border, uint64_t flags) |
| 更改 2D 图像的尺寸和比例。 更多... | |
更改输入图像的尺寸,同时拉伸/挤压图像。
有关更多详细信息和使用示例,请参阅 Rescale。
| VPIStatus vpiSubmitRescale | ( | VPIStream | stream, |
| uint64_t | backend, | ||
| VPIImage | input, | ||
| VPIImage | output, | ||
| VPIInterpolationType | interpolationType, | ||
| VPIBorderExtension | border, | ||
| uint64_t | flags | ||
| ) |
#include <vpi/algo/Rescale.h>
更改 2D 图像的尺寸和比例。
| VPI_ERROR_INVALID_ARGUMENT | stream 为 NULL。 |
| VPI_ERROR_INVALID_ARGUMENT | input 或 output 为 NULL。 |
| VPI_ERROR_INVALID_ARGUMENT | input 或 output 尺寸超出有效范围。 |
| VPI_ERROR_INVALID_ARGUMENT | flags 具有一些不支持的标志。 |
| VPI_ERROR_INVALID_ARGUMENT | 不支持 border。 |
| VPI_ERROR_INVALID_ARGUMENT | 不支持 interpolationType。 |
| VPI_ERROR_INVALID_ARGUMENT | backend 无效或未知。 |
| VPI_ERROR_INVALID_ARGUMENT | input 和 output 格式不兼容。 |
| VPI_ERROR_INVALID_IMAGE_FORMAT | 不支持 input 或 output 格式。 |
| VPI_ERROR_NOT_IMPLEMENTED | 给定后端不支持缩放算法。 |
| VPI_ERROR_INVALID_OPERATION | 后端硬件不可用。 |
| VPI_ERROR_INVALID_OPERATION | 所需的后端未在 stream、input 或 output 中启用。 |
| VPI_SUCCESS | 操作执行成功。 |