Camera overlay with alpha blend on top of X11 desktop


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.

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


If you can run it successfully, please check


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