PNGHeader.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_imageio_png_PNGHeader__
  3. #define __gnu_javax_imageio_png_PNGHeader__
  4. #pragma interface
  5. #include <gnu/javax/imageio/png/PNGChunk.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 PNGHeader;
  18. }
  19. }
  20. }
  21. }
  22. }
  23. class gnu::javax::imageio::png::PNGHeader : public ::gnu::javax::imageio::png::PNGChunk
  24. {
  25. public: // actually protected
  26. PNGHeader(jint, JArray< jbyte > *, jint);
  27. public:
  28. PNGHeader(jint, jint, jint, jint, jboolean);
  29. virtual jboolean isValidChunk();
  30. virtual jboolean isIndexed();
  31. virtual jboolean isGrayscale();
  32. virtual jint getColorType();
  33. virtual jboolean isInterlaced();
  34. virtual jint bytesPerPixel();
  35. virtual jint getScanlineStride();
  36. virtual jint getWidth();
  37. virtual jint getHeight();
  38. virtual jint getDepth();
  39. virtual ::java::lang::String * toString();
  40. private:
  41. jint __attribute__((aligned(__alignof__( ::gnu::javax::imageio::png::PNGChunk)))) width;
  42. jint height;
  43. jint depth;
  44. jint colorType;
  45. jint compression;
  46. jint filter;
  47. jint interlace;
  48. public:
  49. static const jint INTERLACE_NONE = 0;
  50. static const jint INTERLACE_ADAM7 = 1;
  51. static const jint GRAYSCALE = 0;
  52. static const jint RGB = 2;
  53. static const jint INDEXED = 3;
  54. static const jint GRAYSCALE_WITH_ALPHA = 4;
  55. static const jint RGB_WITH_ALPHA = 6;
  56. static ::java::lang::Class class$;
  57. };
  58. #endif // __gnu_javax_imageio_png_PNGHeader__