Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

How To convert what is on TFT display to .BMP

$
0
0

I'm working on a project where I'm trying to save the image of what is on a 480x800 TFT display. The idea is that we will capture what is on the screen instead of using a camera to take a picture of the screen in order to make a user manual.

Hardware-wise, I'm running an S5D9 with 64Mbit external SDRAM. UI is handled by GUIX under the SSP 1.3.3 with a custom BSP.

I've got the software working to the point where when a pin of the microcontroller is flipped, a frame bufffer is copied into RAM, then that stored copy of the frame buffer is then written into a bitmap on the USB.

The bitmap *appears* to be formatted correctly (correct dimensions, I set the bitmap header to use 16bpp just like my display), but the image that is stored in the bitmap is garbage.

I'm attempting to store the data from the bitmap in the following fashion:

//store the framebuffer
for (u32_LoopCount = 0; u32_LoopCount < 192000; u32_LoopCount++)
{
     u32_FrameBuffer[u32_LoopCount] = g_display0.p_cfg->input[0].p_base[u32_LoopCount];
}

The thing is, I'm not certain if this is the correct method of storing the data. I know that I can write to the framebuffer in a similar fashion to what is above, but is this the correct method to capture the data that is currently displayed on a TFT display? If this looks correct, does anybody have any guidance on how to get a .BMP file out of the system correctly?


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>