Bodmer / JPEGDecoder

A JPEG decoder library
Other
220 stars 64 forks source link

Issue on My code #23

Closed anlpereira closed 6 years ago

anlpereira commented 6 years ago

Hi Bodmer, I don't know what is happening with my code. Some image files doesn't decompress at all. In the middle of the image it stops. See this video on youtube you will understand what I mean.

https://www.youtube.com/watch?v=RFY7xMxnhH8

Bodmer commented 6 years ago

Which processor are you using?

Bodmer commented 6 years ago

I am guessing you are using a Mega as that processor seems to stop decoding sometimes during the decode. See Issue #15.

The same image decodes fine on other processors so I can only assume the C code itself is OK but that for some reason the Mega gets stuck, it seems the Mega falls over when doing the maths to decode the image but I have not tracked down where this happens. The problem appears to be deep inside the picojpeg code somewhere and only manifests itself in very particular circumstances.

anlpereira commented 6 years ago

Yes, I'm using Mega2560. I will try with ESP32 that has already arrived. Thanks

Bodmer commented 6 years ago

OK, unfortunately I have not tracked down what is causing this, it only happens on a Mega.

I have updated the ReadMe to point out this problem.