diff options
Diffstat (limited to 'src/apps/mplayerc/jpeg.h')
-rw-r--r-- | src/apps/mplayerc/jpeg.h | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/apps/mplayerc/jpeg.h b/src/apps/mplayerc/jpeg.h index 4f2e4c8f4..89f96517d 100644 --- a/src/apps/mplayerc/jpeg.h +++ b/src/apps/mplayerc/jpeg.h @@ -25,57 +25,57 @@ class CJpegEncoder
{
- static const int ColorComponents = 3;
+ static const int ColorComponents = 3;
- int m_w, m_h;
- BYTE* m_p;
+ int m_w, m_h;
+ BYTE* m_p;
- unsigned int m_bbuff, m_bwidth;
- bool PutBit(int b, int n);
- void Flush();
- int GetBitWidth(short q);
+ unsigned int m_bbuff, m_bwidth;
+ bool PutBit(int b, int n);
+ void Flush();
+ int GetBitWidth(short q);
- void WriteSOI();
- void WriteDQT();
- void WriteSOF0();
- void WriteDHT();
- void WriteSOS();
- void WriteEOI();
+ void WriteSOI();
+ void WriteDQT();
+ void WriteSOF0();
+ void WriteDHT();
+ void WriteSOS();
+ void WriteEOI();
protected:
- virtual bool PutByte(BYTE b) = 0;
- virtual bool PutBytes(const void* pData, size_t len) = 0;
- virtual bool Encode(const BYTE* dib);
+ virtual bool PutByte(BYTE b) = 0;
+ virtual bool PutBytes(const void* pData, size_t len) = 0;
+ virtual bool Encode(const BYTE* dib);
public:
- CJpegEncoder();
+ CJpegEncoder();
};
class CJpegEncoderFile : public CJpegEncoder
{
- CString m_fn;
- FILE* m_file;
+ CString m_fn;
+ FILE* m_file;
protected:
- bool PutByte(BYTE b);
- bool PutBytes(const void* pData, size_t len);
+ bool PutByte(BYTE b);
+ bool PutBytes(const void* pData, size_t len);
public:
- CJpegEncoderFile(LPCTSTR fn);
+ CJpegEncoderFile(LPCTSTR fn);
- bool Encode(const BYTE* dib);
+ bool Encode(const BYTE* dib);
};
class CJpegEncoderMem : public CJpegEncoder
{
- CAtlArray<BYTE>* m_pdata;
+ CAtlArray<BYTE>* m_pdata;
protected:
- bool PutByte(BYTE b);
- bool PutBytes(const void* pData, size_t len);
+ bool PutByte(BYTE b);
+ bool PutBytes(const void* pData, size_t len);
public:
- CJpegEncoderMem();
+ CJpegEncoderMem();
- bool Encode(const BYTE* dib, CAtlArray<BYTE>& data);
+ bool Encode(const BYTE* dib, CAtlArray<BYTE>& data);
};
|