3
Copyright (C) 1999 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 __DITHERWRAPPER_H
15
#define __DITHERWRAPPER_H
18
#include "../../mmx.h"
20
#include "../yuvPicture.h"
21
#include "../imageBase.h"
23
#include "ditherMMX.h"
24
#include "dither8Bit.h"
25
#include "dither16Bit.h"
26
#include "dither32Bit.h"
27
#include "ditherRGB_flipped.h"
28
#include "ditherRGB.h"
32
Wraps all calls to software ditherer and the different
33
resolutions,mmx enhancements, and doublesize ditherers.
44
unsigned int greenMask;
45
unsigned int blueMask;
47
Dither8Bit* dither8Bit;
48
Dither16Bit* dither16Bit;
49
Dither32Bit* dither32Bit;
50
DitherRGB_flipped* ditherRGB_flipped;
54
DitherWrapper(int bpp,unsigned int redMask,
55
unsigned int greenMask,unsigned int blueMask,
56
unsigned char pixel[256]);
59
/* int getDitherSize(); */
60
/* void setDitherSize(int ditherMode); */
62
void doDither(YUVPicture* pic,int depth,int imageMode,
63
unsigned char* dest,int offset);
67
void doDitherYUV(YUVPicture* pic,int depth,int imageMode,
68
unsigned char* dest,int offset);
69
void doDitherRGB(YUVPicture* pic,int depth,int imageMode,
70
unsigned char* dest,int offset);
71
void doDitherRGB_NORMAL(YUVPicture* pic,int depth,int imageMode,
72
unsigned char* dest,int offset);
73
void doDitherRGB_FLIPPED(YUVPicture* pic,int depth,int imageMode,
74
unsigned char* dest,int offset);
76
void doDither_std(YUVPicture* pic,int depth,unsigned char* dest,int offset);
77
void doDither_x2(YUVPicture* pic,int depth,unsigned char* dest,int offset);