The vpiSubmitBoxFilter encountered an error while processing the image:
terminate called after throwing an instance of ‘std::runtime_error’
what(): VPI_ERROR_INVALID_IMAGE_FORMAT: Source image format not supported
I get the VPIImageFormat of the image, how should I convert the unsupported Format to the Format I want
VPIImageFormat type;
CHECK_STATUS(vpiImageGetFormat(input, &type));
VPIImage output;
CHECK_STATUS(vpiImageCreate(w, h, type, 0, &output));
CHECK_STATUS(vpiSubmitBoxFilter(stream, VPI_BACKEND_CUDA, input, output, 5, 5, VPI_BORDER_ZERO));