Bodmer / TJpg_Decoder

Jpeg decoder library based on Tiny JPEG Decompressor
Other
227 stars 43 forks source link

PSRAM compatibility #18

Closed beckmx closed 3 years ago

beckmx commented 3 years ago

Hello, I was using your library, and works very nice, I then started piling some more libs but looks like my ram is not enough, I bought an 8m PSRAM module, but looks like in arduino the allocations must be converted, do you see this as a future plan?

Bodmer commented 3 years ago

Not sure what you are asking for. What processor are you using, how much RAM does it have?

Maybe an ESP32 with TFT_eSPI? In that case the library will automatically use PSRAM for Sprites if you enable the PSRAM feature in the Arduino IDE. The jpeg decoder itself does not use much RAM so you need to look at the other libraries you are using.

beckmx commented 3 years ago

Okay, I moved into platformio because arduino is not the best fit for compiling with malloc + psram, and it solved the problem :)