ditherer_lkbw.hh
上传用户:aoeyumen
上传日期:2007-01-06
资源大小:3329k
文件大小:1k
源码类别:

DVD

开发平台:

Unix_Linux

  1. #ifndef _dither_LKBW_hh_
  2. #define _dither_LKBW_hh_
  3. #include "ditherer.hh"
  4. class DitherLK16BW : public Ditherer {
  5. public:
  6.    DitherLK16BW();
  7.    virtual ~DitherLK16BW();
  8.    
  9.    virtual void dither(unsigned char * tY,
  10.                        unsigned char * tCr,
  11.                        unsigned char * tCb,
  12.                        unsigned char * dithered_img,
  13.                        int imgWidth,
  14.                        int imgHeight,
  15.                        int viewWidth,
  16.                        int viewHeight,
  17.                        int screenWidth);
  18.    static Ditherer * alloc() {return new DitherLK16BW();}
  19. private:
  20.    static unsigned short * lookUpTable;
  21. };
  22. #endif