src/java.desktop/share/native/libawt/awt/image/dither.h
changeset 49440 396ea30afbd5
parent 47216 71c04702a3d5
child 56721 01b558efd286
equal deleted inserted replaced
49439:bf53d82a51e5 49440:396ea30afbd5
     1 /*
     1 /*
     2  * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 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
    27 #include <stdlib.h>
    27 #include <stdlib.h>
    28 #include <math.h>
    28 #include <math.h>
    29 #include <string.h>
    29 #include <string.h>
    30 
    30 
    31 #include "colordata.h"
    31 #include "colordata.h"
       
    32 #include "jni.h"
    32 
    33 
    33 #ifdef __cplusplus
    34 #ifdef __cplusplus
    34 extern "C" {
    35 extern "C" {
    35 #endif
    36 #endif
    36 
    37 
    37 extern sgn_ordered_dither_array std_img_oda_red;
    38 JNIEXPORT extern sgn_ordered_dither_array std_img_oda_red;
    38 extern sgn_ordered_dither_array std_img_oda_green;
    39 JNIEXPORT extern sgn_ordered_dither_array std_img_oda_green;
    39 extern sgn_ordered_dither_array std_img_oda_blue;
    40 JNIEXPORT extern sgn_ordered_dither_array std_img_oda_blue;
    40 extern int std_odas_computed;
    41 JNIEXPORT extern int std_odas_computed;
    41 
    42 
    42 void make_dither_arrays(int cmapsize, ColorData *cData);
    43 JNIEXPORT void JNICALL
    43 void initInverseGrayLut(int* prgb, int rgbsize, ColorData* cData);
    44 make_dither_arrays(int cmapsize, ColorData *cData);
       
    45 
       
    46 JNIEXPORT void JNICALL
       
    47 initInverseGrayLut(int* prgb, int rgbsize, ColorData* cData);
    44 
    48 
    45 /*
    49 /*
    46  * state info needed for breadth-first recursion of color cube from
    50  * state info needed for breadth-first recursion of color cube from
    47  * initial palette entries within the cube
    51  * initial palette entries within the cube
    48  */
    52  */