src/java.desktop/share/native/libmlib_image/mlib_c_ImageLookUp.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) 1997, 2003, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 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_c_ImageLookUp.h"
    79 #include "mlib_c_ImageLookUp.h"
    79 
    80 
    80 /***************************************************************/
    81 /***************************************************************/
       
    82 JNIEXPORT
    81 mlib_status mlib_ImageLookUp(mlib_image       *dst,
    83 mlib_status mlib_ImageLookUp(mlib_image       *dst,
    82                              const mlib_image *src,
    84                              const mlib_image *src,
    83                              const void       **table)
    85                              const void       **table)
    84 {
    86 {
    85   mlib_s32   slb, dlb, xsize, ysize, nchan, ichan, bitoff_src;
    87   mlib_s32   slb, dlb, xsize, ysize, nchan, ichan, bitoff_src;