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