ImageReader.h 6.9 KB

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