< prev index next >
src/java.desktop/share/native/libjavajpeg/jpegdecoder.c
Print this page
@@ -567,15 +567,11 @@
(void) jpeg_read_header(&cinfo, TRUE);
/* select buffered-image mode if it is a progressive JPEG only */
buffered_mode = cinfo.buffered_image = jpeg_has_multiple_scans(&cinfo);
grayscale = (cinfo.out_color_space == JCS_GRAYSCALE);
-#ifdef YCCALPHA
- hasalpha = (cinfo.out_color_space == JCS_RGBA);
-#else
hasalpha = 0;
-#endif
/* We can ignore the return value from jpeg_read_header since
* (a) suspension is not possible with the stdio data source, and
* (nor with the Java input source)
* (b) we passed TRUE to reject a tables-only JPEG file as an error.
* See libjpeg.doc for more info.
< prev index next >