This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

emWin Memory Aloc.

I want to use emWin to draw a GIF file or a jpeg File to my screen. I have to do this at run time, since I will not know what the picture is until then. I have used GUI_GIF_DrawEx(); function, because I do not have enough internal RAM. The issue is with GIF it takes 16K of dynamic memory to convert the file, and Jpeg I need at least 33k. I just don;t have that kind of Internal RAM on my processor. I am also using a processor with out an EMC. However, I do have lots of room on my flash device, or I can add external SPI RAM. Can emWin use external RAM via SPI, or memory space in the external flash for its memory allocation? If so, how would I do this?

Parents
  • Time to consider banding, a common technique where the same image is drawn multiple times but with different clip regions.

    So first draw may generate the output for the top 50 scan lines. The next draw may generate the output for the next 50 scan lines. Rinse and repeat until all scan lines have been generated and sent to the output device.

    Alternatively: Get a processor that is better matched to your requirements. There are lots of solutions now that have _huge_ amounts of RAM available (in relation to the 16kB and 33kB you are currently talking about).

Reply
  • Time to consider banding, a common technique where the same image is drawn multiple times but with different clip regions.

    So first draw may generate the output for the top 50 scan lines. The next draw may generate the output for the next 50 scan lines. Rinse and repeat until all scan lines have been generated and sent to the output device.

    Alternatively: Get a processor that is better matched to your requirements. There are lots of solutions now that have _huge_ amounts of RAM available (in relation to the 16kB and 33kB you are currently talking about).

Children
No data