f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * This code is free software; you can redistribute it and/or modify it
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * under the terms of the GNU General Public License version 2 only, as
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * published by the Free Software Foundation. Oracle designates this
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * particular file as subject to the "Classpath" exception as provided
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * by Oracle in the LICENSE file that accompanied this code.
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * This code is distributed in the hope that it will be useful, but WITHOUT
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * version 2 for more details (a copy is included in the LICENSE file that
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * accompanied this code).
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * You should have received a copy of the GNU General Public License version
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * 2 along with this work; if not, write to the Free Software Foundation,
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * or visit www.oracle.com if you need additional information or have any
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * questions.
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * This file contains macro and type definitions used by the macros in
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers * LoopMacros.h to manipulate a surface of type "FourByteAbgr".
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers#define SetFourByteAbgrStoreVarsYPos(PREFIX, pRasInfo, y)
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers#define SetFourByteAbgrStoreVarsXPos(PREFIX, pRasInfo, x)
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers#define InitFourByteAbgrStoreVarsY(PREFIX, pRasInfo)
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers#define InitFourByteAbgrStoreVarsX(PREFIX, pRasInfo)
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers#define FourByteAbgrPixelFromArgb(pixel, rgb, pRasInfo) \
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers } while (0)
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers jubyte PREFIX ## 0, PREFIX ## 1, PREFIX ## 2, PREFIX ## 3;
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers#define ExtractFourByteAbgrPixelData(PIXEL, PREFIX) \
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers } while (0)
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers#define StoreFourByteAbgrPixelData(pPix, x, pixel, PREFIX) \
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers } while (0)
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers#define LoadFourByteAbgrTo1IntRgb(pRas, PREFIX, x, rgb) \
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers#define LoadFourByteAbgrTo1IntArgb(pRas, PREFIX, x, argb) \
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers#define LoadFourByteAbgrTo3ByteRgb(pRas, PREFIX, x, r, g, b) \
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers } while (0)
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers#define LoadFourByteAbgrTo4ByteArgb(pRas, PREFIX, x, a, r, g, b) \
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers LoadFourByteAbgrTo3ByteRgb(pRas, PREFIX, x, r, g, b); \
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers } while (0)
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers#define StoreFourByteAbgrFrom1IntRgb(pRas, PREFIX, x, rgb) \
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers } while (0)
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers#define StoreFourByteAbgrFrom1IntArgb(pRas, PREFIX, x, argb) \
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers } while (0)
f9fbec18f5b458b560ecf45d3db8e8bd56bf6942mcpowers#define StoreFourByteAbgrFrom3ByteRgb(pRas, PREFIX, x, r, g, b) \
b = MUL8(a, b); \
g = MUL8(a, g); \
r = MUL8(a, r); \
a = ComposeIntDcmComponents1234(a, r, g, b); \
(pRGB)[i] = a; \