diff options
author | upstream source tree <ports@midipix.org> | 2015-03-15 20:14:05 -0400 |
---|---|---|
committer | upstream source tree <ports@midipix.org> | 2015-03-15 20:14:05 -0400 |
commit | 554fd8c5195424bdbcabf5de30fdc183aba391bd (patch) | |
tree | 976dc5ab7fddf506dadce60ae936f43f58787092 /libjava/gnu/javax/imageio/gif | |
download | cbb-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/gif')
-rw-r--r-- | libjava/gnu/javax/imageio/gif/GIFFile$GIFException.h | 35 | ||||
-rw-r--r-- | libjava/gnu/javax/imageio/gif/GIFFile.h | 101 | ||||
-rw-r--r-- | libjava/gnu/javax/imageio/gif/GIFImageReader.h | 83 | ||||
-rw-r--r-- | libjava/gnu/javax/imageio/gif/GIFImageReaderSpi.h | 66 |
4 files changed, 285 insertions, 0 deletions
diff --git a/libjava/gnu/javax/imageio/gif/GIFFile$GIFException.h b/libjava/gnu/javax/imageio/gif/GIFFile$GIFException.h new file mode 100644 index 000000000..d4468b958 --- /dev/null +++ b/libjava/gnu/javax/imageio/gif/GIFFile$GIFException.h @@ -0,0 +1,35 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_imageio_gif_GIFFile$GIFException__ +#define __gnu_javax_imageio_gif_GIFFile$GIFException__ + +#pragma interface + +#include <java/lang/Exception.h> +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace imageio + { + namespace gif + { + class GIFFile$GIFException; + } + } + } + } +} + +class gnu::javax::imageio::gif::GIFFile$GIFException : public ::java::lang::Exception +{ + +public: + GIFFile$GIFException(::java::lang::String *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_imageio_gif_GIFFile$GIFException__ diff --git a/libjava/gnu/javax/imageio/gif/GIFFile.h b/libjava/gnu/javax/imageio/gif/GIFFile.h new file mode 100644 index 000000000..b574276fd --- /dev/null +++ b/libjava/gnu/javax/imageio/gif/GIFFile.h @@ -0,0 +1,101 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_imageio_gif_GIFFile__ +#define __gnu_javax_imageio_gif_GIFFile__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace imageio + { + namespace gif + { + class GIFFile; + } + } + } + } +} + +class gnu::javax::imageio::gif::GIFFile : public ::java::lang::Object +{ + +public: + GIFFile(::java::io::InputStream *); +private: + GIFFile(::gnu::javax::imageio::gif::GIFFile *, ::java::io::InputStream *, jint); +public: + static jboolean readSignature(::java::io::InputStream *); +private: + void loadImage(::java::io::InputStream *); + void packPixels(); +public: + virtual jint getWidth(); + virtual jint getHeight(); + virtual jint getNColors(); + virtual jboolean hasTransparency(); + virtual jint getTransparentIndex(); + virtual ::java::lang::String * getComment(); + virtual jint getDuration(); +private: + void deinterlace(); + void readLocal(::java::io::InputStream *); +public: + virtual JArray< jbyte > * getRawPalette(); + virtual ::gnu::javax::imageio::gif::GIFFile * getImage(jint); + virtual JArray< jbyte > * getRawImage(); + virtual jint nImages(); +private: + void readExtension(::java::io::InputStream *); + JArray< jbyte > * readData(::java::io::InputStream *); + void decodeRaster(::java::io::InputStream *); + jint getBits(jint); + static JArray< jbyte > * nsBlock; + static const jint EXTENSION = 33; + static const jint LOCAL = 44; + static const jint TERMINATOR = 59; + static const jint EXTENSION_COMMENT = 254; + static const jint EXTENSION_GCONTROL = 249; + static const jint EXTENSION_APPLICATION = 255; + static const jint UNDRAW_OVERWRITE = 1; + static const jint UNDRAW_RESTORE_BACKGROUND = 2; + static const jint UNDRAW_RESTORE_PREVIOUS = 3; + jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) x; + jint y; + jint width; + jint height; + jint globalWidth; + jint globalHeight; + jbyte bgIndex; + jint nColors; + JArray< jbyte > * globalPalette; + jboolean hasGlobalColorMap; + JArray< jbyte > * localPalette; + jboolean interlaced; + jboolean hasTransparency__; + jint undraw; + jint transparentIndex; + JArray< jbyte > * raster; + JArray< jbyte > * compressedData; + jint duration; + jint dataBlockIndex; + ::java::lang::String * comment; + jint remainingBits; + jint currentBits; + jboolean isLooped; + jint loops; + ::java::util::Vector * animationFrames; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_imageio_gif_GIFFile__ diff --git a/libjava/gnu/javax/imageio/gif/GIFImageReader.h b/libjava/gnu/javax/imageio/gif/GIFImageReader.h new file mode 100644 index 000000000..4fc8c7b93 --- /dev/null +++ b/libjava/gnu/javax/imageio/gif/GIFImageReader.h @@ -0,0 +1,83 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_imageio_gif_GIFImageReader__ +#define __gnu_javax_imageio_gif_GIFImageReader__ + +#pragma interface + +#include <javax/imageio/ImageReader.h> +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace imageio + { + namespace gif + { + class GIFFile; + class GIFImageReader; + } + } + } + } + namespace java + { + namespace awt + { + namespace image + { + class BufferedImage; + class IndexColorModel; + } + } + } + namespace javax + { + namespace imageio + { + class ImageReadParam; + namespace metadata + { + class IIOMetadata; + } + namespace spi + { + class ImageReaderSpi; + } + } + } +} + +class gnu::javax::imageio::gif::GIFImageReader : public ::javax::imageio::ImageReader +{ + +public: // actually protected + GIFImageReader(::javax::imageio::spi::ImageReaderSpi *); +private: + void readImage(); + ::java::awt::image::IndexColorModel * getPalette(jint); + void validateIndex(jint); +public: + virtual void setInput(::java::lang::Object *); + virtual void setInput(::java::lang::Object *, jboolean, jboolean); + virtual void setInput(::java::lang::Object *, jboolean); +private: + void checkStream(); +public: + virtual jint getWidth(jint); + virtual jint getHeight(jint); + virtual ::java::util::Iterator * getImageTypes(jint); + virtual jint getNumImages(jboolean); + virtual ::javax::imageio::metadata::IIOMetadata * getImageMetadata(jint); + virtual ::javax::imageio::metadata::IIOMetadata * getStreamMetadata(); + virtual ::java::awt::image::BufferedImage * read(jint, ::javax::imageio::ImageReadParam *); +private: + ::gnu::javax::imageio::gif::GIFFile * __attribute__((aligned(__alignof__( ::javax::imageio::ImageReader)))) file; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_imageio_gif_GIFImageReader__ diff --git a/libjava/gnu/javax/imageio/gif/GIFImageReaderSpi.h b/libjava/gnu/javax/imageio/gif/GIFImageReaderSpi.h new file mode 100644 index 000000000..027faea80 --- /dev/null +++ b/libjava/gnu/javax/imageio/gif/GIFImageReaderSpi.h @@ -0,0 +1,66 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_javax_imageio_gif_GIFImageReaderSpi__ +#define __gnu_javax_imageio_gif_GIFImageReaderSpi__ + +#pragma interface + +#include <javax/imageio/spi/ImageReaderSpi.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace javax + { + namespace imageio + { + namespace gif + { + class GIFImageReaderSpi; + } + } + } + } + namespace javax + { + namespace imageio + { + class ImageReader; + } + } +} + +class gnu::javax::imageio::gif::GIFImageReaderSpi : public ::javax::imageio::spi::ImageReaderSpi +{ + +public: + GIFImageReaderSpi(); + virtual ::java::lang::String * getDescription(::java::util::Locale *); + virtual jboolean canDecodeInput(::java::lang::Object *); + virtual ::javax::imageio::ImageReader * createReaderInstance(::java::lang::Object *); +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; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_javax_imageio_gif_GIFImageReaderSpi__ |