PNGChunk.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_imageio_png_PNGChunk__
  3. #define __gnu_javax_imageio_png_PNGChunk__
  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 PNGChunk;
  18. }
  19. }
  20. }
  21. }
  22. }
  23. class gnu::javax::imageio::png::PNGChunk : public ::java::lang::Object
  24. {
  25. public: // actually protected
  26. PNGChunk(jint, JArray< jbyte > *, jint);
  27. PNGChunk(jint);
  28. public:
  29. static ::gnu::javax::imageio::png::PNGChunk * readChunk(::java::io::InputStream *, jboolean);
  30. private:
  31. static ::gnu::javax::imageio::png::PNGChunk * getChunk(jint, JArray< jbyte > *, jint);
  32. static jboolean isEssentialChunk(jint);
  33. public:
  34. virtual jboolean isValidChunk();
  35. virtual jint getType();
  36. virtual void writeChunk(::java::io::OutputStream *);
  37. virtual jboolean isEmpty();
  38. static JArray< jbyte > * getInt(jint);
  39. private:
  40. jint calcCRC();
  41. public:
  42. virtual ::java::lang::String * toString();
  43. private:
  44. static JArray< jlong > * crcTable;
  45. public:
  46. static const jint TYPE_HEADER = 1229472850;
  47. static const jint TYPE_PALETTE = 1347179589;
  48. static const jint TYPE_DATA = 1229209940;
  49. static const jint TYPE_TIME = 1950960965;
  50. static const jint TYPE_END = 1229278788;
  51. static const jint TYPE_PHYS = 1883789683;
  52. static const jint TYPE_GAMMA = 1732332865;
  53. static const jint TYPE_PROFILE = 1766015824;
  54. private:
  55. jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) type;
  56. public: // actually protected
  57. JArray< jbyte > * data;
  58. private:
  59. jint crc;
  60. public:
  61. static ::java::lang::Class class$;
  62. };
  63. #endif // __gnu_javax_imageio_png_PNGChunk__