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 "AnyShort.h"
0N/A#include "Ushort555Rgbx.h"
0N/A
0N/A#include "IntArgb.h"
0N/A#include "IntArgbBm.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 "Ushort555Rgbx".
0N/A *
0N/A * See also LoopMacros.h
0N/A */
0N/A
0N/ARegisterFunc RegisterUshort555Rgbx;
0N/A
0N/ADECLARE_CONVERT_BLIT(Ushort555Rgbx, IntArgb);
0N/ADECLARE_CONVERT_BLIT(IntArgb, Ushort555Rgbx);
0N/ADECLARE_CONVERT_BLIT(ThreeByteBgr, Ushort555Rgbx);
0N/ADECLARE_CONVERT_BLIT(ByteGray, Ushort555Rgbx);
0N/ADECLARE_CONVERT_BLIT(ByteIndexed, Ushort555Rgbx);
0N/ADECLARE_SCALE_BLIT(Ushort555Rgbx, IntArgb);
0N/ADECLARE_SCALE_BLIT(IntArgb, Ushort555Rgbx);
0N/ADECLARE_SCALE_BLIT(ThreeByteBgr, Ushort555Rgbx);
0N/ADECLARE_SCALE_BLIT(ByteGray, Ushort555Rgbx);
0N/ADECLARE_SCALE_BLIT(ByteIndexed, Ushort555Rgbx);
0N/ADECLARE_XPAR_CONVERT_BLIT(ByteIndexedBm, Ushort555Rgbx);
0N/ADECLARE_XPAR_SCALE_BLIT(ByteIndexedBm, Ushort555Rgbx);
0N/ADECLARE_XPAR_SCALE_BLIT(IntArgbBm, Ushort555Rgbx);
0N/ADECLARE_XPAR_BLITBG(ByteIndexedBm, Ushort555Rgbx);
0N/ADECLARE_XOR_BLIT(IntArgb, Ushort555Rgbx);
0N/ADECLARE_SOLID_DRAWGLYPHLISTAA(Ushort555Rgbx);
0N/ADECLARE_SOLID_DRAWGLYPHLISTLCD(Ushort555Rgbx);
0N/A
0N/ANativePrimitive Ushort555RgbxPrimitives[] = {
0N/A REGISTER_ANYSHORT_ISOCOPY_BLIT(Ushort555Rgbx),
0N/A REGISTER_ANYSHORT_ISOSCALE_BLIT(Ushort555Rgbx),
0N/A REGISTER_ANYSHORT_ISOXOR_BLIT(Ushort555Rgbx),
0N/A REGISTER_CONVERT_BLIT(Ushort555Rgbx, IntArgb),
0N/A REGISTER_CONVERT_BLIT(IntArgb, Ushort555Rgbx),
0N/A REGISTER_CONVERT_BLIT_EQUIV(IntRgb, Ushort555Rgbx,
0N/A NAME_CONVERT_BLIT(IntArgb, Ushort555Rgbx)),
0N/A REGISTER_CONVERT_BLIT(ThreeByteBgr, Ushort555Rgbx),
0N/A REGISTER_CONVERT_BLIT(ByteGray, Ushort555Rgbx),
0N/A REGISTER_CONVERT_BLIT(ByteIndexed, Ushort555Rgbx),
0N/A REGISTER_SCALE_BLIT(Ushort555Rgbx, IntArgb),
0N/A REGISTER_SCALE_BLIT(IntArgb, Ushort555Rgbx),
0N/A REGISTER_SCALE_BLIT_EQUIV(IntRgb, Ushort555Rgbx,
0N/A NAME_SCALE_BLIT(IntArgb, Ushort555Rgbx)),
0N/A REGISTER_SCALE_BLIT(ThreeByteBgr, Ushort555Rgbx),
0N/A REGISTER_SCALE_BLIT(ByteGray, Ushort555Rgbx),
0N/A REGISTER_SCALE_BLIT(ByteIndexed, Ushort555Rgbx),
0N/A REGISTER_XPAR_CONVERT_BLIT(ByteIndexedBm, Ushort555Rgbx),
0N/A REGISTER_XPAR_SCALE_BLIT(ByteIndexedBm, Ushort555Rgbx),
0N/A REGISTER_XPAR_SCALE_BLIT(IntArgbBm, Ushort555Rgbx),
0N/A REGISTER_XPAR_BLITBG(ByteIndexedBm, Ushort555Rgbx),
0N/A REGISTER_XOR_BLIT(IntArgb, Ushort555Rgbx),
0N/A REGISTER_SOLID_DRAWGLYPHLISTAA(Ushort555Rgbx),
0N/A REGISTER_SOLID_DRAWGLYPHLISTLCD(Ushort555Rgbx),
0N/A};
0N/A
0N/Ajboolean RegisterUshort555Rgbx(JNIEnv *env)
0N/A{
0N/A return RegisterPrimitives(env, Ushort555RgbxPrimitives,
0N/A ArraySize(Ushort555RgbxPrimitives));
0N/A}
0N/A
0N/Ajint PixelForUshort555Rgbx(SurfaceDataRasInfo *pRasInfo, jint rgb)
0N/A{
0N/A return IntArgbToUshort555Rgbx(rgb);
0N/A}
0N/A
0N/ADEFINE_CONVERT_BLIT(Ushort555Rgbx, IntArgb, 3ByteRgb)
0N/A
0N/ADEFINE_CONVERT_BLIT(IntArgb, Ushort555Rgbx, 1IntRgb)
0N/A
0N/ADEFINE_CONVERT_BLIT(ThreeByteBgr, Ushort555Rgbx, 3ByteRgb)
0N/A
0N/ADEFINE_CONVERT_BLIT(ByteGray, Ushort555Rgbx, 3ByteRgb)
0N/A
0N/ADEFINE_CONVERT_BLIT_LUT8(ByteIndexed, Ushort555Rgbx, PreProcessLut)
0N/A
0N/ADEFINE_SCALE_BLIT(Ushort555Rgbx, IntArgb, 3ByteRgb)
0N/A
0N/ADEFINE_SCALE_BLIT(IntArgb, Ushort555Rgbx, 1IntRgb)
0N/A
0N/ADEFINE_SCALE_BLIT(ThreeByteBgr, Ushort555Rgbx, 3ByteRgb)
0N/A
0N/ADEFINE_SCALE_BLIT(ByteGray, Ushort555Rgbx, 3ByteRgb)
0N/A
0N/ADEFINE_SCALE_BLIT_LUT8(ByteIndexed, Ushort555Rgbx, PreProcessLut)
0N/A
0N/ADEFINE_XPAR_CONVERT_BLIT_LUT8(ByteIndexedBm, Ushort555Rgbx, PreProcessLut)
0N/A
0N/ADEFINE_XPAR_SCALE_BLIT_LUT8(ByteIndexedBm, Ushort555Rgbx, PreProcessLut)
0N/A
0N/ADEFINE_XPAR_SCALE_BLIT(IntArgbBm, Ushort555Rgbx, 1IntRgb)
0N/A
0N/ADEFINE_XPAR_BLITBG_LUT8(ByteIndexedBm, Ushort555Rgbx, PreProcessLut)
0N/A
0N/ADEFINE_XOR_BLIT(IntArgb, Ushort555Rgbx, AnyShort)
0N/A
0N/ADEFINE_SOLID_DRAWGLYPHLISTAA(Ushort555Rgbx, 3ByteRgb)
0N/A
0N/ADEFINE_SOLID_DRAWGLYPHLISTLCD(Ushort555Rgbx, 3ByteRgb)