1 | /* |
2 | * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. |
3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 | * |
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 |
7 | * published by the Free Software Foundation. Oracle designates this |
8 | * particular file as subject to the "Classpath" exception as provided |
9 | * by Oracle in the LICENSE file that accompanied this code. |
10 | * |
11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
14 | * version 2 for more details (a copy is included in the LICENSE file that |
15 | * accompanied this code). |
16 | * |
17 | * You should have received a copy of the GNU General Public License version |
18 | * 2 along with this work; if not, write to the Free Software Foundation, |
19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
20 | * |
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 |
23 | * questions. |
24 | */ |
25 | |
26 | #ifndef IMAGEINITIDS_H |
27 | #define IMAGEINITIDS_H |
28 | |
29 | #include "jni.h" |
30 | |
31 | #ifndef IMGEXTERN |
32 | # define IMGEXTERN extern |
33 | #endif |
34 | |
35 | /* BufferedImage ids */ |
36 | IMGEXTERN jfieldID g_BImgRasterID; |
37 | IMGEXTERN jfieldID g_BImgTypeID; |
38 | IMGEXTERN jfieldID g_BImgCMID; |
39 | IMGEXTERN jmethodID g_BImgGetRGBMID; |
40 | IMGEXTERN jmethodID g_BImgSetRGBMID; |
41 | |
42 | /* Raster ids */ |
43 | IMGEXTERN jfieldID g_RasterWidthID; |
44 | IMGEXTERN jfieldID g_RasterHeightID; |
45 | IMGEXTERN jfieldID g_RasterBaseRasterID; |
46 | IMGEXTERN jfieldID g_RasterMinXID; |
47 | IMGEXTERN jfieldID g_RasterMinYID; |
48 | IMGEXTERN jfieldID g_RasterBaseOriginXID; |
49 | IMGEXTERN jfieldID g_RasterBaseOriginYID; |
50 | IMGEXTERN jfieldID g_RasterSampleModelID; |
51 | IMGEXTERN jfieldID g_RasterDataBufferID; |
52 | IMGEXTERN jfieldID g_RasterNumDataElementsID; |
53 | IMGEXTERN jfieldID g_RasterNumBandsID; |
54 | |
55 | IMGEXTERN jfieldID g_BCRdataID; |
56 | IMGEXTERN jfieldID g_BCRscanstrID; |
57 | IMGEXTERN jfieldID g_BCRpixstrID; |
58 | IMGEXTERN jfieldID g_BCRdataOffsetsID; |
59 | IMGEXTERN jfieldID g_BCRtypeID; |
60 | IMGEXTERN jfieldID g_BPRdataID; |
61 | IMGEXTERN jfieldID g_BPRscanstrID; |
62 | IMGEXTERN jfieldID g_BPRpixstrID; |
63 | IMGEXTERN jfieldID g_BPRtypeID; |
64 | IMGEXTERN jfieldID g_BPRdataBitOffsetID; |
65 | IMGEXTERN jfieldID g_SCRdataID; |
66 | IMGEXTERN jfieldID g_SCRscanstrID; |
67 | IMGEXTERN jfieldID g_SCRpixstrID; |
68 | IMGEXTERN jfieldID g_SCRdataOffsetsID; |
69 | IMGEXTERN jfieldID g_SCRtypeID; |
70 | IMGEXTERN jfieldID g_ICRdataID; |
71 | IMGEXTERN jfieldID g_ICRscanstrID; |
72 | IMGEXTERN jfieldID g_ICRpixstrID; |
73 | IMGEXTERN jfieldID g_ICRdataOffsetsID; |
74 | IMGEXTERN jfieldID g_ICRtypeID; |
75 | |
76 | /* Color Model ids */ |
77 | JNIEXPORT |
78 | IMGEXTERN jfieldID g_CMpDataID; |
79 | IMGEXTERN jfieldID g_CMnBitsID; |
80 | IMGEXTERN jfieldID g_CMcspaceID; |
81 | IMGEXTERN jfieldID g_CMnumComponentsID; |
82 | IMGEXTERN jfieldID g_CMsuppAlphaID; |
83 | IMGEXTERN jfieldID g_CMisAlphaPreID; |
84 | IMGEXTERN jfieldID g_CMtransparencyID; |
85 | IMGEXTERN jfieldID g_CMcsTypeID; |
86 | IMGEXTERN jfieldID g_CMis_sRGBID; |
87 | IMGEXTERN jmethodID g_CMgetRGBdefaultMID; |
88 | |
89 | IMGEXTERN jfieldID g_ICMtransIdxID; |
90 | IMGEXTERN jfieldID g_ICMmapSizeID; |
91 | IMGEXTERN jfieldID g_ICMrgbID; |
92 | |
93 | /* Sample Model ids */ |
94 | IMGEXTERN jfieldID g_SMWidthID; |
95 | IMGEXTERN jfieldID g_SMHeightID; |
96 | IMGEXTERN jmethodID g_SMGetPixelsMID; |
97 | IMGEXTERN jmethodID g_SMSetPixelsMID; |
98 | |
99 | /* Single Pixel Packed Sample Model ids */ |
100 | IMGEXTERN jfieldID g_SPPSMmaskArrID; |
101 | IMGEXTERN jfieldID g_SPPSMmaskOffID; |
102 | IMGEXTERN jfieldID g_SPPSMnBitsID; |
103 | IMGEXTERN jfieldID g_SPPSMmaxBitID; |
104 | |
105 | /* Kernel ids */ |
106 | IMGEXTERN jfieldID g_KernelWidthID; |
107 | IMGEXTERN jfieldID g_KernelHeightID; |
108 | IMGEXTERN jfieldID g_KernelDataID; |
109 | |
110 | #endif /* IMAGEINITIDS_H */ |
111 | |