Display.h
上传用户:szklck
上传日期:2007-01-22
资源大小:925k
文件大小:1k
源码类别:

图形图像处理

开发平台:

Visual C++

  1. // Display.h: interface for the CDisplay class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_DISPLAY_H__5DCE47A3_490D_11D5_9DCC_5254AB2B9F00__INCLUDED_)
  5. #define AFX_DISPLAY_H__5DCE47A3_490D_11D5_9DCC_5254AB2B9F00__INCLUDED_
  6. #include "Idct.h" // Added by ClassView
  7. #include "Getbits.h" // Added by ClassView
  8. #include "Gethdr.h" // Added by ClassView
  9. #include "Getpic.h" // Added by ClassView
  10. #if _MSC_VER > 1000
  11. #pragma once
  12. #endif // _MSC_VER > 1000
  13. class CDisplay  
  14. {
  15. public:
  16. CString conclusion;
  17. CString szPictureFormat;
  18. CIdct m_idct;
  19. int nDitherType;
  20. PBITMAPINFO pbmi;
  21. HPALETTE hpal,hPalPrev;
  22. HDC hDC;
  23.     char  *image;
  24. CGetpic m_getpic;
  25. CGethdr m_gethdr;
  26. CGetbits m_getbits;
  27. void play_movie(CDC *pDC,CString szFileName);
  28. void exit_display(void);
  29. void dither(unsigned char *src[]);
  30. void init_dither(int bpp);
  31. void init_display();
  32. CDisplay();
  33. virtual ~CDisplay();
  34. private:
  35. void toDeleteNewSpace();
  36. void initdecoder(void);
  37. };
  38. #endif // !defined(AFX_DISPLAY_H__5DCE47A3_490D_11D5_9DCC_5254AB2B9F00__INCLUDED_)