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 */
36IMGEXTERN jfieldID g_BImgRasterID;
37IMGEXTERN jfieldID g_BImgTypeID;
38IMGEXTERN jfieldID g_BImgCMID;
39IMGEXTERN jmethodID g_BImgGetRGBMID;
40IMGEXTERN jmethodID g_BImgSetRGBMID;
41
42/* Raster ids */
43IMGEXTERN jfieldID g_RasterWidthID;
44IMGEXTERN jfieldID g_RasterHeightID;
45IMGEXTERN jfieldID g_RasterBaseRasterID;
46IMGEXTERN jfieldID g_RasterMinXID;
47IMGEXTERN jfieldID g_RasterMinYID;
48IMGEXTERN jfieldID g_RasterBaseOriginXID;
49IMGEXTERN jfieldID g_RasterBaseOriginYID;
50IMGEXTERN jfieldID g_RasterSampleModelID;
51IMGEXTERN jfieldID g_RasterDataBufferID;
52IMGEXTERN jfieldID g_RasterNumDataElementsID;
53IMGEXTERN jfieldID g_RasterNumBandsID;
54
55IMGEXTERN jfieldID g_BCRdataID;
56IMGEXTERN jfieldID g_BCRscanstrID;
57IMGEXTERN jfieldID g_BCRpixstrID;
58IMGEXTERN jfieldID g_BCRdataOffsetsID;
59IMGEXTERN jfieldID g_BCRtypeID;
60IMGEXTERN jfieldID g_BPRdataID;
61IMGEXTERN jfieldID g_BPRscanstrID;
62IMGEXTERN jfieldID g_BPRpixstrID;
63IMGEXTERN jfieldID g_BPRtypeID;
64IMGEXTERN jfieldID g_BPRdataBitOffsetID;
65IMGEXTERN jfieldID g_SCRdataID;
66IMGEXTERN jfieldID g_SCRscanstrID;
67IMGEXTERN jfieldID g_SCRpixstrID;
68IMGEXTERN jfieldID g_SCRdataOffsetsID;
69IMGEXTERN jfieldID g_SCRtypeID;
70IMGEXTERN jfieldID g_ICRdataID;
71IMGEXTERN jfieldID g_ICRscanstrID;
72IMGEXTERN jfieldID g_ICRpixstrID;
73IMGEXTERN jfieldID g_ICRdataOffsetsID;
74IMGEXTERN jfieldID g_ICRtypeID;
75
76/* Color Model ids */
77JNIEXPORT
78IMGEXTERN jfieldID g_CMpDataID;
79IMGEXTERN jfieldID g_CMnBitsID;
80IMGEXTERN jfieldID g_CMcspaceID;
81IMGEXTERN jfieldID g_CMnumComponentsID;
82IMGEXTERN jfieldID g_CMsuppAlphaID;
83IMGEXTERN jfieldID g_CMisAlphaPreID;
84IMGEXTERN jfieldID g_CMtransparencyID;
85IMGEXTERN jfieldID g_CMcsTypeID;
86IMGEXTERN jfieldID g_CMis_sRGBID;
87IMGEXTERN jmethodID g_CMgetRGBdefaultMID;
88
89IMGEXTERN jfieldID g_ICMtransIdxID;
90IMGEXTERN jfieldID g_ICMmapSizeID;
91IMGEXTERN jfieldID g_ICMrgbID;
92
93/* Sample Model ids */
94IMGEXTERN jfieldID g_SMWidthID;
95IMGEXTERN jfieldID g_SMHeightID;
96IMGEXTERN jmethodID g_SMGetPixelsMID;
97IMGEXTERN jmethodID g_SMSetPixelsMID;
98
99/* Single Pixel Packed Sample Model ids */
100IMGEXTERN jfieldID g_SPPSMmaskArrID;
101IMGEXTERN jfieldID g_SPPSMmaskOffID;
102IMGEXTERN jfieldID g_SPPSMnBitsID;
103IMGEXTERN jfieldID g_SPPSMmaxBitID;
104
105/* Kernel ids */
106IMGEXTERN jfieldID g_KernelWidthID;
107IMGEXTERN jfieldID g_KernelHeightID;
108IMGEXTERN jfieldID g_KernelDataID;
109
110#endif /* IMAGEINITIDS_H */
111