HuffmanTable.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_imageio_jpeg_HuffmanTable__
  3. #define __gnu_javax_imageio_jpeg_HuffmanTable__
  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 HuffmanTable;
  18. class JPEGImageInputStream;
  19. }
  20. }
  21. }
  22. }
  23. namespace javax
  24. {
  25. namespace imageio
  26. {
  27. namespace plugins
  28. {
  29. namespace jpeg
  30. {
  31. class JPEGHuffmanTable;
  32. }
  33. }
  34. }
  35. }
  36. }
  37. class gnu::javax::imageio::jpeg::HuffmanTable : public ::java::lang::Object
  38. {
  39. public:
  40. HuffmanTable(::javax::imageio::plugins::jpeg::JPEGHuffmanTable *);
  41. private:
  42. void generateSizeTable();
  43. void generateCodeTable();
  44. void generateDecoderTables();
  45. public:
  46. virtual void orderCodes(jboolean);
  47. static jint extend(jint, jint);
  48. virtual jint decode(::gnu::javax::imageio::jpeg::JPEGImageInputStream *);
  49. static const jint HUFFMAN_MAX_TABLES = 4;
  50. private:
  51. JArray< jshort > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) huffcode;
  52. JArray< jshort > * huffsize;
  53. JArray< jshort > * EHUFCO;
  54. JArray< jshort > * EHUFSI;
  55. JArray< jshort > * valptr;
  56. JArray< jshort > * mincode;
  57. JArray< jshort > * maxcode;
  58. JArray< jshort > * huffval;
  59. JArray< jshort > * bits;
  60. public: // actually package-private
  61. static jbyte JPEG_DC_TABLE;
  62. static jbyte JPEG_AC_TABLE;
  63. private:
  64. jshort lastk;
  65. public:
  66. static ::java::lang::Class class$;
  67. };
  68. #endif // __gnu_javax_imageio_jpeg_HuffmanTable__