I’m seeing in the Xavier SoC technical reference manual section “18.104.22.168.9 Blender”, that the VIC has some blend functionalities. I would like to use the “Per-Pixel Non-Premultiplied Alpha Blend output = srcsrc_alpha + dst(1-src_alpha)”.
Does any of the functions in the nvbuf_utils.h library provide this function or any of the other blend modes?
I’ve tried using NvBufferComposite, with composite_flag = NVBUFFER_COMPOSITE | NVBUFFER_BLEND, source and destination dmabuf format = NvBufferColorFormat_ARGB32.
However I get an error saying:
pixel_format must be RGBA for blending operation
I’ve attached my test code. See function start_vic_composite_mirror_blend(…)
camera_v4l2_cuda.cpp (60.4 KB)
camera_v4l2_cuda.h (3.7 KB)
How can I use NvBufferComposite to perform Per-Pixel Non-Premultiplied Alpha Blend?