equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1996, 1998, 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 |
29 */ |
29 */ |
30 |
30 |
31 #ifndef IMAGE_GLOBALS_H |
31 #ifndef IMAGE_GLOBALS_H |
32 #define IMAGE_GLOBALS_H |
32 #define IMAGE_GLOBALS_H |
33 |
33 |
|
34 #include "jni.h" |
34 |
35 |
35 /* Image Conversion function return codes. */ |
36 /* Image Conversion function return codes. */ |
36 #define SCALEFAILURE -1 |
37 #define SCALEFAILURE -1 |
37 #define SCALENOOP 0 |
38 #define SCALENOOP 0 |
38 #define SCALESUCCESS 1 |
39 #define SCALESUCCESS 1 |
142 * The function provided for constructing the ordered dithering error |
143 * The function provided for constructing the ordered dithering error |
143 * matrices based on a given quantum (i.e. the amplitude of the maximum |
144 * matrices based on a given quantum (i.e. the amplitude of the maximum |
144 * error values appearing in the matrix which should be the same as the |
145 * error values appearing in the matrix which should be the same as the |
145 * distance between adjacent allocated component values in the color cube). |
146 * distance between adjacent allocated component values in the color cube). |
146 */ |
147 */ |
147 extern void make_uns_ordered_dither_array(uns_ordered_dither_array oda, |
148 JNIEXPORT void make_uns_ordered_dither_array(uns_ordered_dither_array oda, |
148 int quantum); |
149 int quantum); |
149 extern void make_sgn_ordered_dither_array(char* oda, int errmin, int errmax); |
150 extern void make_sgn_ordered_dither_array(char* oda, int errmin, int errmax); |
150 |
151 |
151 /* |
152 /* |
152 * The function provided for calculating the contents of the ImgCMData |
153 * The function provided for calculating the contents of the ImgCMData |