src/java.desktop/share/native/libawt/awt/image/cvutils/img_colors.c
changeset 49440 396ea30afbd5
parent 47216 71c04702a3d5
child 56721 01b558efd286
equal deleted inserted replaced
49439:bf53d82a51e5 49440:396ea30afbd5
     1 /*
     1 /*
     2  * Copyright (c) 1996, 2000, 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
    36 #include "jvm.h"
    36 #include "jvm.h"
    37 #include "jni_util.h"
    37 #include "jni_util.h"
    38 
    38 
    39 extern JavaVM *jvm;
    39 extern JavaVM *jvm;
    40 #endif
    40 #endif
       
    41 #include "img_colors.h"
    41 
    42 
    42 #define jio_fprintf fprintf
    43 #define jio_fprintf fprintf
    43 
    44 
    44 #define TRUE 1
    45 #define TRUE 1
    45 #define FALSE 0
    46 #define FALSE 0
   513             }
   514             }
   514         }
   515         }
   515     }
   516     }
   516 }
   517 }
   517 
   518 
   518 void
   519 JNIEXPORT void JNICALL
   519 img_makePalette(int cmapsize, int tablesize, int lookupsize,
   520 img_makePalette(int cmapsize, int tablesize, int lookupsize,
   520                 float lscale, float weight,
   521                 float lscale, float weight,
   521                 int prevclrs, int doMac,
   522                 int prevclrs, int doMac,
   522                 unsigned char *reds,
   523                 unsigned char *reds,
   523                 unsigned char *greens,
   524                 unsigned char *greens,