mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 20:17:04 +03:00
with traces
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user