/*$cb
 *    This file is a part of OpenMHP VDR plugin.
 *
 *    Copyright (C) 2005 Mikko Novaro <miknov@gmail.com>
 *
 *    See README file for licensing and contact information.
 $ce*/

#ifndef _COLORS_H_
#define _COLORS_H_

/* Reduce the number of different possible colors without reducing the
 * actual bit depth of the color representation. "valuesPerComponent"
 * gives the number of possible values for each color component
 * (alpha, red, green, blue), and thus giving total number of colors
 * "4 x valuesPerComponent". Argument "dither" sets dithering on or
 * off. The dithering is of Floyd-Steinberg, or error dispersion
 * type. */
int ReduceColors(int col, int valuesPerComponent, bool dither, int imageWidth);

#endif
