Hi Saurabh,
Thanks for your reply.
Earlier, I have got the above result with the following step
Step 1: Run App 1( QT app) in /dev/fb0.
Step 2: Execute below steps to select /dev/fb1, unblank and to set size
export QT_QPA_EGLFS_FB=/dev/fb1
echo 0 > /sys/class/graphics/fb1/blank
fbset -fb /dev/fb1 -g 1920 1080 1920 2160 32
Step 3: Run App 2 application to show in overlay buffer
-------------------------------------------------------------------------------------------------------------------------------------------------
Now, I have executed following below steps( included alpha setting and color keying). But i cannot see anything in overlay buffer.
Step 1: Run App 1( QT app) in /dev/fb0.
Step 2: As you specified, I have used below code for alpha setting and color keying for fb1 .
int fd_fb = open("/dev/fb1", O_RDWR, 0);
if (fd_fb < 0)
{
qDebug()<<"unable to open fb10 ";
return;
}
qDebug()<<"fb1 opened sucessfully ";
struct mxcfb_gbl_alpha a;
a.enable = 1;
a.alpha = 0;
int err = ioctl(fd_fb,MXCFB_SET_GBL_ALPHA,&a);
if ( err < 0)
{
qDebug()<<"Error in alpha setting";
return;
}
struct mxcfb_color_key c;
c.enable = 0;
c.color_key = 0x00;
err = ioctl(fd_fb,MXCFB_SET_CLR_KEY,&c);
if ( err < 0)
{
qDebug()<<"error in color key set";
return;
}
Step 3: Execute below steps to select /dev/fb1, unblank and to set size
export QT_QPA_EGLFS_FB=/dev/fb1
echo 0 > /sys/class/graphics/fb1/blank
fbset -fb /dev/fb1 -g 1920 1080 1920 2160 32
Step 4: Run App 2 application to show in overlay buffer
Any problem with my steps or my alpha setting and color keying code is wrong?. Can you please help
Thanks,
Arun