I have an embedded device with a franmebuffer.
fbp = (char *)mmap(0, screensize, PROT_READ | PROT_WRITE, MAP_SHARED,fbfd, 0);
*(fbp + 1) = 100
I map the memory to the framebuffer and with that can write a pixel onto the framebuffer and it will be displayed onto the screen of the device.
Now I want to display a whole picture from /tmp/bitmap.bmp to the device.
Is there already a c- oder c++-function existing, I could use to copy the picture from i.e. 320x240 bits to the framebuffer-memory ?