cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * Copyright © 2000 SuSE, Inc.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * Permission to use, copy, modify, distribute, and sell this software and its
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * documentation for any purpose is hereby granted without fee, provided that
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * the above copyright notice appear in all copies and that both that
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * copyright notice and this permission notice appear in supporting
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * documentation, and that the name of SuSE not be used in advertising or
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * publicity pertaining to distribution of the software without specific,
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * written prior permission. SuSE makes no representations about the
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * suitability of this software for any purpose. It is provided "as is"
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * without express or implied warranty.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * Author: Keith Packard, SuSE, Inc.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#define MI_MAX_INDEXED 256 /* XXX depth must be <= 8 */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#define miCvtR8G8B8to15(s) ((((s) >> 3) & 0x001f) | \
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#define miIndexToEnt15(mif,rgb15) ((mif)->ent[rgb15])
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#define miIndexToEnt24(mif,rgb24) miIndexToEnt15(mif,miCvtR8G8B8to15(rgb24))
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#define miIndexToEntY24(mif,rgb24) ((mif)->ent[CvtR8G8B8toY15(rgb24)])
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncmiPictureInit (ScreenPtr pScreen, PictFormatPtr formats, int nformats);
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncmiTrapezoidBounds (int ntrap, xTrapezoid *traps, BoxPtr box);
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncmiPointFixedBounds (int npoint, xPointFixed *points, BoxPtr bounds);
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncmiTriangleBounds (int ntri, xTriangle *tris, BoxPtr bounds);
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#endif /* _MIPICT_H_ */