home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compressed Image File Formats
/
CompressedImageFileFormatsJohnMiano.iso
/
pc
/
Examples
/
c06
/
inc
/
jpegenco.h
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1998-12-20
|
345 b
|
20 lines
#include <iostream>
#include "datatype.h"
using namespace std ;
class JpegEncoder
{
public:
JpegEncoder (ostream &) ;
void OutputByte (UBYTE1) ;
void OutputBits (int bits, unsigned int count) ;
void FlushBitBuffer () ;
private:
unsigned int bit_buffer ;
unsigned int bit_count ;
ostream *output_stream ;
} ;