JPEGDecoder.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_imageio_jpeg_JPEGDecoder__
  3. #define __gnu_javax_imageio_jpeg_JPEGDecoder__
  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 jpeg
  16. {
  17. class JPEGDecoder;
  18. class JPEGImageInputStream;
  19. }
  20. }
  21. }
  22. }
  23. namespace java
  24. {
  25. namespace awt
  26. {
  27. namespace image
  28. {
  29. class BufferedImage;
  30. }
  31. }
  32. }
  33. namespace javax
  34. {
  35. namespace imageio
  36. {
  37. namespace plugins
  38. {
  39. namespace jpeg
  40. {
  41. class JPEGHuffmanTable;
  42. class JPEGQTable;
  43. }
  44. }
  45. namespace stream
  46. {
  47. class ImageInputStream;
  48. }
  49. }
  50. }
  51. }
  52. class gnu::javax::imageio::jpeg::JPEGDecoder : public ::java::lang::Object
  53. {
  54. public:
  55. virtual jint getHeight();
  56. virtual jint getWidth();
  57. JPEGDecoder(::javax::imageio::stream::ImageInputStream *);
  58. virtual void decode();
  59. private:
  60. void decodeJFIFExtension();
  61. public:
  62. virtual ::java::awt::image::BufferedImage * getImage();
  63. public: // actually package-private
  64. jbyte __attribute__((aligned(__alignof__( ::java::lang::Object)))) majorVersion;
  65. jbyte minorVersion;
  66. jbyte units;
  67. jshort Xdensity;
  68. jshort Ydensity;
  69. jbyte Xthumbnail;
  70. jbyte Ythumbnail;
  71. JArray< jbyte > * thumbnail;
  72. ::java::awt::image::BufferedImage * image;
  73. jint width;
  74. jint height;
  75. jbyte marker;
  76. public:
  77. static const jbyte MAJOR_VERSION = 1;
  78. static const jbyte MINOR_VERSION = 2;
  79. static const jshort JFIF_FIXED_LENGTH = 16;
  80. static const jshort JFXX_FIXED_LENGTH = 8;
  81. private:
  82. ::gnu::javax::imageio::jpeg::JPEGImageInputStream * jpegStream;
  83. public: // actually package-private
  84. ::java::util::ArrayList * jpegFrames;
  85. JArray< ::javax::imageio::plugins::jpeg::JPEGHuffmanTable * > * dcTables;
  86. JArray< ::javax::imageio::plugins::jpeg::JPEGHuffmanTable * > * acTables;
  87. JArray< ::javax::imageio::plugins::jpeg::JPEGQTable * > * qTables;
  88. public:
  89. static ::java::lang::Class class$;
  90. };
  91. #endif // __gnu_javax_imageio_jpeg_JPEGDecoder__