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#include "Any4Byte.h"
0N/A#include "FourByteAbgr.h"
0N/A#include "AlphaMacros.h"
0N/A
0N/A#include "IntArgb.h"
0N/A#include "IntArgbBm.h"
0N/A#include "IntArgbPre.h"
0N/A#include "IntRgb.h"
0N/A#include "ThreeByteBgr.h"
0N/A#include "ByteGray.h"
0N/A#include "ByteIndexed.h"
0N/A
0N/A/*
0N/A * This file declares, registers, and defines the various graphics
0N/A * primitive loops to manipulate surfaces of type "FourByteAbgr".
0N/A *
0N/A * See also LoopMacros.h
0N/A */
0N/A
0N/ARegisterFunc RegisterFourByteAbgr;
0N/A
0N/ADECLARE_CONVERT_BLIT(FourByteAbgr, IntArgb);
0N/ADECLARE_CONVERT_BLIT(IntArgb, FourByteAbgr);
0N/ADECLARE_CONVERT_BLIT(IntRgb, FourByteAbgr);
0N/ADECLARE_CONVERT_BLIT(ThreeByteBgr, FourByteAbgr);
0N/ADECLARE_CONVERT_BLIT(ByteGray, FourByteAbgr);
0N/ADECLARE_CONVERT_BLIT(ByteIndexed, FourByteAbgr);
0N/ADECLARE_SCALE_BLIT(FourByteAbgr, IntArgb);
0N/ADECLARE_SCALE_BLIT(IntArgb, FourByteAbgr);
0N/ADECLARE_SCALE_BLIT(IntRgb, FourByteAbgr);
0N/ADECLARE_SCALE_BLIT(ThreeByteBgr, FourByteAbgr);
0N/ADECLARE_SCALE_BLIT(ByteGray, FourByteAbgr);
0N/ADECLARE_SCALE_BLIT(ByteIndexed, FourByteAbgr);
0N/ADECLARE_XPAR_CONVERT_BLIT(ByteIndexedBm, FourByteAbgr);
0N/ADECLARE_XPAR_SCALE_BLIT(ByteIndexedBm, FourByteAbgr);
0N/ADECLARE_XPAR_SCALE_BLIT(IntArgbBm, FourByteAbgr);
0N/ADECLARE_XPAR_BLITBG(ByteIndexedBm, FourByteAbgr);
0N/A
0N/ADECLARE_XOR_BLIT(IntArgb, FourByteAbgr);
0N/ADECLARE_SRC_MASKFILL(FourByteAbgr);
0N/ADECLARE_SRCOVER_MASKFILL(FourByteAbgr);
0N/ADECLARE_ALPHA_MASKFILL(FourByteAbgr);
0N/ADECLARE_SRCOVER_MASKBLIT(IntArgb, FourByteAbgr);
0N/ADECLARE_ALPHA_MASKBLIT(IntArgb, FourByteAbgr);
0N/ADECLARE_SRCOVER_MASKBLIT(IntArgbPre, FourByteAbgr);
0N/ADECLARE_ALPHA_MASKBLIT(IntArgbPre, FourByteAbgr);
0N/ADECLARE_ALPHA_MASKBLIT(IntRgb, FourByteAbgr);
0N/ADECLARE_SOLID_DRAWGLYPHLISTAA(FourByteAbgr);
0N/ADECLARE_SOLID_DRAWGLYPHLISTLCD(FourByteAbgr);
0N/A
0N/ADECLARE_TRANSFORMHELPER_FUNCS(FourByteAbgr);
0N/A
0N/ANativePrimitive FourByteAbgrPrimitives[] = {
0N/A REGISTER_ANY4BYTE_ISOCOPY_BLIT(FourByteAbgr),
0N/A REGISTER_ANY4BYTE_ISOSCALE_BLIT(FourByteAbgr),
0N/A REGISTER_CONVERT_BLIT(FourByteAbgr, IntArgb),
0N/A REGISTER_CONVERT_BLIT(IntArgb, FourByteAbgr),
0N/A REGISTER_CONVERT_BLIT(IntRgb, FourByteAbgr),
0N/A REGISTER_CONVERT_BLIT(ThreeByteBgr, FourByteAbgr),
0N/A REGISTER_CONVERT_BLIT(ByteGray, FourByteAbgr),
0N/A REGISTER_CONVERT_BLIT(ByteIndexed, FourByteAbgr),
0N/A REGISTER_SCALE_BLIT(FourByteAbgr, IntArgb),
0N/A REGISTER_SCALE_BLIT(IntArgb, FourByteAbgr),
0N/A REGISTER_SCALE_BLIT(IntRgb, FourByteAbgr),
0N/A REGISTER_SCALE_BLIT(ThreeByteBgr, FourByteAbgr),
0N/A REGISTER_SCALE_BLIT(ByteGray, FourByteAbgr),
0N/A REGISTER_SCALE_BLIT(ByteIndexed, FourByteAbgr),
0N/A REGISTER_XPAR_CONVERT_BLIT(ByteIndexedBm, FourByteAbgr),
0N/A REGISTER_XPAR_SCALE_BLIT(ByteIndexedBm, FourByteAbgr),
0N/A REGISTER_XPAR_SCALE_BLIT(IntArgbBm, FourByteAbgr),
0N/A REGISTER_XPAR_BLITBG(ByteIndexedBm, FourByteAbgr),
0N/A
0N/A REGISTER_XOR_BLIT(IntArgb, FourByteAbgr),
0N/A REGISTER_SRC_MASKFILL(FourByteAbgr),
0N/A REGISTER_SRCOVER_MASKFILL(FourByteAbgr),
0N/A REGISTER_ALPHA_MASKFILL(FourByteAbgr),
0N/A REGISTER_SRCOVER_MASKBLIT(IntArgb, FourByteAbgr),
0N/A REGISTER_ALPHA_MASKBLIT(IntArgb, FourByteAbgr),
0N/A REGISTER_SRCOVER_MASKBLIT(IntArgbPre, FourByteAbgr),
0N/A REGISTER_ALPHA_MASKBLIT(IntArgbPre, FourByteAbgr),
0N/A REGISTER_ALPHA_MASKBLIT(IntRgb, FourByteAbgr),
0N/A REGISTER_SOLID_DRAWGLYPHLISTAA(FourByteAbgr),
0N/A REGISTER_SOLID_DRAWGLYPHLISTLCD(FourByteAbgr),
0N/A
0N/A REGISTER_TRANSFORMHELPER_FUNCS(FourByteAbgr),
0N/A};
0N/A
0N/Ajboolean RegisterFourByteAbgr(JNIEnv *env)
0N/A{
0N/A return RegisterPrimitives(env, FourByteAbgrPrimitives,
0N/A ArraySize(FourByteAbgrPrimitives));
0N/A}
0N/A
0N/Ajint PixelForFourByteAbgr(SurfaceDataRasInfo *pRasInfo, jint rgb)
0N/A{
0N/A return ((rgb << 8) | (((juint) rgb) >> 24));
0N/A}
0N/A
0N/ADEFINE_CONVERT_BLIT(FourByteAbgr, IntArgb, 1IntArgb)
0N/A
0N/ADEFINE_CONVERT_BLIT(IntArgb, FourByteAbgr, 4ByteArgb)
0N/A
0N/ADEFINE_CONVERT_BLIT(IntRgb, FourByteAbgr, 3ByteRgb)
0N/A
0N/ADEFINE_CONVERT_BLIT(ThreeByteBgr, FourByteAbgr, 3ByteRgb)
0N/A
0N/ADEFINE_CONVERT_BLIT(ByteGray, FourByteAbgr, 3ByteRgb)
0N/A
0N/ADEFINE_CONVERT_BLIT_LUT8(ByteIndexed, FourByteAbgr, ConvertOnTheFly)
0N/A
0N/ADEFINE_SCALE_BLIT(FourByteAbgr, IntArgb, 1IntArgb)
0N/A
0N/ADEFINE_SCALE_BLIT(IntArgb, FourByteAbgr, 4ByteArgb)
0N/A
0N/ADEFINE_SCALE_BLIT(IntRgb, FourByteAbgr, 3ByteRgb)
0N/A
0N/ADEFINE_SCALE_BLIT(ThreeByteBgr, FourByteAbgr, 3ByteRgb)
0N/A
0N/ADEFINE_SCALE_BLIT(ByteGray, FourByteAbgr, 3ByteRgb)
0N/A
0N/ADEFINE_SCALE_BLIT_LUT8(ByteIndexed, FourByteAbgr, ConvertOnTheFly)
0N/A
0N/ADEFINE_XPAR_CONVERT_BLIT_LUT8(ByteIndexedBm, FourByteAbgr, ConvertOnTheFly)
0N/A
0N/ADEFINE_XPAR_SCALE_BLIT_LUT8(ByteIndexedBm, FourByteAbgr, ConvertOnTheFly)
0N/A
0N/ADEFINE_XPAR_SCALE_BLIT(IntArgbBm, FourByteAbgr, 1IntRgb)
0N/A
0N/ADEFINE_XPAR_BLITBG_LUT8(ByteIndexedBm, FourByteAbgr, ConvertOnTheFly)
0N/A
0N/ADEFINE_XOR_BLIT(IntArgb, FourByteAbgr, Any4Byte)
0N/A
0N/ADEFINE_SRC_MASKFILL(FourByteAbgr, 4ByteArgb)
0N/A
0N/ADEFINE_SRCOVER_MASKFILL(FourByteAbgr, 4ByteArgb)
0N/A
0N/ADEFINE_ALPHA_MASKFILL(FourByteAbgr, 4ByteArgb)
0N/A
0N/ADEFINE_SRCOVER_MASKBLIT(IntArgb, FourByteAbgr, 4ByteArgb)
0N/A
0N/ADEFINE_ALPHA_MASKBLIT(IntArgb, FourByteAbgr, 4ByteArgb)
0N/A
0N/ADEFINE_SRCOVER_MASKBLIT(IntArgbPre, FourByteAbgr, 4ByteArgb)
0N/A
0N/ADEFINE_ALPHA_MASKBLIT(IntArgbPre, FourByteAbgr, 4ByteArgb)
0N/A
0N/ADEFINE_ALPHA_MASKBLIT(IntRgb, FourByteAbgr, 4ByteArgb)
0N/A
0N/ADEFINE_SOLID_DRAWGLYPHLISTAA(FourByteAbgr, 4ByteArgb)
0N/A
0N/ADEFINE_SOLID_DRAWGLYPHLISTLCD(FourByteAbgr, 4ByteArgb)
0N/A
0N/ADEFINE_TRANSFORMHELPERS(FourByteAbgr)