ImageBlend#
Functions#
- NVCVStatus pvaImageBlendCreate(NVCVOperatorHandle *handle, NVCVImageRequirements const *const imageRequirements)
Constructs an instance of the ImageBlend operator.
- NVCVStatus pvaImageBlendSubmit(NVCVOperatorHandle handle, cupvaStream_t stream, NVCVImageHandle const in0, NVCVImageHandle const in1, const float alpha, NVCVImageHandle out)
Executes the ImageBlend operation on images.
Functions#
- NVCVStatus pvaImageBlendCreate(
- NVCVOperatorHandle *handle,
- NVCVImageRequirements const *const imageRequirements,
Constructs an instance of the ImageBlend operator.
Limitations:
Input/Output:
Image format
Allowed
U8
Yes
YUYV
Yes
UYVY
Yes
VYUY
Yes
YUV8p
Yes
BGR8
Yes
RGB8
Yes
BGRA8
Yes
RGBA8
Yes
BGR8p
Yes
RGB8p
Yes
Input/Output Dependency:
Property
Input == Output
Width
Yes
Height
Yes
Image format
Yes
- Parameters:
handle – [out] Where the operator instance handle will be written to.
Must not be NULL.
imageRequirements – [in] Pointer to the NVCVImageRequirements structure which contains image width, height and format information.
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – Handle is null or some parameter is outside valid range.
NVCV_ERROR_OUT_OF_MEMORY – Not enough memory to create the operator.
NVCV_ERROR_INVALID_IMAGE_FORMAT – Image format is invalid.
NVCV_SUCCESS – Operation executed successfully.
- NVCVStatus pvaImageBlendSubmit(
- NVCVOperatorHandle handle,
- cupvaStream_t stream,
- NVCVImageHandle const in0,
- NVCVImageHandle const in1,
- const float alpha,
- NVCVImageHandle out,
Executes the ImageBlend operation on images.
- Parameters:
handle – [in] Handle to the operator.
Must not be NULL.
stream – [in] Handle to a valid CUPVA stream.
in0 – [in] Input image 0 handle.
in1 – [in] Input image 1 handle.
alpha – [in] The blend factor Alpha in range [0.0, 1.0].
out – [out] Output image handle.
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – Handle is null.
NVCV_ERROR_INTERNAL – Internal error in the operator, invalid types passed in.
NVCV_SUCCESS – Operation executed successfully.