2362N/A * Copyright (c) 1998, 2003, 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 * mlib_convMxN_8nw - convolve a 8-bit image, MxN kernel, 0N/A * mlib_status mlib_convMxNnw_u8(mlib_image *dst, 0N/A * const mlib_image *src, 0N/A * const mlib_s32 *skernel, 0N/A * mlib_s32 discardbits, 0N/A * src Ptr to source image structure 0N/A * dst Ptr to destination image structure 0N/A * khgt Kernel height (# of rows) 0N/A * kwid Kernel width (# of cols) 0N/A * skernel Ptr to convolution kernel 0N/A * discardbits The number of LSBits of the 32-bit accumulator that 0N/A * are discarded when the 32-bit accumulator is converted 0N/A * to 16-bit output data; discardbits must be 1-15 (it 0N/A * cannot be zero). Same as exponent N for scalefac=2**N. 0N/A * cmask Channel mask to indicate the channels to be convolved. 0N/A * Each bit of which represents a channel in the image. The 0N/A * channels corresponded to 1 bits are those to be processed. 0N/A * A 2-D convolution (MxN kernel) for 8-bit images. 0N/A/***************************************************************/ 0N/A/***************************************************************/ 0N/A 0x00400040,
0x00200020,
0x00100010,
0x00080008,
0N/A 0x00040004,
0x00020002,
0x00010001,
0x00000000,
0N/A 0x00000000,
0x00000000,
0x00000000,
0x00000000,
0N/A 0x00000000,
0x00000000,
0x00000000,
0x00000000 0N/A/***************************************************************/ 0N/A/***************************************************************/ 0N/A mlib_d64 s00,
s01,
s10,
s11,
s20,
s21,
s30,
s31,
s0,
s1,
s2,
s3;
0N/A for (i = 0; i < (n +
1); i++)
0N/A for (i = 0; i < (n +
1); i++)
0N/A for (l = 0; l < n; l++) {
0N/A for (l = 0; l < n; l++) {
0N/A else {
/* jk_size == 4 */ 0N/A /***************************************** 0N/A ***************************************** 0N/A ** Final iteration ** 0N/A ***************************************** 0N/A *****************************************/ 0N/A else {
/* if (jk_size == 4) */ 0N/A/***************************************************************/