src/java.desktop/share/native/libmlib_image/mlib_ImageConvMxN.c
branchihse-remove-mapfiles-branch
changeset 56110 e2bb6d2abb5d
parent 47216 71c04702a3d5
child 56721 01b558efd286
equal deleted inserted replaced
56109:5bf57be44328 56110:e2bb6d2abb5d
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    79  *      For data type MLIB_SHORT:  17 <= scale <= 32 (to be compatible with VIS version)
    79  *      For data type MLIB_SHORT:  17 <= scale <= 32 (to be compatible with VIS version)
    80  *      For data type MLIB_USHORT: 17 <= scale <= 32 (to be compatible with VIS version)
    80  *      For data type MLIB_USHORT: 17 <= scale <= 32 (to be compatible with VIS version)
    81  *      For data type MLIB_INT:    scale >= 0
    81  *      For data type MLIB_INT:    scale >= 0
    82  */
    82  */
    83 
    83 
       
    84 #include "jni.h"
    84 #include "mlib_image.h"
    85 #include "mlib_image.h"
    85 #include "mlib_ImageCheck.h"
    86 #include "mlib_ImageCheck.h"
    86 #include "mlib_ImageConv.h"
    87 #include "mlib_ImageConv.h"
    87 #include "mlib_ImageCreate.h"
    88 #include "mlib_ImageCreate.h"
    88 #include "mlib_c_ImageConv.h"
    89 #include "mlib_c_ImageConv.h"
    89 #include "mlib_ImageClipping.h"
    90 #include "mlib_ImageClipping.h"
    90 #include "mlib_ImageConvEdge.h"
    91 #include "mlib_ImageConvEdge.h"
    91 
    92 
    92 /***************************************************************/
    93 /***************************************************************/
       
    94 JNIEXPORT
    93 mlib_status mlib_ImageConvMxN(mlib_image       *dst,
    95 mlib_status mlib_ImageConvMxN(mlib_image       *dst,
    94                               const mlib_image *src,
    96                               const mlib_image *src,
    95                               const mlib_s32   *kernel,
    97                               const mlib_s32   *kernel,
    96                               mlib_s32         m,
    98                               mlib_s32         m,
    97                               mlib_s32         n,
    99                               mlib_s32         n,