Tool/software:
Hello,
I am developing a device using AM437X. I am using linux kernel now.
I want to display the gray scale image receive from camera on LCD.
However, when I set bits_per_pixel to 8 of fb_var_screeninfo, it returns error.
My code is like below.
m_varinfo.xres = 1280;
m_varinfo.yres = 720;
m_varinfo.xres_virtual = 1280;
m_varinfo.yres_virtual = m_varinfo.yres * 2;
m_varinfo.bits_per_pixel = 8;
if( ioctl(m_fd, FBIOPUT_VSCREENINFO, &m_varinfo) < 0 )
{
qDebug("Error setting variable information for: %s\n", FB_DEVICE);
return -1;
}
Is there any solution for displaying 8 BPP image?