Closed palmerabollo closed 2 years ago
From your example, you haven't invoked the decoder. Opening the file just parses the header. You need to call decode() to get the decoder to run. Please see the example code.
Thanks, it worked. I could have been looking at it for days...
Hi,
I'm using JPEGDEC to decode a jpeg file in a ESP32.
I have defined the following callback function:
And I'm passing it to
jpeg.open
, that reads the image from a file.The image is successfully decoded because I see this output:
However, the callback function is never called (I don't see the "CALLBACK" output). What could be the reason? It should be supported according to https://github.com/bitbank2/JPEGDEC#the-callback-functions= but I am not able to get it to work.
Thank you for your time!