equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 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 |
54 * RESTRICTION |
54 * RESTRICTION |
55 * The type can be MLIB_BYTE, MLIB_SHORT, MLIB_USHORT or MLIB_INT. |
55 * The type can be MLIB_BYTE, MLIB_SHORT, MLIB_USHORT or MLIB_INT. |
56 */ |
56 */ |
57 |
57 |
58 #include <stdlib.h> |
58 #include <stdlib.h> |
|
59 #include "jni.h" |
59 #include "mlib_image.h" |
60 #include "mlib_image.h" |
60 #include "mlib_SysMath.h" |
61 #include "mlib_SysMath.h" |
61 #include "mlib_ImageConv.h" |
62 #include "mlib_ImageConv.h" |
62 |
63 |
63 /***************************************************************/ |
64 /***************************************************************/ |
76 } |
77 } |
77 |
78 |
78 #endif /* __sparc */ |
79 #endif /* __sparc */ |
79 |
80 |
80 /***************************************************************/ |
81 /***************************************************************/ |
|
82 JNIEXPORT |
81 mlib_status mlib_ImageConvKernelConvert(mlib_s32 *ikernel, |
83 mlib_status mlib_ImageConvKernelConvert(mlib_s32 *ikernel, |
82 mlib_s32 *iscale, |
84 mlib_s32 *iscale, |
83 const mlib_d64 *fkernel, |
85 const mlib_d64 *fkernel, |
84 mlib_s32 m, |
86 mlib_s32 m, |
85 mlib_s32 n, |
87 mlib_s32 n, |