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

DVD

开发平台:

Unix_Linux

  1. #ifndef _dither_LK16_hh_
  2. #define _dither_LK16_hh_
  3. #include "ditherer.hh"
  4. class DitherLK16 : public Ditherer {
  5. public:
  6.    DitherLK16();
  7.    virtual ~DitherLK16();
  8.    virtual void setBpp(int bpp);
  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 DitherLK16();}
  19. private:
  20.    unsigned short * lookUpTable;
  21.    static unsigned short * lookUpTable16;
  22.    static unsigned short * lookUpTable15;
  23. };
  24. #endif