equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2003, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 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 |
70 * the source image: |
70 * the source image: |
71 * |
71 * |
72 * dst[x][y][c] = table[c][src[x][y][c]] |
72 * dst[x][y][c] = table[c][src[x][y][c]] |
73 */ |
73 */ |
74 |
74 |
|
75 #include "jni.h" |
75 #include "mlib_image.h" |
76 #include "mlib_image.h" |
76 #include "mlib_ImageCheck.h" |
77 #include "mlib_ImageCheck.h" |
77 #include "mlib_ImageLookUp.h" |
78 #include "mlib_ImageLookUp.h" |
78 #include "mlib_v_ImageLookUpFunc.h" |
79 #include "mlib_v_ImageLookUpFunc.h" |
79 |
80 |
120 return MLIB_FAILURE; \ |
121 return MLIB_FAILURE; \ |
121 } \ |
122 } \ |
122 return MLIB_SUCCESS |
123 return MLIB_SUCCESS |
123 |
124 |
124 /***************************************************************/ |
125 /***************************************************************/ |
|
126 JNIEXPORT |
125 mlib_status mlib_ImageLookUp(mlib_image *dst, |
127 mlib_status mlib_ImageLookUp(mlib_image *dst, |
126 const mlib_image *src, |
128 const mlib_image *src, |
127 const void **table) |
129 const void **table) |
128 { |
130 { |
129 mlib_s32 slb, dlb, xsize, ysize, nchan, ichan, bitoff_src; |
131 mlib_s32 slb, dlb, xsize, ysize, nchan, ichan, bitoff_src; |