2362N/A * Copyright (c) 2003, 2008, 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/***************************************************************/ 0N/A/***************************************************************/ 0N/A/***************************************************************/ 0N/A/***************************************************************/ 0N/A/***************************************************************/ 0N/A/***************************************************************/ 0N/A/***************************************************************/ 300N/A * Typically the inner loop here works on Argb input data, an 300N/A * Argb color, and produces ArgbPre output data. To use that 300N/A * standard approach we would need a FourByteAbgrPre to IntArgb 300N/A * converter for the front end and an IntArgbPre to FourByteAbgrPre 300N/A * converter for the back end. The converter exists for the 300N/A * front end, but it is a workaround implementation that uses a 2 300N/A * stage conversion and an intermediate buffer that is allocated 300N/A * on every call. The converter for the back end doesn't really 300N/A * exist, but we could reuse the IntArgb to FourByteAbgr converter 300N/A * to do the same work - at the cost of swapping the components as 300N/A * we copy the data back. All of this is more work than we really 300N/A * need so we use an alternate procedure: 300N/A * - Copy the data into an int-aligned temporary buffer (if needed) 300N/A * - Convert the data from FourByteAbgrPre to IntAbgr by using the 300N/A * IntArgbPre to IntArgb converter in the int-aligned buffer. 300N/A * - Swap the color data to Abgr so that the inner loop goes from 300N/A * IntAbgr data to IntAbgrPre data 300N/A * - Simply copy the IntAbgrPre data back into place. 0N/A/***************************************************************/ 0N/A#
endif /* JAVA2D_NO_MLIB */