home *** CD-ROM | disk | FTP | other *** search
/ Compressed Image File Formats / CompressedImageFileFormatsJohnMiano.iso / pc / Examples / c06 / inc / jpegenco.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-20  |  345 b   |  20 lines

  1. #include <iostream>
  2. #include "datatype.h"
  3.  
  4. using namespace std ;
  5.  
  6. class JpegEncoder
  7. {
  8. public:
  9.   JpegEncoder (ostream &) ;
  10.   void OutputByte (UBYTE1) ;
  11.   void OutputBits (int bits, unsigned int count) ;
  12.   void FlushBitBuffer () ;
  13. private:
  14.   unsigned int bit_buffer ;
  15.   unsigned int bit_count ;
  16.   ostream *output_stream ;
  17. } ;
  18.  
  19.  
  20.