|
|
|
@ -151,6 +151,7 @@ void jpegFlushFramebuffer()
|
|
|
|
|
|
|
|
|
|
// initialise the decoder to give access to image information
|
|
|
|
|
int ret = JpegDec.decodeFile("/tmp.jpeg");
|
|
|
|
|
if (ret == 1) {
|
|
|
|
|
Serial.print("decodeFile ret = ");
|
|
|
|
|
Serial.println(ret);
|
|
|
|
|
|
|
|
|
@ -158,11 +159,14 @@ void jpegFlushFramebuffer()
|
|
|
|
|
jpegInfo();
|
|
|
|
|
|
|
|
|
|
// render the image onto the screen at coordinate 0,0
|
|
|
|
|
if (JpegDec.width > 0 && JpegDec.height) {
|
|
|
|
|
renderJPEG(0, 0);
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
Serial.println("!!!! unkown jpeg format !!!!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// reset decoder
|
|
|
|
|
JpegDec.abort();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|