equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1996, 2012, 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 |
26 /* |
26 /* |
27 * This file implements some of the standard utility procedures used |
27 * This file implements some of the standard utility procedures used |
28 * by the image conversion package. |
28 * by the image conversion package. |
29 */ |
29 */ |
30 |
30 |
|
31 #include "jni.h" |
31 #include "img_globals.h" |
32 #include "img_globals.h" |
32 |
33 |
33 #include "java_awt_image_IndexColorModel.h" |
34 #include "java_awt_image_IndexColorModel.h" |
34 #include "java_awt_Transparency.h" |
35 #include "java_awt_Transparency.h" |
35 |
36 |
40 * use a dither array constructed with the quantum 256. |
41 * use a dither array constructed with the quantum 256. |
41 * The array values produced are unsigned and intended to be used with |
42 * The array values produced are unsigned and intended to be used with |
42 * a lookup table which returns the next color darker than the error |
43 * a lookup table which returns the next color darker than the error |
43 * adjusted color used as the index. |
44 * adjusted color used as the index. |
44 */ |
45 */ |
45 void |
46 JNIEXPORT void JNICALL |
46 make_uns_ordered_dither_array(uns_ordered_dither_array oda, |
47 make_uns_ordered_dither_array(uns_ordered_dither_array oda, |
47 int quantum) |
48 int quantum) |
48 { |
49 { |
49 int i, j, k; |
50 int i, j, k; |
50 |
51 |