I didn't know how to set the color_key, so I'm considering changing the policy to see if it can be handled on the pipeline side.
It looked like it could be done using a pipeline called alpha, so I tried it, but it didn't go as expected.
A transparent image (R,G,B=0,0,0) called invisible.png is displayed at 1920x1080, and videotestsrc at 1280x952 is displayed from (x,y)=(640,0) on it, and (R, G,B=0,0,0) is set as a transparent color.
gst-launch-1.0 imxcompositor_g2d name=comp \
sink_0::xpos=0 sink_0::ypos=0 sink_0::width=1920 sink_0::height=1080 \
sink_1::xpos=640 sink_1::ypos=0 sink_1::width=1280 sink_1::height=952 ! \
video/x-raw,format=RGB16 ! waylandsink window-width=1920 window-height=1080 \
filesrc location=invisible.png ! pngdec ! alpha method=custom target-r=0 target-b=0 target-g=0 ! imagefreeze ! video/x-raw,width=1920,height=1080,framerate=10/1 ! comp.sink_0 \
videotestsrc ! video/x-raw,width=1280,height=952 ! comp.sink_1
As shown in the attached image, I was hoping that the default image displayed by weston would be transparent and displayed, but it is not transparent and a black screen is displayed.
Is there anything we can do from here?