PNGDecoder.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_imageio_png_PNGDecoder__
  3. #define __gnu_javax_imageio_png_PNGDecoder__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace javax
  12. {
  13. namespace imageio
  14. {
  15. namespace png
  16. {
  17. class PNGData;
  18. class PNGDecoder;
  19. class PNGHeader;
  20. }
  21. }
  22. }
  23. }
  24. namespace java
  25. {
  26. namespace awt
  27. {
  28. namespace color
  29. {
  30. class ColorSpace;
  31. }
  32. namespace image
  33. {
  34. class ColorModel;
  35. class DataBuffer;
  36. class IndexColorModel;
  37. class WritableRaster;
  38. }
  39. }
  40. }
  41. }
  42. class gnu::javax::imageio::png::PNGDecoder : public ::java::lang::Object
  43. {
  44. public:
  45. PNGDecoder(::gnu::javax::imageio::png::PNGHeader *);
  46. private:
  47. jint getBytes(JArray< jbyte > *, jint);
  48. public:
  49. virtual void addData(::gnu::javax::imageio::png::PNGData *);
  50. virtual ::java::awt::image::WritableRaster * getRaster(::gnu::javax::imageio::png::PNGHeader *);
  51. private:
  52. ::java::awt::image::DataBuffer * getShortBuffer();
  53. ::java::awt::image::DataBuffer * getByteBuffer();
  54. public:
  55. virtual ::java::awt::image::ColorModel * getColorModel(::java::awt::color::ColorSpace *, jint, jint);
  56. private:
  57. ::java::awt::image::IndexColorModel * grayPalette(jint);
  58. public:
  59. virtual JArray< jbyte > * getRaster();
  60. virtual jboolean isFinished();
  61. private:
  62. ::gnu::javax::imageio::png::PNGHeader * __attribute__((aligned(__alignof__( ::java::lang::Object)))) header;
  63. JArray< jbyte > * raster;
  64. JArray< jbyte > * scanline;
  65. JArray< jbyte > * lastScanline;
  66. JArray< jbyte > * filterType;
  67. jint offset;
  68. jint length;
  69. jint currentScanline;
  70. jint stride;
  71. ::java::util::zip::Inflater * inflater;
  72. jboolean readFilter;
  73. jint bpp;
  74. public:
  75. static ::java::lang::Class class$;
  76. };
  77. #endif // __gnu_javax_imageio_png_PNGDecoder__