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 * This file is available under and governed by the GNU General Public 0N/A * License version 2 only, as published by the Free Software Foundation. 0N/A * However, the following notice accompanied the original version of this 0N/A * file and, per its terms, should not be removed: 4418N/A * Last changed in libpng 1.5.4 [July 7, 2011] 4418N/A * Copyright (c) 1998-2011 Glenn Randers-Pehrson 0N/A * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) 0N/A * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) 4418N/A * This code is released under the libpng license. 4418N/A * For conditions of distribution and use, see the disclaimer 0N/A/* Transform the data according to the user's wishes. The order of 0N/A * transformations is significant. 4418N/A /* png_uint_32 width; width of row */ 4418N/A /* png_size_t rowbytes; number of bytes in row */ 4418N/A /* png_byte color_type; color type of pixels */ 4418N/A /* png_byte bit_depth; bit depth of samples */ 4418N/A /* png_byte channels; number of channels (1-4) */ 4418N/A /* png_byte pixel_depth; bits per pixel (depth*channels) */ 0N/A/* Pack pixels into bytes. Pass the true bit depth in bit_depth. The 0N/A * row_info bit depth should be 8 (one pixel per byte). The channels 0N/A * should be 1 (this only happens on grayscale and paletted images). 0N/A/* Shift pixel values to take advantage of whole range. Pass the 0N/A * true number of bits in bit_depth. The row should be packed 0N/A * according to row_info->bit_depth. Thus, if you had a row of 0N/A * bit depth 4, but the pixels only had values from 0 to 7, you 0N/A * would pass 3 as bit_depth, and this routine would translate the 4418N/A /* With low row depths, could only be grayscale, so one channel */ 4418N/A /* This converts from ARGB to RGBA */ 4418N/A /* This converts from AARRGGBB to RRGGBBAA */ 4418N/A#
endif /* PNG_WRITE_16BIT_SUPPORTED */ 4418N/A /* This converts from AG to GA */ 4418N/A /* This converts from AAGG to GGAA */ 4418N/A#
endif /* PNG_WRITE_16BIT_SUPPORTED */ 4418N/A /* This inverts the alpha channel in RGBA */ 4418N/A /* This inverts the alpha channel in RRGGBBAA */ 4418N/A#
endif /* PNG_WRITE_16BIT_SUPPORTED */ 4418N/A /* This inverts the alpha channel in GA */ 4418N/A /* This inverts the alpha channel in GGAA */ 4418N/A#
endif /* PNG_WRITE_16BIT_SUPPORTED */ 4418N/A#
endif /* PNG_WRITE_TRANSFORMS_SUPPORTED */ 4418N/A/* Undoes intrapixel differencing */ 4418N/A#
endif /* PNG_WRITE_16BIT_SUPPORTED */ 0N/A#
endif /* PNG_MNG_FEATURES_SUPPORTED */ 0N/A#
endif /* PNG_WRITE_SUPPORTED */