5 static const int ColorComponents
= 3;
10 unsigned int m_bbuff
, m_bwidth
;
11 bool PutBit(int b
, int n
);
13 int GetBitWidth(short q
);
23 virtual bool PutByte(BYTE b
) = 0;
24 virtual bool PutBytes(const void* pData
, int len
) = 0;
25 virtual bool Encode(const BYTE
* dib
);
31 class CJpegEncoderFile
: public CJpegEncoder
38 bool PutBytes(const void* pData
, int len
);
41 CJpegEncoderFile(LPCTSTR fn
);
43 bool Encode(const BYTE
* dib
);
46 class CJpegEncoderMem
: public CJpegEncoder
48 CAtlArray
<BYTE
>* m_pdata
;
52 bool PutBytes(const void* pData
, int len
);
57 bool Encode(const BYTE
* dib
, CAtlArray
<BYTE
>& data
);