how long does PNG, JPG, GIF images take to display?

Hello i have a strange question. I know BMP images are the best to display on LCD screens. But what about JPG, PNG, GIF images? I know on a UNO board it will take longer to decode and display. But what about faster processors like the DUE, M0, or even using a ESP8266? Would it help to stream better and quicker to get that image to the screen?

JPEG requires at least 8kB of SRAM
GIF requires at least 16kB of SRAM

BMP especially if in native 16-bit colour format requires very little SRAM
You can render BMP from SD Card even with a Uno

This means:

  1. unlimited number of pictures on an SD Card.

  2. small number of pictures in program Flash memory or SPIFFS

  3. decoding JPEG or GIF requires computational power e.g. ARM or Expressif

  4. blitting BMP from SD Card or Flash memory depends on reading speed e.g. SPI

  5. compressing image data into a small JPEG reduces storage in Flash. Reduces SPI traffic from smaller files on SD. But takes more time to decode.

I have never tried PNG files.

David.

Hello David thank you for that information that helped me a lot to understand what would i need to figure out for a upcoming project for a game.

If you only need a few 240x320 images, you can store them as JPEGs in a Due Flash, ESP Flash (or SPIFFS)
Which avoids having an SD Card holder.
Or you can have a massive number of 32x32 JPEG tiles in Flash.

BMPs are not very practical without an SD Card.

David.

Hello David this is a wallet pocket handheld game. So I'm looking at using 328p it's small chip design. However I'm now looking into ESP8266 because of it's processing power and also much more memory size. If i disable the wifi on it. But again still looking into it.

I can not do a SD card because of the size and there is no room to make it work. I would love more thought on that. later on i hope. I'm right now going to be using a 1.44" Screen i found on eBay and other places like Amazon and what not.

Be realistic. Write down your requirements.

Design the project on paper before you buy any hardware or write any software.

I'm writing down Everything. But what I'm not sure is on processing, memory to hold the sketch, images and sound. Other thing that Everything else the screen, The size of the project device when it's finish. among other things.

That is fine. You know your requirements. Say what they are. Someone might advise you.

No one knows what you want until you tell them.