summaryrefslogtreecommitdiff
path: root/apps/plugins/jpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/jpeg.c')
-rw-r--r--apps/plugins/jpeg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c
index a39e6dc933..62d6f1efe9 100644
--- a/apps/plugins/jpeg.c
+++ b/apps/plugins/jpeg.c
@@ -1235,7 +1235,7 @@ void build_lut(struct jpeg* p_jpeg)
1235 } 1235 }
1236 else 1236 else
1237 { 1237 {
1238 // error 1238 /* error */
1239 } 1239 }
1240 1240
1241} 1241}
@@ -1429,7 +1429,7 @@ int jpeg_decode(struct jpeg* p_jpeg, unsigned char* p_pixel[3],
1429 int k_need; /* AC coefficients needed up to here */ 1429 int k_need; /* AC coefficients needed up to here */
1430 int zero_need; /* init the block with this many zeros */ 1430 int zero_need; /* init the block with this many zeros */
1431 1431
1432 int last_dc_val[3] = {0, 0, 0}; // or 128 for chroma? 1432 int last_dc_val[3] = {0, 0, 0}; /* or 128 for chroma? */
1433 int store_offs[4]; /* memory offsets: order of Y11 Y12 Y21 Y22 U V */ 1433 int store_offs[4]; /* memory offsets: order of Y11 Y12 Y21 Y22 U V */
1434 int restart = p_jpeg->restart_interval; /* MCUs until restart marker */ 1434 int restart = p_jpeg->restart_interval; /* MCUs until restart marker */
1435 1435
@@ -1483,7 +1483,7 @@ int jpeg_decode(struct jpeg* p_jpeg, unsigned char* p_pixel[3],
1483 1483
1484 for(y=0; y<p_jpeg->y_mbl && bs.next_input_byte <= bs.input_end; y++) 1484 for(y=0; y<p_jpeg->y_mbl && bs.next_input_byte <= bs.input_end; y++)
1485 { 1485 {
1486 for (i=0; i<3; i++) // scan line init 1486 for (i=0; i<3; i++) /* scan line init */
1487 { 1487 {
1488 p_byte[i] = p_line[i]; 1488 p_byte[i] = p_line[i];
1489 p_line[i] += skip_strip[i]; 1489 p_line[i] += skip_strip[i];
@@ -1567,7 +1567,7 @@ int jpeg_decode(struct jpeg* p_jpeg, unsigned char* p_pixel[3],
1567 skip_line[ci]); 1567 skip_line[ci]);
1568 } 1568 }
1569 } /* for blkn */ 1569 } /* for blkn */
1570 p_byte[0] += skip_mcu[0]; // unrolled for (i=0; i<3; i++) loop 1570 p_byte[0] += skip_mcu[0]; /* unrolled for (i=0; i<3; i++) loop */
1571 p_byte[1] += skip_mcu[1]; 1571 p_byte[1] += skip_mcu[1];
1572 p_byte[2] += skip_mcu[2]; 1572 p_byte[2] += skip_mcu[2];
1573 if (p_jpeg->restart_interval && --restart == 0) 1573 if (p_jpeg->restart_interval && --restart == 0)