PNGFile.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_imageio_png_PNGFile__
  3. #define __gnu_javax_imageio_png_PNGFile__
  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 PNGDecoder;
  18. class PNGEncoder;
  19. class PNGFile;
  20. class PNGHeader;
  21. class PNGPalette;
  22. }
  23. }
  24. }
  25. }
  26. namespace java
  27. {
  28. namespace awt
  29. {
  30. namespace color
  31. {
  32. class ColorSpace;
  33. }
  34. namespace image
  35. {
  36. class BufferedImage;
  37. }
  38. }
  39. }
  40. }
  41. class gnu::javax::imageio::png::PNGFile : public ::java::lang::Object
  42. {
  43. public:
  44. PNGFile(::java::io::InputStream *);
  45. PNGFile(::java::awt::image::BufferedImage *);
  46. virtual void writePNG(::java::io::OutputStream *);
  47. private:
  48. jboolean validateHeader(JArray< jbyte > *);
  49. public:
  50. virtual ::java::awt::image::BufferedImage * getBufferedImage();
  51. private:
  52. ::gnu::javax::imageio::png::PNGPalette * getPalette();
  53. ::java::awt::color::ColorSpace * getColorSpace();
  54. static JArray< jbyte > * signature;
  55. static JArray< jbyte > * endChunk;
  56. ::java::util::Vector * __attribute__((aligned(__alignof__( ::java::lang::Object)))) chunks;
  57. ::gnu::javax::imageio::png::PNGHeader * header;
  58. jboolean hasPalette;
  59. jint width;
  60. jint height;
  61. ::gnu::javax::imageio::png::PNGDecoder * decoder;
  62. ::gnu::javax::imageio::png::PNGEncoder * encoder;
  63. ::java::awt::image::BufferedImage * sourceImage;
  64. public:
  65. static ::java::lang::Class class$;
  66. };
  67. #endif // __gnu_javax_imageio_png_PNGFile__