I need to display a raw image in QT widgets. I run X11 in a framebuffer, so OpenGL is not available.
Both images and framebuffer are in the same format - RGB565, but if necessary, I can change it to any other format. I do not need to mix or scale. I just need to display the pixels as is.
I use QPainter :: drawImage, but it converts QImage to QPixmap, and this conversion seems very slow. It is also supported by Xrender, and I think that unnecessary overhead is needed to support mixing in Xrender, which I really don't need.
Is there a better way? If it is not available in QT, I can use Xlib or any other library or protocol. I can change the driver, the X server or something else.
source share