File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11/*----------------------------------------------------------------------------/
2- / TJpgDec - Tiny JPEG Decompressor R0.03 (C)ChaN, 2021
2+ / TJpgDec - Tiny JPEG Decompressor R0.03 w/patch1 (C)ChaN, 2021
33/-----------------------------------------------------------------------------/
44/ The TJpgDec is a generic JPEG decompressor module for tiny embedded systems.
55/ This is a free software that opened for education, research and commercial
@@ -850,7 +850,11 @@ static JRESULT mcu_output (
850850 if (mx == 16 ) { /* Double block width? */
851851 if (ix == 8 ) py += 64 - 8 ; /* Jump to next block if double block height */
852852 }
853- * pix ++ = (uint8_t )* py ++ ; /* Get and store a Y value as grayscale */
853+ if (JD_FASTDECODE >= 1 ) {
854+ * pix ++ = BYTECLIP (* py ++ ); /* Get and store a Y value as grayscale */
855+ } else {
856+ * pix ++ = * py ++ ; /* Get and store a Y value as grayscale */
857+ }
854858 }
855859 }
856860 }
You can’t perform that action at this time.
0 commit comments