src/java.desktop/share/native/libawt/awt/image/cvutils/img_colors.h
branchihse-remove-mapfiles-branch
changeset 56106 40e61db323c2
parent 47216 71c04702a3d5
child 56721 01b558efd286
equal deleted inserted replaced
56105:749e0ffa206f 56106:40e61db323c2
     1 /*
     1 /*
     2  * Copyright (c) 1996, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1996, 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
    21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    22  * or visit www.oracle.com if you need additional information or have any
    22  * or visit www.oracle.com if you need additional information or have any
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 
    25 
    26 extern void img_makePalette(int cmapsize, int tablesize, int lookupsize,
    26 #include "jni.h"
       
    27 
       
    28 JNIEXPORT void img_makePalette(int cmapsize, int tablesize, int lookupsize,
    27                             float lscale, float weight,
    29                             float lscale, float weight,
    28                             int prevclrs, int doMac,
    30                             int prevclrs, int doMac,
    29                             unsigned char *reds,
    31                             unsigned char *reds,
    30                             unsigned char *greens,
    32                             unsigned char *greens,
    31                             unsigned char *blues,
    33                             unsigned char *blues,