summaryrefslogtreecommitdiff
path: root/libjava/gnu/javax/imageio/jpeg
diff options
context:
space:
mode:
authorupstream source tree <ports@midipix.org>2015-03-15 20:14:05 -0400
committerupstream source tree <ports@midipix.org>2015-03-15 20:14:05 -0400
commit554fd8c5195424bdbcabf5de30fdc183aba391bd (patch)
tree976dc5ab7fddf506dadce60ae936f43f58787092 /libjava/gnu/javax/imageio/jpeg
downloadcbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.bz2
cbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.xz
obtained gcc-4.6.4.tar.bz2 from upstream website;upstream
verified gcc-4.6.4.tar.bz2.sig; imported gcc-4.6.4 source tree from verified upstream tarball. downloading a git-generated archive based on the 'upstream' tag should provide you with a source tree that is binary identical to the one extracted from the above tarball. if you have obtained the source via the command 'git clone', however, do note that line-endings of files in your working directory might differ from line-endings of the respective files in the upstream repository.
Diffstat (limited to 'libjava/gnu/javax/imageio/jpeg')
-rw-r--r--libjava/gnu/javax/imageio/jpeg/DCT.h48
-rw-r--r--libjava/gnu/javax/imageio/jpeg/HuffmanTable.h76
-rw-r--r--libjava/gnu/javax/imageio/jpeg/JPEGComponent.h91
-rw-r--r--libjava/gnu/javax/imageio/jpeg/JPEGDecoder.h99
-rw-r--r--libjava/gnu/javax/imageio/jpeg/JPEGException.h35
-rw-r--r--libjava/gnu/javax/imageio/jpeg/JPEGFrame.h67
-rw-r--r--libjava/gnu/javax/imageio/jpeg/JPEGImageInputStream.h60
-rw-r--r--libjava/gnu/javax/imageio/jpeg/JPEGImageReader.h76
-rw-r--r--libjava/gnu/javax/imageio/jpeg/JPEGImageReaderSpi.h74
-rw-r--r--libjava/gnu/javax/imageio/jpeg/JPEGMarker.h89
-rw-r--r--libjava/gnu/javax/imageio/jpeg/JPEGMarkerFoundException.h35
-rw-r--r--libjava/gnu/javax/imageio/jpeg/JPEGScan.h60
-rw-r--r--libjava/gnu/javax/imageio/jpeg/YCbCr_ColorSpace.h42
-rw-r--r--libjava/gnu/javax/imageio/jpeg/ZigZag.h52
14 files changed, 904 insertions, 0 deletions
diff --git a/libjava/gnu/javax/imageio/jpeg/DCT.h b/libjava/gnu/javax/imageio/jpeg/DCT.h
new file mode 100644
index 000000000..16636be2d
--- /dev/null
+++ b/libjava/gnu/javax/imageio/jpeg/DCT.h
@@ -0,0 +1,48 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_imageio_jpeg_DCT__
+#define __gnu_javax_imageio_jpeg_DCT__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace jpeg
+ {
+ class DCT;
+ }
+ }
+ }
+ }
+}
+
+class gnu::javax::imageio::jpeg::DCT : public ::java::lang::Object
+{
+
+public:
+ DCT();
+ static jdouble C(jint);
+private:
+ void initMatrix();
+public:
+ static JArray< JArray< jdouble > * > * slow_idct(JArray< JArray< jdouble > * > *);
+ static JArray< JArray< jfloat > * > * slow_fdct(JArray< JArray< jfloat > * > *);
+ virtual JArray< JArray< jfloat > * > * fast_fdct(JArray< JArray< jfloat > * > *);
+ virtual JArray< JArray< jdouble > * > * fast_idct(JArray< JArray< jdouble > * > *);
+ virtual JArray< JArray< jdouble > * > * idj_fast_fdct(JArray< JArray< jfloat > * > *);
+ JArray< JArray< jdouble > * > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) c;
+ JArray< JArray< jdouble > * > * cT;
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_imageio_jpeg_DCT__
diff --git a/libjava/gnu/javax/imageio/jpeg/HuffmanTable.h b/libjava/gnu/javax/imageio/jpeg/HuffmanTable.h
new file mode 100644
index 000000000..794b2624d
--- /dev/null
+++ b/libjava/gnu/javax/imageio/jpeg/HuffmanTable.h
@@ -0,0 +1,76 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_imageio_jpeg_HuffmanTable__
+#define __gnu_javax_imageio_jpeg_HuffmanTable__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace jpeg
+ {
+ class HuffmanTable;
+ class JPEGImageInputStream;
+ }
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace plugins
+ {
+ namespace jpeg
+ {
+ class JPEGHuffmanTable;
+ }
+ }
+ }
+ }
+}
+
+class gnu::javax::imageio::jpeg::HuffmanTable : public ::java::lang::Object
+{
+
+public:
+ HuffmanTable(::javax::imageio::plugins::jpeg::JPEGHuffmanTable *);
+private:
+ void generateSizeTable();
+ void generateCodeTable();
+ void generateDecoderTables();
+public:
+ virtual void orderCodes(jboolean);
+ static jint extend(jint, jint);
+ virtual jint decode(::gnu::javax::imageio::jpeg::JPEGImageInputStream *);
+ static const jint HUFFMAN_MAX_TABLES = 4;
+private:
+ JArray< jshort > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) huffcode;
+ JArray< jshort > * huffsize;
+ JArray< jshort > * EHUFCO;
+ JArray< jshort > * EHUFSI;
+ JArray< jshort > * valptr;
+ JArray< jshort > * mincode;
+ JArray< jshort > * maxcode;
+ JArray< jshort > * huffval;
+ JArray< jshort > * bits;
+public: // actually package-private
+ static jbyte JPEG_DC_TABLE;
+ static jbyte JPEG_AC_TABLE;
+private:
+ jshort lastk;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_imageio_jpeg_HuffmanTable__
diff --git a/libjava/gnu/javax/imageio/jpeg/JPEGComponent.h b/libjava/gnu/javax/imageio/jpeg/JPEGComponent.h
new file mode 100644
index 000000000..36ff5f647
--- /dev/null
+++ b/libjava/gnu/javax/imageio/jpeg/JPEGComponent.h
@@ -0,0 +1,91 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_imageio_jpeg_JPEGComponent__
+#define __gnu_javax_imageio_jpeg_JPEGComponent__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace jpeg
+ {
+ class DCT;
+ class HuffmanTable;
+ class JPEGComponent;
+ class JPEGImageInputStream;
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace awt
+ {
+ namespace image
+ {
+ class WritableRaster;
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace plugins
+ {
+ namespace jpeg
+ {
+ class JPEGHuffmanTable;
+ }
+ }
+ }
+ }
+}
+
+class gnu::javax::imageio::jpeg::JPEGComponent : public ::java::lang::Object
+{
+
+public:
+ JPEGComponent(jbyte, jbyte, jbyte, jbyte);
+ virtual void padMCU(jint, jint);
+ virtual void resetInterval();
+ virtual void quantitizeData();
+ virtual void setDCTable(::javax::imageio::plugins::jpeg::JPEGHuffmanTable *);
+ virtual void setACTable(::javax::imageio::plugins::jpeg::JPEGHuffmanTable *);
+ virtual void idctData(::gnu::javax::imageio::jpeg::DCT *);
+ virtual void scaleByFactors();
+ virtual void writeBlock(::java::awt::image::WritableRaster *, JArray< JArray< jdouble > * > *, jint, jint, jint);
+ virtual void writeData(::java::awt::image::WritableRaster *, jint);
+ virtual void setQuantizationTable(JArray< jint > *);
+ virtual void readComponentMCU(::gnu::javax::imageio::jpeg::JPEGImageInputStream *);
+ virtual jdouble decode_dc_coefficient(::gnu::javax::imageio::jpeg::JPEGImageInputStream *);
+ virtual JArray< jdouble > * decode_ac_coefficients(::gnu::javax::imageio::jpeg::JPEGImageInputStream *);
+ jbyte __attribute__((aligned(__alignof__( ::java::lang::Object)))) factorH;
+ jbyte factorV;
+ jbyte component_id;
+ jbyte quant_id;
+ jint width;
+ jint height;
+ jint maxV;
+ jint maxH;
+ ::gnu::javax::imageio::jpeg::HuffmanTable * ACTable;
+ ::gnu::javax::imageio::jpeg::HuffmanTable * DCTable;
+ JArray< jint > * quantizationTable;
+ jdouble previousDC;
+public: // actually package-private
+ ::java::util::ArrayList * data;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_imageio_jpeg_JPEGComponent__
diff --git a/libjava/gnu/javax/imageio/jpeg/JPEGDecoder.h b/libjava/gnu/javax/imageio/jpeg/JPEGDecoder.h
new file mode 100644
index 000000000..4eef890fe
--- /dev/null
+++ b/libjava/gnu/javax/imageio/jpeg/JPEGDecoder.h
@@ -0,0 +1,99 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_imageio_jpeg_JPEGDecoder__
+#define __gnu_javax_imageio_jpeg_JPEGDecoder__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace jpeg
+ {
+ class JPEGDecoder;
+ class JPEGImageInputStream;
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace awt
+ {
+ namespace image
+ {
+ class BufferedImage;
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace plugins
+ {
+ namespace jpeg
+ {
+ class JPEGHuffmanTable;
+ class JPEGQTable;
+ }
+ }
+ namespace stream
+ {
+ class ImageInputStream;
+ }
+ }
+ }
+}
+
+class gnu::javax::imageio::jpeg::JPEGDecoder : public ::java::lang::Object
+{
+
+public:
+ virtual jint getHeight();
+ virtual jint getWidth();
+ JPEGDecoder(::javax::imageio::stream::ImageInputStream *);
+ virtual void decode();
+private:
+ void decodeJFIFExtension();
+public:
+ virtual ::java::awt::image::BufferedImage * getImage();
+public: // actually package-private
+ jbyte __attribute__((aligned(__alignof__( ::java::lang::Object)))) majorVersion;
+ jbyte minorVersion;
+ jbyte units;
+ jshort Xdensity;
+ jshort Ydensity;
+ jbyte Xthumbnail;
+ jbyte Ythumbnail;
+ JArray< jbyte > * thumbnail;
+ ::java::awt::image::BufferedImage * image;
+ jint width;
+ jint height;
+ jbyte marker;
+public:
+ static const jbyte MAJOR_VERSION = 1;
+ static const jbyte MINOR_VERSION = 2;
+ static const jshort JFIF_FIXED_LENGTH = 16;
+ static const jshort JFXX_FIXED_LENGTH = 8;
+private:
+ ::gnu::javax::imageio::jpeg::JPEGImageInputStream * jpegStream;
+public: // actually package-private
+ ::java::util::ArrayList * jpegFrames;
+ JArray< ::javax::imageio::plugins::jpeg::JPEGHuffmanTable * > * dcTables;
+ JArray< ::javax::imageio::plugins::jpeg::JPEGHuffmanTable * > * acTables;
+ JArray< ::javax::imageio::plugins::jpeg::JPEGQTable * > * qTables;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_imageio_jpeg_JPEGDecoder__
diff --git a/libjava/gnu/javax/imageio/jpeg/JPEGException.h b/libjava/gnu/javax/imageio/jpeg/JPEGException.h
new file mode 100644
index 000000000..b2a9d5a65
--- /dev/null
+++ b/libjava/gnu/javax/imageio/jpeg/JPEGException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_imageio_jpeg_JPEGException__
+#define __gnu_javax_imageio_jpeg_JPEGException__
+
+#pragma interface
+
+#include <javax/imageio/IIOException.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace jpeg
+ {
+ class JPEGException;
+ }
+ }
+ }
+ }
+}
+
+class gnu::javax::imageio::jpeg::JPEGException : public ::javax::imageio::IIOException
+{
+
+public:
+ JPEGException(::java::lang::String *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_imageio_jpeg_JPEGException__
diff --git a/libjava/gnu/javax/imageio/jpeg/JPEGFrame.h b/libjava/gnu/javax/imageio/jpeg/JPEGFrame.h
new file mode 100644
index 000000000..5aad0a200
--- /dev/null
+++ b/libjava/gnu/javax/imageio/jpeg/JPEGFrame.h
@@ -0,0 +1,67 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_imageio_jpeg_JPEGFrame__
+#define __gnu_javax_imageio_jpeg_JPEGFrame__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace jpeg
+ {
+ class JPEGFrame;
+ class JPEGScan;
+ }
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace plugins
+ {
+ namespace jpeg
+ {
+ class JPEGHuffmanTable;
+ }
+ }
+ }
+ }
+}
+
+class gnu::javax::imageio::jpeg::JPEGFrame : public ::java::lang::Object
+{
+
+public:
+ JPEGFrame();
+ virtual void addComponent(jbyte, jbyte, jbyte);
+ virtual void setPrecision(jbyte);
+ virtual void setScanLines(jshort);
+ virtual void setSamplesPerLine(jshort);
+ virtual void setColorMode(jbyte);
+ virtual void setComponentCount(jbyte);
+ virtual jbyte getComponentCount();
+ virtual void setHuffmanTables(jbyte, ::javax::imageio::plugins::jpeg::JPEGHuffmanTable *, ::javax::imageio::plugins::jpeg::JPEGHuffmanTable *);
+ static const jbyte JPEG_COLOR_GRAY = 1;
+ static const jbyte JPEG_COLOR_RGB = 2;
+ static const jbyte JPEG_COLOR_YCbCr = 3;
+ static const jbyte JPEG_COLOR_CMYK = 4;
+ jbyte __attribute__((aligned(__alignof__( ::java::lang::Object)))) precision;
+ jbyte colorMode;
+ jbyte componentCount;
+ jshort width;
+ jshort height;
+ ::gnu::javax::imageio::jpeg::JPEGScan * components;
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_imageio_jpeg_JPEGFrame__
diff --git a/libjava/gnu/javax/imageio/jpeg/JPEGImageInputStream.h b/libjava/gnu/javax/imageio/jpeg/JPEGImageInputStream.h
new file mode 100644
index 000000000..19304c07d
--- /dev/null
+++ b/libjava/gnu/javax/imageio/jpeg/JPEGImageInputStream.h
@@ -0,0 +1,60 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_imageio_jpeg_JPEGImageInputStream__
+#define __gnu_javax_imageio_jpeg_JPEGImageInputStream__
+
+#pragma interface
+
+#include <javax/imageio/stream/ImageInputStreamImpl.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace jpeg
+ {
+ class JPEGImageInputStream;
+ }
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace stream
+ {
+ class ImageInputStream;
+ }
+ }
+ }
+}
+
+class gnu::javax::imageio::jpeg::JPEGImageInputStream : public ::javax::imageio::stream::ImageInputStreamImpl
+{
+
+public:
+ JPEGImageInputStream(::javax::imageio::stream::ImageInputStream *);
+ virtual jint read();
+ virtual jint read(JArray< jbyte > *, jint, jint);
+private:
+ jbyte pullByte();
+public:
+ virtual jbyte getMarker();
+ virtual jint readBit();
+ virtual jbyte findNextMarker();
+private:
+ ::javax::imageio::stream::ImageInputStream * __attribute__((aligned(__alignof__( ::javax::imageio::stream::ImageInputStreamImpl)))) in;
+public: // actually package-private
+ jbyte marker;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_imageio_jpeg_JPEGImageInputStream__
diff --git a/libjava/gnu/javax/imageio/jpeg/JPEGImageReader.h b/libjava/gnu/javax/imageio/jpeg/JPEGImageReader.h
new file mode 100644
index 000000000..f7deeb840
--- /dev/null
+++ b/libjava/gnu/javax/imageio/jpeg/JPEGImageReader.h
@@ -0,0 +1,76 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_imageio_jpeg_JPEGImageReader__
+#define __gnu_javax_imageio_jpeg_JPEGImageReader__
+
+#pragma interface
+
+#include <javax/imageio/ImageReader.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace jpeg
+ {
+ class JPEGDecoder;
+ class JPEGImageReader;
+ }
+ }
+ }
+ }
+ namespace java
+ {
+ namespace awt
+ {
+ namespace image
+ {
+ class BufferedImage;
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace imageio
+ {
+ class ImageReadParam;
+ namespace metadata
+ {
+ class IIOMetadata;
+ }
+ namespace spi
+ {
+ class ImageReaderSpi;
+ }
+ }
+ }
+}
+
+class gnu::javax::imageio::jpeg::JPEGImageReader : public ::javax::imageio::ImageReader
+{
+
+public: // actually protected
+ JPEGImageReader(::javax::imageio::spi::ImageReaderSpi *);
+public:
+ virtual jint getHeight(jint);
+ virtual ::javax::imageio::metadata::IIOMetadata * getImageMetadata(jint);
+ virtual ::java::util::Iterator * getImageTypes(jint);
+ virtual jint getNumImages(jboolean);
+ virtual ::javax::imageio::metadata::IIOMetadata * getStreamMetadata();
+ virtual jint getWidth(jint);
+ virtual ::java::awt::image::BufferedImage * read(jint, ::javax::imageio::ImageReadParam *);
+private:
+ void checkIndex(jint);
+ void checkStream();
+ void decodeStream();
+public: // actually package-private
+ ::gnu::javax::imageio::jpeg::JPEGDecoder * __attribute__((aligned(__alignof__( ::javax::imageio::ImageReader)))) decoder;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_imageio_jpeg_JPEGImageReader__
diff --git a/libjava/gnu/javax/imageio/jpeg/JPEGImageReaderSpi.h b/libjava/gnu/javax/imageio/jpeg/JPEGImageReaderSpi.h
new file mode 100644
index 000000000..6cb33fea0
--- /dev/null
+++ b/libjava/gnu/javax/imageio/jpeg/JPEGImageReaderSpi.h
@@ -0,0 +1,74 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_imageio_jpeg_JPEGImageReaderSpi__
+#define __gnu_javax_imageio_jpeg_JPEGImageReaderSpi__
+
+#pragma interface
+
+#include <javax/imageio/spi/ImageReaderSpi.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace jpeg
+ {
+ class JPEGImageReaderSpi;
+ }
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace imageio
+ {
+ class ImageReader;
+ namespace spi
+ {
+ class IIORegistry;
+ }
+ }
+ }
+}
+
+class gnu::javax::imageio::jpeg::JPEGImageReaderSpi : public ::javax::imageio::spi::ImageReaderSpi
+{
+
+public:
+ JPEGImageReaderSpi();
+ virtual ::java::lang::String * getDescription(::java::util::Locale *);
+ virtual jboolean canDecodeInput(::java::lang::Object *);
+ virtual ::javax::imageio::ImageReader * createReaderInstance(::java::lang::Object *);
+ static void registerSpis(::javax::imageio::spi::IIORegistry *);
+ static ::gnu::javax::imageio::jpeg::JPEGImageReaderSpi * getReaderSpi();
+public: // actually package-private
+ static ::java::lang::String * vendorName;
+ static ::java::lang::String * version;
+ static ::java::lang::String * readerClassName;
+ static JArray< ::java::lang::String * > * names;
+ static JArray< ::java::lang::String * > * suffixes;
+ static JArray< ::java::lang::String * > * MIMETypes;
+ static JArray< ::java::lang::String * > * writerSpiNames;
+ static const jboolean supportsStandardStreamMetadataFormat = 0;
+ static ::java::lang::String * nativeStreamMetadataFormatName;
+ static ::java::lang::String * nativeStreamMetadataFormatClassName;
+ static JArray< ::java::lang::String * > * extraStreamMetadataFormatNames;
+ static JArray< ::java::lang::String * > * extraStreamMetadataFormatClassNames;
+ static const jboolean supportsStandardImageMetadataFormat = 0;
+ static ::java::lang::String * nativeImageMetadataFormatName;
+ static ::java::lang::String * nativeImageMetadataFormatClassName;
+ static JArray< ::java::lang::String * > * extraImageMetadataFormatNames;
+ static JArray< ::java::lang::String * > * extraImageMetadataFormatClassNames;
+private:
+ static ::gnu::javax::imageio::jpeg::JPEGImageReaderSpi * readerSpi;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_imageio_jpeg_JPEGImageReaderSpi__
diff --git a/libjava/gnu/javax/imageio/jpeg/JPEGMarker.h b/libjava/gnu/javax/imageio/jpeg/JPEGMarker.h
new file mode 100644
index 000000000..bbfb11e67
--- /dev/null
+++ b/libjava/gnu/javax/imageio/jpeg/JPEGMarker.h
@@ -0,0 +1,89 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_imageio_jpeg_JPEGMarker__
+#define __gnu_javax_imageio_jpeg_JPEGMarker__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace jpeg
+ {
+ class JPEGMarker;
+ }
+ }
+ }
+ }
+}
+
+class gnu::javax::imageio::jpeg::JPEGMarker : public ::java::lang::Object
+{
+
+public:
+ JPEGMarker();
+ static const jbyte JFIF_J = 74;
+ static const jbyte JFIF_F = 70;
+ static const jbyte JFIF_I = 73;
+ static const jbyte JFIF_X = 70;
+ static const jbyte JFXX_JPEG = 16;
+ static const jbyte JFXX_ONE_BPP = 17;
+ static const jbyte JFXX_THREE_BPP = 19;
+ static const jbyte XFF = -1;
+ static const jbyte X00 = 0;
+ static const jbyte APP0 = -32;
+ static const jbyte APP1 = -31;
+ static const jbyte APP2 = -30;
+ static const jbyte APP3 = -29;
+ static const jbyte APP4 = -28;
+ static const jbyte APP5 = -27;
+ static const jbyte APP6 = -26;
+ static const jbyte APP7 = -25;
+ static const jbyte APP8 = -24;
+ static const jbyte APP9 = -23;
+ static const jbyte APP10 = -22;
+ static const jbyte APP11 = -21;
+ static const jbyte APP12 = -20;
+ static const jbyte APP13 = -19;
+ static const jbyte APP14 = -18;
+ static const jbyte APP15 = -17;
+ static const jbyte RST0 = -48;
+ static const jbyte RST1 = -47;
+ static const jbyte RST2 = -46;
+ static const jbyte RST3 = -45;
+ static const jbyte RST4 = -44;
+ static const jbyte RST5 = -43;
+ static const jbyte RST6 = -42;
+ static const jbyte RST7 = -41;
+ static const jbyte SOF0 = -64;
+ static const jbyte SOF1 = -63;
+ static const jbyte SOF2 = -62;
+ static const jbyte SOF3 = -61;
+ static const jbyte SOF5 = -59;
+ static const jbyte SOF6 = -58;
+ static const jbyte SOF7 = -57;
+ static const jbyte SOF9 = -55;
+ static const jbyte SOF10 = -54;
+ static const jbyte SOF11 = -53;
+ static const jbyte SOF13 = -51;
+ static const jbyte SOF14 = -50;
+ static const jbyte SOF15 = -49;
+ static const jbyte DHT = -60;
+ static const jbyte DQT = -37;
+ static const jbyte SOS = -38;
+ static const jbyte DRI = -35;
+ static const jbyte COM = -2;
+ static const jbyte SOI = -40;
+ static const jbyte EOI = -39;
+ static const jbyte DNL = -36;
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_imageio_jpeg_JPEGMarker__
diff --git a/libjava/gnu/javax/imageio/jpeg/JPEGMarkerFoundException.h b/libjava/gnu/javax/imageio/jpeg/JPEGMarkerFoundException.h
new file mode 100644
index 000000000..d7c376cf8
--- /dev/null
+++ b/libjava/gnu/javax/imageio/jpeg/JPEGMarkerFoundException.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_imageio_jpeg_JPEGMarkerFoundException__
+#define __gnu_javax_imageio_jpeg_JPEGMarkerFoundException__
+
+#pragma interface
+
+#include <java/io/IOException.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace jpeg
+ {
+ class JPEGMarkerFoundException;
+ }
+ }
+ }
+ }
+}
+
+class gnu::javax::imageio::jpeg::JPEGMarkerFoundException : public ::java::io::IOException
+{
+
+public:
+ JPEGMarkerFoundException();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_imageio_jpeg_JPEGMarkerFoundException__
diff --git a/libjava/gnu/javax/imageio/jpeg/JPEGScan.h b/libjava/gnu/javax/imageio/jpeg/JPEGScan.h
new file mode 100644
index 000000000..502328656
--- /dev/null
+++ b/libjava/gnu/javax/imageio/jpeg/JPEGScan.h
@@ -0,0 +1,60 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_imageio_jpeg_JPEGScan__
+#define __gnu_javax_imageio_jpeg_JPEGScan__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace jpeg
+ {
+ class JPEGComponent;
+ class JPEGScan;
+ }
+ }
+ }
+ }
+}
+
+class gnu::javax::imageio::jpeg::JPEGScan : public ::java::lang::Object
+{
+
+public:
+ JPEGScan();
+ JPEGScan(jint, jint);
+private:
+ void recalculateDimensions();
+public:
+ virtual void addComponent(jbyte, jbyte, jbyte, jbyte);
+ virtual ::gnu::javax::imageio::jpeg::JPEGComponent * getComponentByID(jbyte);
+ virtual ::gnu::javax::imageio::jpeg::JPEGComponent * get(jint);
+ virtual jint getX(jbyte);
+ virtual jint getY(jbyte);
+ virtual jint getMaxV();
+ virtual jint getMaxH();
+ virtual void setWidth(jint);
+ virtual void setHeight(jint);
+ virtual jint size();
+ virtual jint sizeComponentBlocks();
+private:
+ jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) maxHeight;
+ jint maxWidth;
+ jint maxV;
+ jint maxH;
+ jint numOfComponents;
+ jint numOfComponentBlocks;
+ ::java::util::ArrayList * components;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_imageio_jpeg_JPEGScan__
diff --git a/libjava/gnu/javax/imageio/jpeg/YCbCr_ColorSpace.h b/libjava/gnu/javax/imageio/jpeg/YCbCr_ColorSpace.h
new file mode 100644
index 000000000..0d107f2bb
--- /dev/null
+++ b/libjava/gnu/javax/imageio/jpeg/YCbCr_ColorSpace.h
@@ -0,0 +1,42 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_imageio_jpeg_YCbCr_ColorSpace__
+#define __gnu_javax_imageio_jpeg_YCbCr_ColorSpace__
+
+#pragma interface
+
+#include <java/awt/color/ColorSpace.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace jpeg
+ {
+ class YCbCr_ColorSpace;
+ }
+ }
+ }
+ }
+}
+
+class gnu::javax::imageio::jpeg::YCbCr_ColorSpace : public ::java::awt::color::ColorSpace
+{
+
+public:
+ YCbCr_ColorSpace();
+ virtual JArray< jfloat > * fromCIEXYZ(JArray< jfloat > *);
+ virtual JArray< jfloat > * toCIEXYZ(JArray< jfloat > *);
+ virtual JArray< jfloat > * fromRGB(JArray< jfloat > *);
+ virtual JArray< jfloat > * toRGB(JArray< jfloat > *);
+ static JArray< jfloat > * toYCbCr(JArray< jfloat > *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_imageio_jpeg_YCbCr_ColorSpace__
diff --git a/libjava/gnu/javax/imageio/jpeg/ZigZag.h b/libjava/gnu/javax/imageio/jpeg/ZigZag.h
new file mode 100644
index 000000000..611108857
--- /dev/null
+++ b/libjava/gnu/javax/imageio/jpeg/ZigZag.h
@@ -0,0 +1,52 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_javax_imageio_jpeg_ZigZag__
+#define __gnu_javax_imageio_jpeg_ZigZag__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace javax
+ {
+ namespace imageio
+ {
+ namespace jpeg
+ {
+ class ZigZag;
+ }
+ }
+ }
+ }
+}
+
+class gnu::javax::imageio::jpeg::ZigZag : public ::java::lang::Object
+{
+
+public:
+ ZigZag();
+ static JArray< jbyte > * encode(JArray< JArray< jbyte > * > *);
+ static JArray< jdouble > * encode(JArray< JArray< jdouble > * > *);
+ static JArray< jfloat > * encode(JArray< JArray< jfloat > * > *);
+ static JArray< jshort > * encode(JArray< JArray< jshort > * > *);
+ static JArray< JArray< jdouble > * > * decode(JArray< jdouble > *);
+ static JArray< JArray< jbyte > * > * decode(JArray< jbyte > *);
+ static JArray< JArray< jint > * > * decode(JArray< jint > *);
+ static JArray< JArray< jbyte > * > * decode(JArray< jbyte > *, jint, jint);
+ static JArray< JArray< jdouble > * > * decode(JArray< jdouble > *, jint, jint);
+ static JArray< JArray< jfloat > * > * decode(JArray< jfloat > *, jint, jint);
+ static JArray< JArray< jint > * > * decode(JArray< jint > *, jint, jint);
+ static JArray< JArray< jdouble > * > * decode8x8_map(JArray< jdouble > *);
+ static const jboolean ZIGZAG_FORWARD = 1;
+ static const jboolean ZIGZAG_BACKWARD = 0;
+ static JArray< jint > * ZIGZAG_8X8_MAP;
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_javax_imageio_jpeg_ZigZag__