0N/A/*
2362N/A * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/A#ifndef ByteBinary4Bit_h_Included
0N/A#define ByteBinary4Bit_h_Included
0N/A
0N/A#include "AnyByteBinary.h"
0N/A
0N/A/*
0N/A * This file contains macro and type definitions used by the macros in
0N/A * LoopMacros.h to manipulate a surface of type "ByteBinary4Bit".
0N/A */
0N/A
0N/Atypedef jubyte ByteBinary4BitPixelType;
0N/Atypedef jubyte ByteBinary4BitDataType;
0N/A
0N/A#define ByteBinary4BitPixelStride 0
0N/A#define ByteBinary4BitPixelsPerByte 2
0N/A#define ByteBinary4BitBitsPerPixel 4
0N/A#define ByteBinary4BitMaxBitOffset 4
0N/A#define ByteBinary4BitPixelMask 0xf
0N/A
0N/A#define DeclareByteBinary4BitLoadVars DeclareByteBinaryLoadVars
0N/A#define DeclareByteBinary4BitStoreVars DeclareByteBinaryStoreVars
0N/A#define SetByteBinary4BitStoreVarsYPos SetByteBinaryStoreVarsYPos
0N/A#define SetByteBinary4BitStoreVarsXPos SetByteBinaryStoreVarsXPos
0N/A#define InitByteBinary4BitLoadVars InitByteBinaryLoadVars
0N/A#define InitByteBinary4BitStoreVarsY InitByteBinaryStoreVarsY
0N/A#define InitByteBinary4BitStoreVarsX InitByteBinaryStoreVarsX
0N/A#define NextByteBinary4BitStoreVarsY NextByteBinaryStoreVarsY
0N/A#define NextByteBinary4BitStoreVarsX NextByteBinaryStoreVarsX
0N/A
0N/A#define DeclareByteBinary4BitInitialLoadVars(pRasInfo, pRas, PREFIX, x) \
0N/A DeclareByteBinaryInitialLoadVars(ByteBinary4Bit, pRasInfo, pRas, PREFIX, x)
0N/A
0N/A#define InitialLoadByteBinary4Bit(pRas, PREFIX) \
0N/A InitialLoadByteBinary(ByteBinary4Bit, pRas, PREFIX)
0N/A
0N/A#define ShiftBitsByteBinary4Bit(PREFIX) \
0N/A ShiftBitsByteBinary(ByteBinary4Bit, PREFIX)
0N/A
0N/A#define FinalStoreByteBinary4Bit(pRas, PREFIX) \
0N/A FinalStoreByteBinary(ByteBinary4Bit, pRas, PREFIX)
0N/A
0N/A#define CurrentPixelByteBinary4Bit(PREFIX) \
0N/A CurrentPixelByteBinary(ByteBinary4Bit, PREFIX)
0N/A
0N/A
0N/A#define StoreByteBinary4BitPixel(pRas, x, pixel) \
0N/A StoreByteBinaryPixel(ByteBinary4Bit, pRas, x, pixel)
0N/A
0N/A#define StoreByteBinary4BitPixelData(pPix, x, pixel, PREFIX) \
0N/A StoreByteBinaryPixelData(ByteBinary4Bit, pPix, x, pixel, PREFIX)
0N/A
0N/A#define ByteBinary4BitPixelFromArgb(pixel, rgb, pRasInfo) \
0N/A ByteBinaryPixelFromArgb(ByteBinary4Bit, pixel, rgb, pRasInfo)
0N/A
0N/A#define XorByteBinary4BitPixelData(pDst, x, PREFIX, srcpixel, xorpixel, mask)\
0N/A XorByteBinaryPixelData(ByteBinary4Bit, pDst, x, PREFIX, \
0N/A srcpixel, xorpixel, mask)
0N/A
0N/A
0N/A#define LoadByteBinary4BitTo1IntRgb(pRas, PREFIX, x, rgb) \
0N/A LoadByteBinaryTo1IntRgb(ByteBinary4Bit, pRas, PREFIX, x, rgb)
0N/A
0N/A#define LoadByteBinary4BitTo1IntArgb(pRas, PREFIX, x, argb) \
0N/A LoadByteBinaryTo1IntArgb(ByteBinary4Bit, pRas, PREFIX, x, argb)
0N/A
0N/A#define LoadByteBinary4BitTo3ByteRgb(pRas, PREFIX, x, r, g, b) \
0N/A LoadByteBinaryTo3ByteRgb(ByteBinary4Bit, pRas, PREFIX, x, r, g, b)
0N/A
0N/A#define LoadByteBinary4BitTo4ByteArgb(pRas, PREFIX, x, a, r, g, b) \
0N/A LoadByteBinaryTo4ByteArgb(ByteBinary4Bit, pRas, PREFIX, x, a, r, g, b)
0N/A
0N/A#define StoreByteBinary4BitFrom1IntRgb(pRas, PREFIX, x, rgb) \
0N/A StoreByteBinaryFrom1IntRgb(ByteBinary4Bit, pRas, PREFIX, x, rgb)
0N/A
0N/A#define StoreByteBinary4BitFrom1IntArgb(pRas, PREFIX, x, argb) \
0N/A StoreByteBinaryFrom1IntArgb(ByteBinary4Bit, pRas, PREFIX, x, argb)
0N/A
0N/A#define StoreByteBinary4BitFrom3ByteRgb(pRas, PREFIX, x, r, g, b) \
0N/A StoreByteBinaryFrom3ByteRgb(ByteBinary4Bit, pRas, PREFIX, x, r, g, b)
0N/A
0N/A#define StoreByteBinary4BitFrom4ByteArgb(pRas, PREFIX, x, a, r, g, b) \
0N/A StoreByteBinaryFrom4ByteArgb(ByteBinary4Bit, pRas, PREFIX, x, a, r, g, b)
0N/A
0N/A
0N/A#define DeclareByteBinary4BitAlphaLoadData(PREFIX) \
0N/A DeclareByteBinaryAlphaLoadData(ByteBinary4Bit, PREFIX)
0N/A
0N/A#define InitByteBinary4BitAlphaLoadData(PREFIX, pRasInfo) \
0N/A InitByteBinaryAlphaLoadData(ByteBinary4Bit, PREFIX, pRasInfo)
0N/A
0N/A#define LoadAlphaFromByteBinary4BitFor4ByteArgb(pRas, PREFIX, COMP_PREFIX) \
0N/A LoadAlphaFromByteBinaryFor4ByteArgb(ByteBinary4Bit, pRas, PREFIX, \
0N/A COMP_PREFIX)
0N/A
0N/A#define Postload4ByteArgbFromByteBinary4Bit(pRas, PREFIX, COMP_PREFIX) \
0N/A Postload4ByteArgbFromByteBinary(ByteBinary4Bit, pRas, PREFIX, COMP_PREFIX)
0N/A
0N/A
0N/A#define ByteBinary4BitIsPremultiplied ByteBinaryIsPremultiplied
0N/A
0N/A#define StoreByteBinary4BitFrom4ByteArgbComps(pRas, PREFIX, x, COMP_PREFIX) \
0N/A StoreByteBinaryFrom4ByteArgbComps(ByteBinary4Bit, pRas, \
0N/A PREFIX, x, COMP_PREFIX)
0N/A
0N/A#endif /* ByteBinary4Bit_h_Included */