with traces

This commit is contained in:
philippe44
2022-09-11 10:14:33 -07:00
parent 97f8051e93
commit 813bafb036

View File

@@ -424,8 +424,18 @@ bool GDS_DrawJPEG(struct GDS_Device* Device, uint8_t *Source, int x, int y, int
Context.Pixels = 0;
// do decompress & draw
ESP_LOGW(TAG,"Context before p:%d, w:%d, h:%d, min(%d,%d), ofs(%d,%d)",
Context.Pixels,
Context.Width, Context.Height,
Context.XMin, Context.YMin,
Context.XOfs, Context.YOfs);
Res = jd_decomp(&Decoder, OutHandlerDirect, N);
if (Res == JDR_OK && Context.Pixels != (Context.Width + 1) * (Context.Height + 1)) {
ESP_LOGW(TAG,"Context after p:%d, w:%d, h:%d, min(%d,%d), ofs(%d,%d)",
Context.Pixels,
Context.Width, Context.Height,
Context.XMin, Context.YMin,
Context.XOfs, Context.YOfs);
if (Res == JDR_OK && Context.Pixels == Context.Width * Context.Height) {
Device->Dirty = true;
Ret = true;
} else {