~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to mpeglib/lib/util/render/dither/dither32Bit.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  dither 32 bit depth yuv images
 
3
  Copyright (C) 2000  Martin Vogt
 
4
 
 
5
  This program is free software; you can redistribute it and/or modify
 
6
  it under the terms of the GNU Library General Public License as published by
 
7
  the Free Software Foundation.
 
8
 
 
9
  For more information look at the file COPYRIGHT in this package
 
10
 
 
11
 */
 
12
 
 
13
#ifndef __DITHER32Bit_H
 
14
#define __DITHER32Bit_H
 
15
 
 
16
#include "colorTableHighBit.h"
 
17
 
 
18
class Dither32Bit {
 
19
 
 
20
  ColorTableHighBit* colorTableHighBit;
 
21
 
 
22
  TABTYPE *L_tab;
 
23
  TABTYPE *Cr_r_tab;
 
24
  TABTYPE *Cr_g_tab;
 
25
  TABTYPE *Cb_g_tab;
 
26
  TABTYPE *Cb_b_tab;
 
27
 
 
28
  PIXVAL *r_2_pix;
 
29
  PIXVAL *g_2_pix;
 
30
  PIXVAL *b_2_pix;
 
31
 
 
32
 public:
 
33
  Dither32Bit(unsigned int redMask,
 
34
              unsigned int greenMask,unsigned int blueMask);
 
35
  ~Dither32Bit();
 
36
 
 
37
  void ditherImageColor32(unsigned char* lum, 
 
38
                          unsigned char* cr, 
 
39
                          unsigned char* cb,
 
40
                          unsigned char* out,
 
41
                          int rows,
 
42
                          int cols,
 
43
                          int offset);
 
44
 
 
45
  void ditherImageTwox2Color32(unsigned char* lum,
 
46
                               unsigned char* cr,
 
47
                               unsigned char* cb,
 
48
                               unsigned char* out,
 
49
                               int rows,
 
50
                               int cols,
 
51
                               int mod);
 
52
 
 
53
};
 
54
 
 
55
#endif