📄 anydec.h
字号:
/*
/--------------------------------------------------------------------
|
| $Id: anydec.h,v 1.9 2000/03/31 11:53:29 Ulrich von Zadow Exp $
|
| Copyright (c) 1996-1998 Ulrich von Zadow
|
\--------------------------------------------------------------------
*/
#ifndef INCL_ANYDEC
#define INCL_ANYDEC
#ifndef INCL_PICDEC
#include "picdec.h"
#endif
#ifndef INCL_CONFIG
#include "config.h"
#endif
class CBitmap;
#ifdef SUPPORT_BMP
class CBmpDecoder;
#endif
#ifdef SUPPORT_PICT
class CPictDecoder;
#endif
#ifdef SUPPORT_TGA
class CTGADecoder;
#endif
#ifdef SUPPORT_TIFF
class CTIFFDecoder;
#endif
#ifdef SUPPORT_JPEG
class CJPEGDecoder;
#endif
#ifdef SUPPORT_PNG
class CPNGDecoder;
#endif
#ifdef SUPPORT_WEMF
class CWEMFDecoder;
#endif
#ifdef SUPPORT_PCX
class CPCXDecoder;
#endif
#ifdef SUPPORT_PGM
class CPGMDecoder;
#endif
//! Class which decodes pictures with any known format. It
//! auto-detects the format to use and delegates the work to one of
//! the other decoder classes.
//!
//! The interface to CAnyPicDecoder is the same as CPicDecoder.
class CAnyPicDecoder : public CPicDecoder
{
public:
//! Creates a decoder.
CAnyPicDecoder
();
//! Destroys the decoder.
~CAnyPicDecoder
();
//! Decodes a picture in a block of memory.
void MakeBmp
( CDataSource * pDataSrc,
CBmp * pBmp,
int BPPWanted
);
private:
// Check for file-format-specific data & return the file type if
// something fits.
int getFileType
( BYTE * pData,
int DataLen
);
long epsLongVal
( unsigned char *p
);
///////////////////////////////////////////////////////////////////
// Member variables.
#ifdef SUPPORT_BMP
CBmpDecoder * m_pBmpDec;
#endif
#ifdef SUPPORT_PICT
CPictDecoder * m_pPictDec;
#endif
#ifdef SUPPORT_TGA
CTGADecoder * m_pTGADec;
#endif
#ifdef SUPPORT_TIFF
CTIFFDecoder * m_pTIFFDec;
#endif
#ifdef SUPPORT_JPEG
CJPEGDecoder * m_pJPEGDec;
#endif
#ifdef SUPPORT_PNG
CPNGDecoder * m_pPNGDec;
#endif
#ifdef SUPPORT_WEMF
CWEMFDecoder * m_pWEMFDec;
#endif
#ifdef SUPPORT_PCX
CPCXDecoder * m_pPCXDec;
#endif
#ifdef SUPPORT_PGM
CPGMDecoder * m_pPGMDec;
#endif
};
#endif
/*
/--------------------------------------------------------------------
|
| $Log: anydec.h,v $
| Revision 1.9 2000/03/31 11:53:29 Ulrich von Zadow
| Added quantization support.
|
| Revision 1.8 2000/03/16 13:56:37 Ulrich von Zadow
| Added pgm decoder by Jose Miguel Buenaposada Biencinto
|
| Revision 1.7 2000/01/16 20:43:12 anonymous
| Removed MFC dependencies
|
| Revision 1.6 1999/12/08 15:39:45 Ulrich von Zadow
| Unix compatibility changes
|
|
\--------------------------------------------------------------------
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -