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 1
1
/*----------------------------------------------------------------------------/
2
- / TJpgDec - Tiny JPEG Decompressor R0.03 (C)ChaN, 2021
2
+ / TJpgDec - Tiny JPEG Decompressor R0.03 w/patch1 (C)ChaN, 2021
3
3
/-----------------------------------------------------------------------------/
4
4
/ The TJpgDec is a generic JPEG decompressor module for tiny embedded systems.
5
5
/ This is a free software that opened for education, research and commercial
@@ -850,7 +850,11 @@ static JRESULT mcu_output (
850
850
if (mx == 16 ) { /* Double block width? */
851
851
if (ix == 8 ) py += 64 - 8 ; /* Jump to next block if double block height */
852
852
}
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
+ }
854
858
}
855
859
}
856
860
}
You can’t perform that action at this time.
0 commit comments