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