Update tjpgd_example.c
This commit is contained in:
parent
a5ad91fc1d
commit
e280812ee8
|
@ -18,7 +18,6 @@ unsigned int in_func (JDEC* jd, uint8_t* buff, unsigned int nbyte)
|
|||
{
|
||||
IODEV *dev = (IODEV*)jd->device; /* Device identifier for the session (5th argument of jd_prepare function) */
|
||||
|
||||
|
||||
if (buff) {
|
||||
/* Read bytes from input stream */
|
||||
return (uint16_t)fread(buff, 1, nbyte, dev->fp);
|
||||
|
@ -39,7 +38,6 @@ int out_func (JDEC* jd, void* bitmap, JRECT* rect)
|
|||
uint8_t *src, *dst;
|
||||
uint16_t y, bws, bwd;
|
||||
|
||||
|
||||
/* Put progress indicator */
|
||||
if (rect->left == 0) {
|
||||
printf("\r%lu%%", (rect->top << jd->scale) * 100UL / jd->height);
|
||||
|
@ -148,4 +146,3 @@ __exit:
|
|||
#ifdef __RT_THREAD_H__
|
||||
MSH_CMD_EXPORT(Jpeg_Dec, Jpeg Decode Test);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue