Camera overlay with alpha blend on top of X11 desktop

Hi,

Is there anyway to overlay camera image on X11 desktop with alpha-blending (transparency)?
What I’m hoping to realize would look like this.

I found something potentially relevant in “NVIDIA Jetson Linux Developer Guide”.
This section Enabling Blending and Video Overlays talks about TegraOverlayBlendmode, so tried both SourceAlphaBlend and PremultSourceAlphaBlend but did not get a successful result.

Hi,
Not sure but it may work if you customize NvEglRenderer. Please try the sample:

/usr/src/jetson_multimedia_api/samples/09_camera_jpeg_capture

If you can run it successfully, please check

/usr/src/jetson_multimedia_api/samples/common/classes/NvEglRenderer.cpp

The window is created with X11 APIs. Probably this is APIs for applying alpha value and you can add it for a try.