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 * 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 * 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 * 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. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A * This file contains macros that are similar to those found in LoopMacros.h 0N/A * surfaces in the "ByteBinary" family. It also contains generalized versions 0N/A * of some macros that are used by the more specific ByteBinary surfaces. 0N/A/* REMIND: the ByteBinary store macros should probably do ordered dithering */ 0N/A }
while (--w > 0); \
0N/A }
while (--w > 0); \
0N/A }
while (--h > 0); \
0N/A }
while (--w > 0); \
0N/A }
while (--h > 0); \
0N/A * REMIND: we shouldn't be attempting to do antialiased text for the 0N/A * ByteBinary surfaces in the first place 0N/A /* assert(loadsrc); */ \
0N/A /* assert(loaddst); */ \
0N/A }
while (--w > 0); \
0N/A /* assert(loaddst); */ \
0N/A }
while (--w > 0); \
0N/A * The macros defined above use the following macro definitions supplied 0N/A * for the various ByteBinary-specific surface types to manipulate pixel data. 0N/A * In the macro names in the following definitions, the string <stype> 0N/A * is used as a place holder for the SurfaceType name (eg. ByteBinary2Bit). 0N/A * The macros above access these type specific macros using the ANSI 0N/A * CPP token concatenation operator "##". 0N/A * Declare<stype>InitialLoadVars Declare and initialize the variables used 0N/A * InitialLoad<stype> Store the current byte, fetch the next 0N/A * byte, and reset the bit offset 0N/A * ShiftBits<stype> Advance to the next pixel by adjusting 0N/A * the bit offset (1, 2, or 4 bits) 0N/A * FinalStore<stype> Store the current byte 0N/A * CurrentPixel<stype> Represents the current pixel by shifting 0N/A * the value with the current bit offset and 0N/A * then masking the value to either 1, 2, or 0N/A#
endif /* AnyByteBinary_h_Included */