< prev index next >

src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEG.java

Print this page

        

*** 34,44 **** import java.awt.color.ICC_ColorSpace; /** * A class containing JPEG-related constants, definitions, and * static methods. This class and its constants must be public so that ! * <code>JPEGImageWriteParam</code> can see it. */ public class JPEG { // List of all the JPEG markers (pre-JPEG2000) --- 34,44 ---- import java.awt.color.ICC_ColorSpace; /** * A class containing JPEG-related constants, definitions, and * static methods. This class and its constants must be public so that ! * {@code JPEGImageWriteParam} can see it. */ public class JPEG { // List of all the JPEG markers (pre-JPEG2000)
*** 232,245 **** // Default value for ImageWriteParam public static final float DEFAULT_QUALITY = 0.75F; /** ! * Returns <code>true</code> if the given <code>ColorSpace</code> * object is an instance of ICC_ColorSpace but is not one of the ! * standard <code>ColorSpaces</code> returned by ! * <code>ColorSpace.getInstance()</code>. */ static boolean isNonStandardICC(ColorSpace cs) { boolean retval = false; if ((cs instanceof ICC_ColorSpace) && (!cs.isCS_sRGB()) --- 232,245 ---- // Default value for ImageWriteParam public static final float DEFAULT_QUALITY = 0.75F; /** ! * Returns {@code true} if the given {@code ColorSpace} * object is an instance of ICC_ColorSpace but is not one of the ! * standard {@code ColorSpaces} returned by ! * {@code ColorSpace.getInstance()}. */ static boolean isNonStandardICC(ColorSpace cs) { boolean retval = false; if ((cs instanceof ICC_ColorSpace) && (!cs.isCS_sRGB())
*** 253,264 **** return retval; } /** ! * Returns <code>true</code> if the given imageType can be used ! * in a JFIF file. If <code>input</code> is true, then the * image type is considered before colorspace conversion. */ static boolean isJFIFcompliant(ImageTypeSpecifier imageType, boolean input) { ColorModel cm = imageType.getColorModel(); --- 253,264 ---- return retval; } /** ! * Returns {@code true} if the given imageType can be used ! * in a JFIF file. If {@code input} is true, then the * image type is considered before colorspace conversion. */ static boolean isJFIFcompliant(ImageTypeSpecifier imageType, boolean input) { ColorModel cm = imageType.getColorModel();
*** 293,303 **** } /** * Given an image type, return the Adobe transform corresponding to * that type, or ADOBE_IMPOSSIBLE if the image type is incompatible ! * with an Adobe marker segment. If <code>input</code> is true, then * the image type is considered before colorspace conversion. */ static int transformForType(ImageTypeSpecifier imageType, boolean input) { int retval = ADOBE_IMPOSSIBLE; ColorModel cm = imageType.getColorModel(); --- 293,303 ---- } /** * Given an image type, return the Adobe transform corresponding to * that type, or ADOBE_IMPOSSIBLE if the image type is incompatible ! * with an Adobe marker segment. If {@code input} is true, then * the image type is considered before colorspace conversion. */ static int transformForType(ImageTypeSpecifier imageType, boolean input) { int retval = ADOBE_IMPOSSIBLE; ColorModel cm = imageType.getColorModel();
< prev index next >