/hg/icedtea6: 2 new changesets
andrew at icedtea.classpath.org
andrew at icedtea.classpath.org
Wed Jul 6 15:24:37 PDT 2011
changeset bfbd7ccaa20c in /hg/icedtea6
details: http://icedtea.classpath.org/hg/icedtea6?cmd=changeset;node=bfbd7ccaa20c
author: Andrew John Hughes <ahughes at redhat.com>
date: Wed Jul 06 20:55:06 2011 +0100
Normalise whitespace in JPEG code.
2011-07-06 Andrew John Hughes <ahughes at redhat.com>
* overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/
codec/jpeg/ImageFormatException.java,
* overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg
/JPEGCodec.java,
* overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg
/JPEGDecodeParam.java,
* overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg
/JPEGEncodeParam.java,
* overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg
/JPEGHuffmanTable.java,
* overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg
/JPEGImageDecoder.java,
* overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg
/JPEGImageEncoder.java,
* overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg
/JPEGQTable.java,
* overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg
/TruncatedFileException.java,
* overlays/jpeg/openjdk/jdk/src/share/classes/sun/awt/image/codec/JPEG
ImageDecoderImpl.java,
* overlays/jpeg/openjdk/jdk/src/share/classes/sun/awt/image/codec/JPEG
ImageEncoderImpl.java,
* overlays/jpeg/openjdk/jdk/src/share/classes/sun/awt/image/codec/JPEG
Param.java: Normalise whitespace using Oracle normaliser.
changeset 944778c61e3c in /hg/icedtea6
details: http://icedtea.classpath.org/hg/icedtea6?cmd=changeset;node=944778c61e3c
author: Andrew John Hughes <ahughes at redhat.com>
date: Wed Jul 06 23:24:30 2011 +0100
PR icedtea/752: Increase binary compatibility of JPEG classes.
2011-07-06 Andrew John Hughes <ahughes at redhat.com>
Make JPEG classes more binary compatible with Oracle
versions.
* overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg
/ImageFormatException.java: Extend RuntimeException.
(ImageFormatException()): Call superclass constructor.
* overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg
/JPEGCodec.java: (JPEGCodec()): Make explicit private
constructor to prevent implicit public one.
* overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg
/JPEGHuffmanTable.java: Don't extend
javax.imageio.plugins.jpeg.JPEGHuffmanTable. (lengths):
Added. (symbols): Added. (JPEGHuffmanTable(short[],
short[])): Perform checks outlined in documentation.
(getLengths()): Added. (getSymbols()): Return symbols.
* overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg
/JPEGImageEncoder.java: (getDefaultColorId(ColorModel)): Fix
typo (was DefaultColorID).
* overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg
/TruncatedFileException.java:
(TruncatedFileException(BufferedImage)): Add missing constructor.
(TruncatedFileException(Raster)): Likewise.
(getBufferedImage()): Implemented. (getRaster()): Add
missing method. (TruncatedFileException()): Removed.
(TruncatedFileException(String)): Likewise.
* overlays/jpeg/openjdk/jdk/src/share/classes/sun/awt/image/codec/JPEG
ImageDecoderImpl.java: (decodeAsBufferedImage()): Remove
unneeded qualification and convert from com.sun JPEGHuffmanTable
to javax.imageio one.
* overlays/jpeg/openjdk/jdk/src/share/classes/sun/awt/image/codec/JPEG
ImageEncoderImpl.java: (getDefaultColorId(ColorModel)): Fix
typo (was DefaultColorID).
* NEWS: Updated.
diffstat:
ChangeLog | 48 +
NEWS | 1 +
overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/ImageFormatException.java | 20 +-
overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGCodec.java | 118 +-
overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGDecodeParam.java | 74 +-
overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGEncodeParam.java | 60 +-
overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGHuffmanTable.java | 70 +-
overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGImageDecoder.java | 14 +-
overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGImageEncoder.java | 40 +-
overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGQTable.java | 64 +-
overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/TruncatedFileException.java | 48 +-
overlays/jpeg/openjdk/jdk/src/share/classes/sun/awt/image/codec/JPEGImageDecoderImpl.java | 65 +-
overlays/jpeg/openjdk/jdk/src/share/classes/sun/awt/image/codec/JPEGImageEncoderImpl.java | 154 +-
overlays/jpeg/openjdk/jdk/src/share/classes/sun/awt/image/codec/JPEGParam.java | 846 +++++-----
14 files changed, 875 insertions(+), 747 deletions(-)
diffs (truncated from 2788 to 500 lines):
diff -r 73e0d37b9ec3 -r 944778c61e3c ChangeLog
--- a/ChangeLog Fri Jul 01 14:41:45 2011 +0200
+++ b/ChangeLog Wed Jul 06 23:24:30 2011 +0100
@@ -1,3 +1,51 @@
+2011-07-06 Andrew John Hughes <ahughes at redhat.com>
+
+ Make JPEG classes more binary compatible with
+ Oracle versions.
+ * overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/ImageFormatException.java:
+ Extend RuntimeException.
+ (ImageFormatException()): Call superclass constructor.
+ * overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGCodec.java:
+ (JPEGCodec()): Make explicit private constructor to prevent implicit public one.
+ * overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGHuffmanTable.java:
+ Don't extend javax.imageio.plugins.jpeg.JPEGHuffmanTable.
+ (lengths): Added.
+ (symbols): Added.
+ (JPEGHuffmanTable(short[], short[])): Perform checks outlined in documentation.
+ (getLengths()): Added.
+ (getSymbols()): Return symbols.
+ * overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGImageEncoder.java:
+ (getDefaultColorId(ColorModel)): Fix typo (was DefaultColorID).
+ * overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/TruncatedFileException.java:
+ (TruncatedFileException(BufferedImage)): Add missing constructor.
+ (TruncatedFileException(Raster)): Likewise.
+ (getBufferedImage()): Implemented.
+ (getRaster()): Add missing method.
+ (TruncatedFileException()): Removed.
+ (TruncatedFileException(String)): Likewise.
+ * overlays/jpeg/openjdk/jdk/src/share/classes/sun/awt/image/codec/JPEGImageDecoderImpl.java:
+ (decodeAsBufferedImage()): Remove unneeded qualification and convert from com.sun JPEGHuffmanTable
+ to javax.imageio one.
+ * overlays/jpeg/openjdk/jdk/src/share/classes/sun/awt/image/codec/JPEGImageEncoderImpl.java:
+ (getDefaultColorId(ColorModel)): Fix typo (was DefaultColorID).
+ * NEWS: Updated.
+
+2011-07-06 Andrew John Hughes <ahughes at redhat.com>
+
+ * overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/ImageFormatException.java,
+ * overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGCodec.java,
+ * overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGDecodeParam.java,
+ * overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGEncodeParam.java,
+ * overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGHuffmanTable.java,
+ * overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGImageDecoder.java,
+ * overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGImageEncoder.java,
+ * overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGQTable.java,
+ * overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/TruncatedFileException.java,
+ * overlays/jpeg/openjdk/jdk/src/share/classes/sun/awt/image/codec/JPEGImageDecoderImpl.java,
+ * overlays/jpeg/openjdk/jdk/src/share/classes/sun/awt/image/codec/JPEGImageEncoderImpl.java,
+ * overlays/jpeg/openjdk/jdk/src/share/classes/sun/awt/image/codec/JPEGParam.java:
+ Normalise whitespace using Oracle normaliser.
+
2011-07-01 Pavel Tisnovsky <ptisnovs at redhat.com>
* Makefile.am: added new patches
diff -r 73e0d37b9ec3 -r 944778c61e3c NEWS
--- a/NEWS Fri Jul 01 14:41:45 2011 +0200
+++ b/NEWS Wed Jul 06 23:24:30 2011 +0100
@@ -52,6 +52,7 @@
- S7031385, PR680: Incorrect register allocation in orderAccess_linux_x86.inline.hpp
- PR748: Icedtea6 fails to build with Linux 3.0.
- PR744: icedtea6-1.10.2 : patching error
+ - PR752: ImageFormatException extends Exception not RuntimeException
* Allow selection of test suites using the jtreg_checks argument e.g. jtreg_checks="langtools"
* CACAO
- Threadlist & threadobject improvements.
diff -r 73e0d37b9ec3 -r 944778c61e3c overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/ImageFormatException.java
--- a/overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/ImageFormatException.java Fri Jul 01 14:41:45 2011 +0200
+++ b/overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/ImageFormatException.java Wed Jul 06 23:24:30 2011 +0100
@@ -1,28 +1,29 @@
/* ImageFormatException.java
* Copyright (C) 2007 Matthew Flaschen
- *
+ * Copyright (C) 2011 Red Hat, Inc.
+ *
* This file is part of IcedTea
- *
+ *
* IcedTea is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
- *
+ *
* IcedTea is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Classpath; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
- *
+ *
* Linking this library statically or dynamically with other modules is
* making a combined work based on this library. Thus, the terms and
* conditions of the GNU General Public License cover the whole
* combination.
- *
+ *
* As a special exception, the copyright holders of this library give you
* permission to link this library with independent modules to produce an
* executable, regardless of the license terms of these independent
@@ -38,12 +39,13 @@
package com.sun.image.codec.jpeg;
-public class ImageFormatException extends Exception {
+public class ImageFormatException extends RuntimeException {
+
public ImageFormatException() {
- this("");
+ super();
}
public ImageFormatException(String s) {
- super(s);
+ super(s);
}
}
diff -r 73e0d37b9ec3 -r 944778c61e3c overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGCodec.java
--- a/overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGCodec.java Fri Jul 01 14:41:45 2011 +0200
+++ b/overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGCodec.java Wed Jul 06 23:24:30 2011 +0100
@@ -1,29 +1,29 @@
/* JPEGCodec.java --
* Copyright (C) 2007 Free Software Foundation, Inc.
* Copyright (C) 2007 Matthew Flaschen
- *
+ *
* This file is part of GNU Classpath.
- *
+ *
* GNU Classpath is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
- *
+ *
* GNU Classpath is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Classpath; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
- *
+ *
* Linking this library statically or dynamically with other modules is
* making a combined work based on this library. Thus, the terms and
* conditions of the GNU General Public License cover the whole
* combination.
- *
+ *
* As a special exception, the copyright holders of this library give you
* permission to link this library with independent modules to produce an
* executable, regardless of the license terms of these independent
@@ -56,136 +56,138 @@
*/
public class JPEGCodec {
+ private JPEGCodec() {}
+
/**
* This creates an instance of a JPEGImageDecoder that can be used to decode
* JPEG Data streams.
- *
+ *
* @param src
* @return
*/
public static JPEGImageDecoder createJPEGDecoder(InputStream src) {
- return new JPEGImageDecoderImpl(src);
+ return new JPEGImageDecoderImpl(src);
}
/**
* This creates an instance of a JPEGImageDecoder that can be used to decode
* JPEG Data streams.
- *
+ *
* @param src
* @param jdp
* @return
*/
public static JPEGImageDecoder createJPEGDecoder(InputStream src,
- JPEGDecodeParam jdp) {
- return new JPEGImageDecoderImpl(src, jdp);
+ JPEGDecodeParam jdp) {
+ return new JPEGImageDecoderImpl(src, jdp);
}
/**
* This creates an instance of a JPEGImageEncoder that can be used to encode
* image data as JPEG Data streams.
- *
+ *
* @param os
* @return
*/
public static JPEGImageEncoder createJPEGEncoder(OutputStream os) {
- return new JPEGImageEncoderImpl(os);
+ return new JPEGImageEncoderImpl(os);
}
/**
* This creates an instance of a JPEGImageEncoder that can be used to encode
* image data as JPEG Data streams.
- *
+ *
* @param dest
* @param jep
* @return
*/
public static JPEGImageEncoder createJPEGEncoder(OutputStream dest,
- JPEGEncodeParam jep) {
- return new JPEGImageEncoderImpl(dest, jep);
+ JPEGEncodeParam jep) {
+ return new JPEGImageEncoderImpl(dest, jep);
}
/**
* This is a factory method for creating JPEGEncodeParam objects.
- *
+ *
* @param bi
* @return
*/
public static JPEGEncodeParam getDefaultJPEGEncodeParam(BufferedImage bi) {
- return getDefaultJPEGEncodeParam(bi.getRaster(),
- getDefaultColorID(bi.getColorModel()));
+ return getDefaultJPEGEncodeParam(bi.getRaster(),
+ getDefaultColorID(bi.getColorModel()));
}
/**
* This is a factory method for creating JPEGEncodeParam objects.
- *
+ *
* @param numBands
* @param colorID
* @return
*/
public static JPEGEncodeParam getDefaultJPEGEncodeParam(int numBands,
- int colorID) {
- return new JPEGParam(colorID, numBands);
+ int colorID) {
+ return new JPEGParam(colorID, numBands);
}
/**
* This is a factory method for creating a JPEGEncodeParam from a
* JPEGDecodeParam.
- *
+ *
* @param jdp
* @return
*/
public static JPEGEncodeParam getDefaultJPEGEncodeParam(JPEGDecodeParam jdp) {
- return new JPEGParam(jdp);
+ return new JPEGParam(jdp);
}
/**
* This is a factory method for creating JPEGEncodeParam objects.
- *
+ *
* @param ras
* @param colorID
* @return
*/
public static JPEGEncodeParam getDefaultJPEGEncodeParam(Raster ras,
- int colorID) {
- return getDefaultJPEGEncodeParam(ras.getNumBands(), colorID);
+ int colorID) {
+ return getDefaultJPEGEncodeParam(ras.getNumBands(), colorID);
}
private static int getDefaultColorID(ColorModel cm) {
- ColorSpace cs = cm.getColorSpace();
- int type = cs.getType();
- int id = -1;
- switch (type) {
- case ColorSpace.TYPE_GRAY:
- id = JPEGEncodeParam.COLOR_ID_GRAY;
- break;
+ ColorSpace cs = cm.getColorSpace();
+ int type = cs.getType();
+ int id = -1;
+ switch (type) {
+ case ColorSpace.TYPE_GRAY:
+ id = JPEGEncodeParam.COLOR_ID_GRAY;
+ break;
- case ColorSpace.TYPE_RGB:
- id = cm.hasAlpha() ? JPEGEncodeParam.COLOR_ID_RGBA
- : JPEGEncodeParam.COLOR_ID_RGB;
+ case ColorSpace.TYPE_RGB:
+ id = cm.hasAlpha() ? JPEGEncodeParam.COLOR_ID_RGBA
+ : JPEGEncodeParam.COLOR_ID_RGB;
- case ColorSpace.TYPE_YCbCr:
- try {
- if (cs == ColorSpace.getInstance(ColorSpace.CS_PYCC)) {
- id = cm.hasAlpha() ? JPEGEncodeParam.COLOR_ID_PYCCA
- : JPEGEncodeParam.COLOR_ID_PYCC;
- }
- } catch (IllegalArgumentException e) {
- /* We know it isn't PYCC type, nothing to handle */
- }
- if (id == -1) {
- id = cm.hasAlpha() ? JPEGEncodeParam.COLOR_ID_YCbCrA
- : JPEGEncodeParam.COLOR_ID_YCbCr;
- }
- break;
+ case ColorSpace.TYPE_YCbCr:
+ try {
+ if (cs == ColorSpace.getInstance(ColorSpace.CS_PYCC)) {
+ id = cm.hasAlpha() ? JPEGEncodeParam.COLOR_ID_PYCCA
+ : JPEGEncodeParam.COLOR_ID_PYCC;
+ }
+ } catch (IllegalArgumentException e) {
+ /* We know it isn't PYCC type, nothing to handle */
+ }
+ if (id == -1) {
+ id = cm.hasAlpha() ? JPEGEncodeParam.COLOR_ID_YCbCrA
+ : JPEGEncodeParam.COLOR_ID_YCbCr;
+ }
+ break;
- case ColorSpace.TYPE_CMYK:
- id = JPEGEncodeParam.COLOR_ID_CMYK;
- break;
+ case ColorSpace.TYPE_CMYK:
+ id = JPEGEncodeParam.COLOR_ID_CMYK;
+ break;
- default:
- id = JPEGEncodeParam.COLOR_ID_UNKNOWN;
- }
+ default:
+ id = JPEGEncodeParam.COLOR_ID_UNKNOWN;
+ }
- return id;
+ return id;
}
}
diff -r 73e0d37b9ec3 -r 944778c61e3c overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGDecodeParam.java
--- a/overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGDecodeParam.java Fri Jul 01 14:41:45 2011 +0200
+++ b/overlays/jpeg/openjdk/jdk/src/share/classes/com/sun/image/codec/jpeg/JPEGDecodeParam.java Wed Jul 06 23:24:30 2011 +0100
@@ -1,29 +1,29 @@
/* JPEGImageDecoder.java --
* Copyright (C) 2007 Free Software Foundation, Inc.
* Copyright (C) 2007 Matthew Flaschen
- *
+ *
* This file is part of GNU Classpath.
- *
+ *
* GNU Classpath is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
- *
+ *
* GNU Classpath is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Classpath; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
- *
+ *
* Linking this library statically or dynamically with other modules is
* making a combined work based on this library. Thus, the terms and
* conditions of the GNU General Public License cover the whole
* combination.
- *
+ *
* As a special exception, the copyright holders of this library give you
* permission to link this library with independent modules to produce an
* executable, regardless of the license terms of these independent
@@ -72,20 +72,20 @@
* with the BufferedImage returned rather than make assumptions.
* </p>
* DECODING:
- *
+ *
* <pre>
- * JPEG (Encoded) Color ID BufferedImage ColorSpace
- * ======================= ========================
- * COLOR_ID_UNKNOWN ** Invalid **
+ * JPEG (Encoded) Color ID BufferedImage ColorSpace
+ * ======================= ========================
+ * COLOR_ID_UNKNOWN ** Invalid **
* COLOR_ID_GRAY CS_GRAY
- * COLOR_ID_RGB CS_sRGB
- * COLOR_ID_YCbCr CS_sRGB
+ * COLOR_ID_RGB CS_sRGB
+ * COLOR_ID_YCbCr CS_sRGB
* COLOR_ID_CMYK ** Invalid **
- * COLOR_ID_PYCC CS_PYCC
- * COLOR_ID_RGBA CS_sRGB (w/ alpha)
- * COLOR_ID_YCbCrA CS_sRGB (w/ alpha)
+ * COLOR_ID_PYCC CS_PYCC
+ * COLOR_ID_RGBA CS_sRGB (w/ alpha)
+ * COLOR_ID_YCbCrA CS_sRGB (w/ alpha)
* COLOR_ID_RGBA_INVERTED ** Invalid **
- * COLOR_ID_YCbCrA_INVERTED ** Invalid **
+ * COLOR_ID_YCbCrA_INVERTED ** Invalid **
* COLOR_ID_PYCCA CS_PYCC (w/ alpha)
* COLOR_ID_YCCK ** Invalid **
* </pre>
@@ -173,14 +173,14 @@
/**
* Get the image width.
- *
+ *
* @return int the width of the image data in pixels.
*/
public int getWidth();
/**
* Get the image height.
- *
+ *
* @return The height of the image data in pixels.
*/
public int getHeight();
@@ -191,7 +191,7 @@
* output pixel. This is distinct from the way the JPEG to each output
* pixel. This is distinct from the way the JPEG standard defines this
* quantity, because fractional subsampling factors are not allowed.
- *
+ *
* @param component
* The component of the encoded image to return the subsampling
* factor for.
@@ -205,7 +205,7 @@
* output pixel. This is distinct from the way the JPEG to each output
* pixel. This is distinct from the way the JPEG standard defines this
* quantity, because fractional subsampling factors are not allowed.
- *
+ *
* @param component
* The component of the encoded image to return the subsampling
* factor for.
@@ -216,7 +216,7 @@
/**
* Returns the coefficient quantization tables or NULL if not defined.
* tableNum must range in value from 0 - 3.
- *
+ *
* @param tableNum
* the index of the table to be returned.
* @return Quantization table stored at index tableNum.
@@ -225,7 +225,7 @@
/**
* Returns the Quantization table for the requested component.
- *
+ *
* @param component
* the image component of interest.
* @return Quantization table associated with component
@@ -234,7 +234,7 @@
/**
* Returns the DC Huffman coding table requested or null if not defined
- *
+ *
* @param tableNum
* the index of the table to be returned.
* @return Huffman table stored at index tableNum.
@@ -243,7 +243,7 @@
/**
* Returns the DC Huffman coding table for the requested component.
- *
+ *
* @param component
* the image component of interest.
* @return Huffman table associated with component
@@ -252,7 +252,7 @@
/**
* Returns the AC Huffman coding table requested or null if not defined
- *
+ *
* @param tableNum
More information about the distro-pkg-dev
mailing list