1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_imageio_ImageReader__
|
5 |
|
|
#define __javax_imageio_ImageReader__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace awt
|
17 |
|
|
{
|
18 |
|
|
class Rectangle;
|
19 |
|
|
namespace image
|
20 |
|
|
{
|
21 |
|
|
class BufferedImage;
|
22 |
|
|
class Raster;
|
23 |
|
|
class RenderedImage;
|
24 |
|
|
}
|
25 |
|
|
}
|
26 |
|
|
}
|
27 |
|
|
namespace javax
|
28 |
|
|
{
|
29 |
|
|
namespace imageio
|
30 |
|
|
{
|
31 |
|
|
class IIOImage;
|
32 |
|
|
class ImageReadParam;
|
33 |
|
|
class ImageReader;
|
34 |
|
|
class ImageTypeSpecifier;
|
35 |
|
|
namespace event
|
36 |
|
|
{
|
37 |
|
|
class IIOReadProgressListener;
|
38 |
|
|
class IIOReadUpdateListener;
|
39 |
|
|
class IIOReadWarningListener;
|
40 |
|
|
}
|
41 |
|
|
namespace metadata
|
42 |
|
|
{
|
43 |
|
|
class IIOMetadata;
|
44 |
|
|
}
|
45 |
|
|
namespace spi
|
46 |
|
|
{
|
47 |
|
|
class ImageReaderSpi;
|
48 |
|
|
}
|
49 |
|
|
}
|
50 |
|
|
}
|
51 |
|
|
}
|
52 |
|
|
|
53 |
|
|
class javax::imageio::ImageReader : public ::java::lang::Object
|
54 |
|
|
{
|
55 |
|
|
|
56 |
|
|
public: // actually protected
|
57 |
|
|
ImageReader(::javax::imageio::spi::ImageReaderSpi *);
|
58 |
|
|
public:
|
59 |
|
|
virtual void abort();
|
60 |
|
|
public: // actually protected
|
61 |
|
|
virtual jboolean abortRequested();
|
62 |
|
|
public:
|
63 |
|
|
virtual void addIIOReadProgressListener(::javax::imageio::event::IIOReadProgressListener *);
|
64 |
|
|
virtual void addIIOReadUpdateListener(::javax::imageio::event::IIOReadUpdateListener *);
|
65 |
|
|
virtual void addIIOReadWarningListener(::javax::imageio::event::IIOReadWarningListener *);
|
66 |
|
|
virtual jboolean canReadRaster();
|
67 |
|
|
public: // actually protected
|
68 |
|
|
virtual void clearAbortRequest();
|
69 |
|
|
public:
|
70 |
|
|
virtual void dispose();
|
71 |
|
|
virtual jfloat getAspectRatio(jint);
|
72 |
|
|
virtual JArray< ::java::util::Locale * > * getAvailableLocales();
|
73 |
|
|
virtual ::javax::imageio::ImageReadParam * getDefaultReadParam();
|
74 |
|
|
virtual ::java::lang::String * getFormatName();
|
75 |
|
|
virtual jint getHeight(jint) = 0;
|
76 |
|
|
virtual ::javax::imageio::metadata::IIOMetadata * getImageMetadata(jint) = 0;
|
77 |
|
|
virtual ::java::util::Iterator * getImageTypes(jint) = 0;
|
78 |
|
|
virtual void setInput(::java::lang::Object *, jboolean, jboolean);
|
79 |
|
|
virtual void setInput(::java::lang::Object *, jboolean);
|
80 |
|
|
virtual void setInput(::java::lang::Object *);
|
81 |
|
|
virtual ::java::lang::Object * getInput();
|
82 |
|
|
virtual ::java::util::Locale * getLocale();
|
83 |
|
|
virtual jint getNumImages(jboolean) = 0;
|
84 |
|
|
virtual jint getNumThumbnails(jint);
|
85 |
|
|
virtual ::javax::imageio::spi::ImageReaderSpi * getOriginatingProvider();
|
86 |
|
|
virtual ::javax::imageio::metadata::IIOMetadata * getStreamMetadata() = 0;
|
87 |
|
|
virtual jint getThumbnailHeight(jint, jint);
|
88 |
|
|
virtual jint getThumbnailWidth(jint, jint);
|
89 |
|
|
virtual jint getTileGridXOffset(jint);
|
90 |
|
|
virtual jint getTileGridYOffset(jint);
|
91 |
|
|
virtual jint getTileHeight(jint);
|
92 |
|
|
virtual jint getTileWidth(jint);
|
93 |
|
|
virtual jint getWidth(jint) = 0;
|
94 |
|
|
virtual jboolean hasThumbnails(jint);
|
95 |
|
|
virtual jboolean isIgnoringMetadata();
|
96 |
|
|
virtual jboolean isImageTiled(jint);
|
97 |
|
|
virtual jboolean isRandomAccessEasy(jint);
|
98 |
|
|
virtual jboolean isSeekForwardOnly();
|
99 |
|
|
public: // actually protected
|
100 |
|
|
virtual void processImageComplete();
|
101 |
|
|
virtual void processImageProgress(jfloat);
|
102 |
|
|
virtual void processImageStarted(jint);
|
103 |
|
|
virtual void processImageUpdate(::java::awt::image::BufferedImage *, jint, jint, jint, jint, jint, jint, JArray< jint > *);
|
104 |
|
|
virtual void processPassComplete(::java::awt::image::BufferedImage *);
|
105 |
|
|
virtual void processPassStarted(::java::awt::image::BufferedImage *, jint, jint, jint, jint, jint, jint, jint, JArray< jint > *);
|
106 |
|
|
virtual void processReadAborted();
|
107 |
|
|
virtual void processSequenceComplete();
|
108 |
|
|
virtual void processSequenceStarted(jint);
|
109 |
|
|
virtual void processThumbnailComplete();
|
110 |
|
|
virtual void processThumbnailPassComplete(::java::awt::image::BufferedImage *);
|
111 |
|
|
virtual void processThumbnailPassStarted(::java::awt::image::BufferedImage *, jint, jint, jint, jint, jint, jint, jint, JArray< jint > *);
|
112 |
|
|
virtual void processThumbnailProgress(jfloat);
|
113 |
|
|
virtual void processThumbnailStarted(jint, jint);
|
114 |
|
|
virtual void processThumbnailUpdate(::java::awt::image::BufferedImage *, jint, jint, jint, jint, jint, jint, JArray< jint > *);
|
115 |
|
|
virtual void processWarningOccurred(::java::lang::String *);
|
116 |
|
|
virtual void processWarningOccurred(::java::lang::String *, ::java::lang::String *);
|
117 |
|
|
public:
|
118 |
|
|
virtual ::java::awt::image::BufferedImage * read(jint, ::javax::imageio::ImageReadParam *) = 0;
|
119 |
|
|
virtual jboolean readerSupportsThumbnails();
|
120 |
|
|
virtual ::java::awt::image::Raster * readRaster(jint, ::javax::imageio::ImageReadParam *);
|
121 |
|
|
virtual ::java::awt::image::BufferedImage * readThumbnail(jint, jint);
|
122 |
|
|
virtual void removeAllIIOReadProgressListeners();
|
123 |
|
|
virtual void removeAllIIOReadUpdateListeners();
|
124 |
|
|
virtual void removeAllIIOReadWarningListeners();
|
125 |
|
|
virtual void removeIIOReadProgressListener(::javax::imageio::event::IIOReadProgressListener *);
|
126 |
|
|
virtual void removeIIOReadUpdateListener(::javax::imageio::event::IIOReadUpdateListener *);
|
127 |
|
|
virtual void removeIIOReadWarningListener(::javax::imageio::event::IIOReadWarningListener *);
|
128 |
|
|
virtual void setLocale(::java::util::Locale *);
|
129 |
|
|
public: // actually protected
|
130 |
|
|
static void checkReadParamBandSettings(::javax::imageio::ImageReadParam *, jint, jint);
|
131 |
|
|
static void computeRegions(::javax::imageio::ImageReadParam *, jint, jint, ::java::awt::image::BufferedImage *, ::java::awt::Rectangle *, ::java::awt::Rectangle *);
|
132 |
|
|
static ::java::awt::image::BufferedImage * getDestination(::javax::imageio::ImageReadParam *, ::java::util::Iterator *, jint, jint);
|
133 |
|
|
public:
|
134 |
|
|
virtual ::javax::imageio::metadata::IIOMetadata * getImageMetadata(jint, ::java::lang::String *, ::java::util::Set *);
|
135 |
|
|
virtual jint getMinIndex();
|
136 |
|
|
virtual ::javax::imageio::ImageTypeSpecifier * getRawImageType(jint);
|
137 |
|
|
public: // actually protected
|
138 |
|
|
static ::java::awt::Rectangle * getSourceRegion(::javax::imageio::ImageReadParam *, jint, jint);
|
139 |
|
|
public:
|
140 |
|
|
virtual ::javax::imageio::metadata::IIOMetadata * getStreamMetadata(::java::lang::String *, ::java::util::Set *);
|
141 |
|
|
virtual ::java::awt::image::BufferedImage * read(jint);
|
142 |
|
|
virtual ::javax::imageio::IIOImage * readAll(jint, ::javax::imageio::ImageReadParam *);
|
143 |
|
|
virtual ::java::util::Iterator * readAll(::java::util::Iterator *);
|
144 |
|
|
virtual ::java::awt::image::RenderedImage * readAsRenderedImage(jint, ::javax::imageio::ImageReadParam *);
|
145 |
|
|
virtual ::java::awt::image::BufferedImage * readTile(jint, jint, jint);
|
146 |
|
|
virtual ::java::awt::image::Raster * readTileRaster(jint, jint, jint);
|
147 |
|
|
virtual void reset();
|
148 |
|
|
private:
|
149 |
|
|
jboolean __attribute__((aligned(__alignof__( ::java::lang::Object)))) aborted;
|
150 |
|
|
public: // actually protected
|
151 |
|
|
JArray< ::java::util::Locale * > * availableLocales;
|
152 |
|
|
jboolean ignoreMetadata;
|
153 |
|
|
::java::lang::Object * input;
|
154 |
|
|
::java::util::Locale * locale;
|
155 |
|
|
jint minIndex;
|
156 |
|
|
::javax::imageio::spi::ImageReaderSpi * originatingProvider;
|
157 |
|
|
::java::util::List * progressListeners;
|
158 |
|
|
jboolean seekForwardOnly;
|
159 |
|
|
::java::util::List * updateListeners;
|
160 |
|
|
::java::util::List * warningListeners;
|
161 |
|
|
::java::util::List * warningLocales;
|
162 |
|
|
public:
|
163 |
|
|
static ::java::lang::Class class$;
|
164 |
|
|
};
|
165 |
|
|
|
166 |
|
|
#endif // __javax_imageio_ImageReader__
|