2
colorTables for 8 Bit depth
3
Copyright (C) 2000 Martin Vogt
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.
9
For more information look at the file COPYRIGHT in this package
14
#ifndef __COLORTABLE8BIT_H
15
#define __COLORTABLE8BIT_H
17
#include "ditherDef.h"
20
class ColorTable8Bit {
22
// Arrays holding quantized value ranged for lum, cr, and cb.
44
inline int* getLumValues() { return lum_values; }
45
inline int* getCrValues() { return cr_values; }
46
inline int* getCbValues() { return cb_values; }
48
void ConvertColor(unsigned int l, unsigned int cr, unsigned int cb,
49
unsigned char* r, unsigned char* g, unsigned char* b);