Path: blob/master/src/java.desktop/share/native/libawt/java2d/loops/Any4Byte.c
41159 views
/*1* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425#include <string.h>2627#include "Any4Byte.h"2829#include "AlphaMath.h"30#include "IntDcm.h"3132/*33* This file declares, registers, and defines the various graphics34* primitive loops to manipulate surfaces of type "Any4Byte".35*36* See also LoopMacros.h37*/3839RegisterFunc RegisterAny4Byte;4041DECLARE_SOLID_FILLRECT(Any4Byte);42DECLARE_SOLID_FILLSPANS(Any4Byte);43DECLARE_SOLID_PARALLELOGRAM(Any4Byte);44DECLARE_SOLID_DRAWLINE(Any4Byte);45DECLARE_XOR_FILLRECT(Any4Byte);46DECLARE_XOR_FILLSPANS(Any4Byte);47DECLARE_XOR_DRAWLINE(Any4Byte);48DECLARE_SOLID_DRAWGLYPHLIST(Any4Byte);49DECLARE_XOR_DRAWGLYPHLIST(Any4Byte);5051NativePrimitive Any4BytePrimitives[] = {52REGISTER_SOLID_FILLRECT(Any4Byte),53REGISTER_SOLID_FILLSPANS(Any4Byte),54REGISTER_SOLID_PARALLELOGRAM(Any4Byte),55REGISTER_SOLID_LINE_PRIMITIVES(Any4Byte),56REGISTER_XOR_FILLRECT(Any4Byte),57REGISTER_XOR_FILLSPANS(Any4Byte),58REGISTER_XOR_LINE_PRIMITIVES(Any4Byte),59REGISTER_SOLID_DRAWGLYPHLIST(Any4Byte),60REGISTER_XOR_DRAWGLYPHLIST(Any4Byte),61};6263jboolean RegisterAny4Byte(JNIEnv *env)64{65return RegisterPrimitives(env, Any4BytePrimitives,66ArraySize(Any4BytePrimitives));67}6869DEFINE_ISOCOPY_BLIT(Any4Byte)7071DEFINE_ISOSCALE_BLIT(Any4Byte)7273DEFINE_ISOXOR_BLIT(Any4Byte)7475DEFINE_SOLID_FILLRECT(Any4Byte)7677DEFINE_SOLID_FILLSPANS(Any4Byte)7879DEFINE_SOLID_PARALLELOGRAM(Any4Byte)8081DEFINE_SOLID_DRAWLINE(Any4Byte)8283DEFINE_XOR_FILLRECT(Any4Byte)8485DEFINE_XOR_FILLSPANS(Any4Byte)8687DEFINE_XOR_DRAWLINE(Any4Byte)8889DEFINE_SOLID_DRAWGLYPHLIST(Any4Byte)9091DEFINE_XOR_DRAWGLYPHLIST(Any4Byte)929394