jdk/src/share/native/sun/awt/medialib/mlib_c_ImageConv.h
author lana
Thu, 26 Dec 2013 12:04:16 -0800
changeset 23010 6dadb192ad81
parent 15628 228422512f97
permissions -rw-r--r--
8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013 Summary: updated files with 2011, 2012 and 2013 years according to the file's last updated date Reviewed-by: tbell, lancea, chegar
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
23010
6dadb192ad81 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents: 15628
diff changeset
     2
 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
#ifndef __MLIB_C_IMAGECONV_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#define __MLIB_C_IMAGECONV_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
#ifdef __cplusplus
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
extern "C" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#endif /* __cplusplus */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
15628
228422512f97 8005129: [parfait] #1122 - #1130 native/sun/awt/medialib/mlib_Image*.c Memory leak of pointer 'k' allocated with mlib_malloc
jgodinez
parents: 5506
diff changeset
    34
// Shared macro defined for cleanup of allocated memory.
228422512f97 8005129: [parfait] #1122 - #1130 native/sun/awt/medialib/mlib_Image*.c Memory leak of pointer 'k' allocated with mlib_malloc
jgodinez
parents: 5506
diff changeset
    35
#ifndef FREE_AND_RETURN_STATUS
228422512f97 8005129: [parfait] #1122 - #1130 native/sun/awt/medialib/mlib_Image*.c Memory leak of pointer 'k' allocated with mlib_malloc
jgodinez
parents: 5506
diff changeset
    36
#define FREE_AND_RETURN_STATUS \
228422512f97 8005129: [parfait] #1122 - #1130 native/sun/awt/medialib/mlib_Image*.c Memory leak of pointer 'k' allocated with mlib_malloc
jgodinez
parents: 5506
diff changeset
    37
{ \
228422512f97 8005129: [parfait] #1122 - #1130 native/sun/awt/medialib/mlib_Image*.c Memory leak of pointer 'k' allocated with mlib_malloc
jgodinez
parents: 5506
diff changeset
    38
if (pbuff != buff) mlib_free(pbuff); \
228422512f97 8005129: [parfait] #1122 - #1130 native/sun/awt/medialib/mlib_Image*.c Memory leak of pointer 'k' allocated with mlib_malloc
jgodinez
parents: 5506
diff changeset
    39
if (k != akernel) mlib_free(k); \
228422512f97 8005129: [parfait] #1122 - #1130 native/sun/awt/medialib/mlib_Image*.c Memory leak of pointer 'k' allocated with mlib_malloc
jgodinez
parents: 5506
diff changeset
    40
return status; \
228422512f97 8005129: [parfait] #1122 - #1130 native/sun/awt/medialib/mlib_Image*.c Memory leak of pointer 'k' allocated with mlib_malloc
jgodinez
parents: 5506
diff changeset
    41
}
228422512f97 8005129: [parfait] #1122 - #1130 native/sun/awt/medialib/mlib_Image*.c Memory leak of pointer 'k' allocated with mlib_malloc
jgodinez
parents: 5506
diff changeset
    42
#endif /* FREE_AND_RETURN_STATUS */
228422512f97 8005129: [parfait] #1122 - #1130 native/sun/awt/medialib/mlib_Image*.c Memory leak of pointer 'k' allocated with mlib_malloc
jgodinez
parents: 5506
diff changeset
    43
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
mlib_status mlib_c_conv2x2ext_s16(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
                                  const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
                                  mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
                                  mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
                                  mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
                                  mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
                                  const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
                                  mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
                                  mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
mlib_status mlib_c_conv2x2ext_u16(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
                                  const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
                                  mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
                                  mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
                                  mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
                                  mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
                                  const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
                                  mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
                                  mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
mlib_status mlib_c_conv2x2ext_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
                                 mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
                                 mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
                                 mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
                                 mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
                                 const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
mlib_status mlib_c_conv2x2nw_s16(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
                                 const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
mlib_status mlib_c_conv2x2nw_u16(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
                                 const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
mlib_status mlib_c_conv2x2nw_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
                                const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
                                const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
                                mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
                                mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
mlib_status mlib_c_conv3x3ext_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
                                 mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
                                 mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
                                 mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
                                 mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
                                 const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
mlib_status mlib_c_conv3x3nw_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
                                const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
                                const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
                                mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
                                mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
mlib_status mlib_c_conv4x4ext_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
                                 mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
                                 mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
                                 mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
                                 mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
                                 const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
mlib_status mlib_c_conv4x4nw_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
                                const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
                                const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
                                mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
                                mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
mlib_status mlib_c_conv5x5ext_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
                                 mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
                                 mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
                                 mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
                                 mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
                                 const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
mlib_status mlib_c_conv5x5nw_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
                                const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
                                const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
                                mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
                                mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
mlib_status mlib_c_conv7x7ext_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
                                 mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
                                 mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
                                 mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
                                 mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
                                 const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
mlib_status mlib_c_conv7x7nw_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
                                const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
                                const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
                                mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
                                mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
mlib_status mlib_c_convMxNnw_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
                                const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
                                const mlib_s32   *kernel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
                                mlib_s32         m,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
                                mlib_s32         n,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
                                mlib_s32         dm,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
                                mlib_s32         dn,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
                                mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
                                mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
mlib_status mlib_c_convMxNext_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
                                 const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
                                 mlib_s32         m,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
                                 mlib_s32         n,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
                                 mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
                                 mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
                                 mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
                                 mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
#if ! defined ( __sparc ) /* for x86, using integer multiplies is faster */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
mlib_status mlib_i_conv3x3ext_s16(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
                                  const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
                                  mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
                                  mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
                                  mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
                                  mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
                                  const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
                                  mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
                                  mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
mlib_status mlib_i_conv3x3ext_u16(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
                                  const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
                                  mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
                                  mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
                                  mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
                                  mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
                                  const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
                                  mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
                                  mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
mlib_status mlib_i_conv3x3ext_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
                                 mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
                                 mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
                                 mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
                                 mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
                                 const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
mlib_status mlib_i_conv3x3nw_s16(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
                                 const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
mlib_status mlib_i_conv3x3nw_u16(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
                                 const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
mlib_status mlib_i_conv3x3nw_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
                                const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
                                const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
                                mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
                                mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
mlib_status mlib_i_conv5x5ext_s16(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
                                  const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
                                  mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
                                  mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
                                  mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
                                  mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
                                  const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
                                  mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
                                  mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
mlib_status mlib_i_conv5x5ext_u16(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
                                  const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
                                  mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
                                  mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
                                  mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
                                  mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
                                  const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
                                  mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
                                  mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
mlib_status mlib_i_conv5x5ext_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
                                 mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
                                 mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
                                 mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
                                 mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
                                 const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
mlib_status mlib_i_conv5x5nw_s16(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
                                 const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
mlib_status mlib_i_conv5x5nw_u16(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
                                 const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
mlib_status mlib_i_conv5x5nw_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
                                const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
                                const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
                                mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
                                mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
mlib_status mlib_i_convMxNnw_s16(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
                                 const mlib_s32   *kernel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
                                 mlib_s32         m,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
                                 mlib_s32         n,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
                                 mlib_s32         dm,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
                                 mlib_s32         dn,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
mlib_status mlib_i_convMxNnw_u16(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
                                 const mlib_s32   *kernel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
                                 mlib_s32         m,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
                                 mlib_s32         n,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
                                 mlib_s32         dm,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
                                 mlib_s32         dn,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
mlib_status mlib_i_convMxNnw_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
                                const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
                                const mlib_s32   *kernel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
                                mlib_s32         m,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
                                mlib_s32         n,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
                                mlib_s32         dm,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
                                mlib_s32         dn,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
                                mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
                                mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
mlib_status mlib_i_convMxNext_u8(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
                                 const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
                                 const mlib_s32   *kern,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
                                 mlib_s32         m,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
                                 mlib_s32         n,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
                                 mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
                                 mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
                                 mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
                                 mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
                                 mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
                                 mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
mlib_status mlib_i_convMxNext_s16(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
                                  const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
                                  const mlib_s32   *kernel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
                                  mlib_s32         m,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
                                  mlib_s32         n,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
                                  mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
                                  mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
                                  mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
                                  mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
                                  mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
                                  mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
mlib_status mlib_i_convMxNext_u16(mlib_image       *dst,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
                                  const mlib_image *src,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
                                  const mlib_s32   *kernel,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
                                  mlib_s32         m,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
                                  mlib_s32         n,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
                                  mlib_s32         dx_l,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
                                  mlib_s32         dx_r,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
                                  mlib_s32         dy_t,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
                                  mlib_s32         dy_b,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
                                  mlib_s32         scale,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
                                  mlib_s32         cmask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
#endif /* ! defined ( __sparc ) ( for x86, using integer multiplies is faster ) */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
#ifdef __cplusplus
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
#endif /* __cplusplus */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
#endif /* __MLIB_C_IMAGECONV_H */