jdk/src/share/native/sun/awt/medialib/mlib_c_ImageConv_f.c
author jgodinez
Fri, 08 Feb 2013 11:25:42 -0800
changeset 15628 228422512f97
parent 5506 202f599c92aa
permissions -rw-r--r--
8005129: [parfait] #1122 - #1130 native/sun/awt/medialib/mlib_Image*.c Memory leak of pointer 'k' allocated with mlib_malloc Reviewed-by: prr, vadim Contributed-by: jia-hong.chen@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 2003, 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
#include "mlib_image.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#include "mlib_ImageConv.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#include "mlib_c_ImageConv.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#define MLIB_PARAMS_CONV_NW                                     \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
  mlib_image       *dst,                                        \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
  const mlib_image *src,                                        \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
  const mlib_s32   *kern,                                       \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
  mlib_s32         scale,                                       \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
  mlib_s32         cmask
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
#define MLIB_CALL_PARAMS_CONV_NW                                \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
  dst, src, kern, scale, cmask
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
#define MLIB_PARAMS_CONV_EXT                                    \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
  mlib_image       *dst,                                        \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
  const mlib_image *src,                                        \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
  mlib_s32         dx_l,                                        \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
  mlib_s32         dx_r,                                        \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
  mlib_s32         dy_t,                                        \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
  mlib_s32         dy_b,                                        \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
  const mlib_s32   *kern,                                       \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
  mlib_s32         scale,                                       \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
  mlib_s32         cmask
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
#define MLIB_CALL_PARAMS_CONV_EXT                               \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
  dst, src, dx_l, dx_r, dy_t, dy_b, kern, scale, cmask
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
#define MLIB_PARAMS_CONV_MN_NW                                  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
  mlib_image *dst,                                              \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
  const mlib_image *src,                                        \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
  const mlib_s32   *kern,                                       \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
  mlib_s32         m,                                           \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
  mlib_s32         n,                                           \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
  mlib_s32         dm,                                          \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
  mlib_s32         dn,                                          \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
  mlib_s32         scale,                                       \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
  mlib_s32         cmask
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
#define MLIB_CALL_PARAMS_CONV_MN_NW                             \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
  dst, src, kern, m, n, dm, dn, scale, cmask
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
#define MLIB_PARAMS_CONV_MN_EXT                                 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
  mlib_image       *dst,                                        \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
  const mlib_image *src,                                        \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
  const mlib_s32   *kern,                                       \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
  mlib_s32         m,                                           \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
  mlib_s32         n,                                           \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
  mlib_s32         dx_l,                                        \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
  mlib_s32         dx_r,                                        \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
  mlib_s32         dy_t,                                        \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
  mlib_s32         dy_b,                                        \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
  mlib_s32         scale,                                       \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
  mlib_s32         cmask
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
#define MLIB_CALL_PARAMS_CONV_MN_EXT                            \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
  dst, src, kern, m, n, dx_l, dx_r, dy_t, dy_b, scale, cmask
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
mlib_status mlib_conv2x2nw_u8(MLIB_PARAMS_CONV_NW)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
  return mlib_c_conv2x2nw_u8(MLIB_CALL_PARAMS_CONV_NW);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
mlib_status mlib_conv3x3nw_u8(MLIB_PARAMS_CONV_NW)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
#ifdef __sparc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
  return mlib_c_conv3x3nw_u8(MLIB_CALL_PARAMS_CONV_NW);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
#else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
  if (mlib_ImageConvVersion(3, 3, scale, MLIB_BYTE) == 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
    return mlib_c_conv3x3nw_u8(MLIB_CALL_PARAMS_CONV_NW);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
    return mlib_i_conv3x3nw_u8(MLIB_CALL_PARAMS_CONV_NW);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
#endif /* __sparc */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
mlib_status mlib_conv4x4nw_u8(MLIB_PARAMS_CONV_NW)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
  return mlib_c_conv4x4nw_u8(MLIB_CALL_PARAMS_CONV_NW);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
mlib_status mlib_conv5x5nw_u8(MLIB_PARAMS_CONV_NW)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
#ifdef __sparc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
  return mlib_c_conv5x5nw_u8(MLIB_CALL_PARAMS_CONV_NW);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
#else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
  if (mlib_ImageConvVersion(5, 5, scale, MLIB_BYTE) == 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
    return mlib_c_conv5x5nw_u8(MLIB_CALL_PARAMS_CONV_NW);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
    return mlib_i_conv5x5nw_u8(MLIB_CALL_PARAMS_CONV_NW);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
#endif /* __sparc */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
mlib_status mlib_conv7x7nw_u8(MLIB_PARAMS_CONV_NW)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
  return mlib_c_conv7x7nw_u8(MLIB_CALL_PARAMS_CONV_NW);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
mlib_status mlib_convMxNnw_u8(MLIB_PARAMS_CONV_MN_NW)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
#ifdef __sparc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
  return mlib_c_convMxNnw_u8(MLIB_CALL_PARAMS_CONV_MN_NW);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
#else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
  if (mlib_ImageConvVersion(m, n, scale, MLIB_BYTE) == 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
    return mlib_c_convMxNnw_u8(MLIB_CALL_PARAMS_CONV_MN_NW);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
    return mlib_i_convMxNnw_u8(MLIB_CALL_PARAMS_CONV_MN_NW);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
#endif /* __sparc */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
mlib_status mlib_conv2x2ext_u8(MLIB_PARAMS_CONV_EXT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
  return mlib_c_conv2x2ext_u8(MLIB_CALL_PARAMS_CONV_EXT);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
mlib_status mlib_conv3x3ext_u8(MLIB_PARAMS_CONV_EXT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
#ifdef __sparc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
  return mlib_c_conv3x3ext_u8(MLIB_CALL_PARAMS_CONV_EXT);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
#else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
  if (mlib_ImageConvVersion(3, 3, scale, MLIB_BYTE) == 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
    return mlib_c_conv3x3ext_u8(MLIB_CALL_PARAMS_CONV_EXT);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    return mlib_i_conv3x3ext_u8(MLIB_CALL_PARAMS_CONV_EXT);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
#endif /* __sparc */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
mlib_status mlib_conv4x4ext_u8(MLIB_PARAMS_CONV_EXT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
  return mlib_c_conv4x4ext_u8(MLIB_CALL_PARAMS_CONV_EXT);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
mlib_status mlib_conv5x5ext_u8(MLIB_PARAMS_CONV_EXT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
#ifdef __sparc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
  return mlib_c_conv5x5ext_u8(MLIB_CALL_PARAMS_CONV_EXT);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
#else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
  if (mlib_ImageConvVersion(5, 5, scale, MLIB_BYTE) == 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    return mlib_c_conv5x5ext_u8(MLIB_CALL_PARAMS_CONV_EXT);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    return mlib_i_conv5x5ext_u8(MLIB_CALL_PARAMS_CONV_EXT);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
#endif /* __sparc */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
mlib_status mlib_conv7x7ext_u8(MLIB_PARAMS_CONV_EXT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
  return mlib_c_conv7x7ext_u8(MLIB_CALL_PARAMS_CONV_EXT);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
mlib_status mlib_convMxNext_u8(MLIB_PARAMS_CONV_MN_EXT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
#ifdef __sparc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
  return mlib_c_convMxNext_u8(MLIB_CALL_PARAMS_CONV_MN_EXT);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
#else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
  if (mlib_ImageConvVersion(m, n, scale, MLIB_BYTE) == 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    return mlib_c_convMxNext_u8(MLIB_CALL_PARAMS_CONV_MN_EXT);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
    return mlib_i_convMxNext_u8(MLIB_CALL_PARAMS_CONV_MN_EXT);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
#endif /* __sparc */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
mlib_status mlib_conv2x2nw_s16(MLIB_PARAMS_CONV_NW)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
  return mlib_c_conv2x2nw_s16(MLIB_CALL_PARAMS_CONV_NW);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
mlib_status mlib_conv2x2nw_u16(MLIB_PARAMS_CONV_NW)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
  return mlib_c_conv2x2nw_u16(MLIB_CALL_PARAMS_CONV_NW);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
mlib_status mlib_conv2x2ext_s16(MLIB_PARAMS_CONV_EXT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
  return mlib_c_conv2x2ext_s16(MLIB_CALL_PARAMS_CONV_EXT);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
/***************************************************************/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
mlib_status mlib_conv2x2ext_u16(MLIB_PARAMS_CONV_EXT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
  return mlib_c_conv2x2ext_u16(MLIB_CALL_PARAMS_CONV_EXT);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
/***************************************************************/