KSM edits to RA8875
Diff: GraphicsDisplayJPEG.cpp
- Revision:
- 120:be2aaa3adf72
- Parent:
- 119:d129b798f82f
- Child:
- 121:6bc4911f5e55
--- a/GraphicsDisplayJPEG.cpp Mon May 16 21:30:35 2016 +0000 +++ b/GraphicsDisplayJPEG.cpp Mon May 16 22:31:13 2016 +0000 @@ -179,7 +179,7 @@ jd->sz_pool -= nd; rp = (char*)jd->pool; /* Get start of available memory pool */ jd->pool = (void*)(rp + nd); /* Allocate requierd bytes */ - INFO("jd->pool %p", jd->pool); + //INFO("jd->pool %p", jd->pool); } INFO("rp %p", rp); return (void*)rp; /* Return allocated memory block (NULL:no memory to allocate) */ @@ -203,7 +203,8 @@ uint8_t d, z; int32_t *pb; - + INFO("create qt table (%p,%p,%d)", jd, data, ndata); + HexDump("JDEC", (uint8_t *)jd, sizeof(JDEC)); while (ndata) { /* Process all tables in the segment */ if (ndata < 65) return JDR_FMT1; /* Err: table size is unaligned */ ndata -= 65; @@ -815,7 +816,7 @@ uint16_t GraphicsDisplay::privInFunc(JDEC * jd, uint8_t * buff, uint16_t ndata) { - INFO("Read in %p count %d", buff, ndata); + //INFO("Read in %p count %d", buff, ndata); if (buff) { size_t n = fread(buff, 1, ndata, (FILE *)jd->device); INFO("fread returned %d of %d", n, ndata); @@ -830,7 +831,7 @@ uint16_t GraphicsDisplay::getJpegData(JDEC * jd, uint8_t * buff, uint16_t ndata) { - INFO("getJpegData(%p, %p, %d)", jd->infunc, buff, ndata); + //INFO("getJpegData(%p, %p, %d)", jd, buff, ndata); if (jd->infunc) return jd->infunc(jd, buff, ndata); else @@ -894,7 +895,7 @@ uint16_t n, i, j, len; JRESULT rc; - INFO("jd_prepare(%p,%p,%p,%d,%p)"); + INFO("jd_prepare(%p,%p,%p,%d,%p)", jd, infunc, pool, sz_pool, dev); HexDump("JDEC", (uint8_t *)jd, sizeof(JDEC)); if (!pool) { @@ -902,7 +903,7 @@ return JDR_PAR; } - INFO("pool is at %p", pool); + //INFO("pool is at %p", pool); jd->pool = pool; /* Work memroy */ jd->sz_pool = sz_pool; /* Size of given work memory */ jd->infunc = infunc; /* Stream input function */ @@ -928,7 +929,7 @@ ERR("JDR_INP"); return JDR_INP;/* Check SOI marker */ } - INFO("SOI"); + INFO("Checkpoint"); HexDump("SOI marker", seg, 2); if (LDB_WORD(seg) != 0xFFD8) { ERR("JDR_FMT1");