Go to the documentation of this file.
58 #define INLINE __forceinline
59 #elif defined(__GNUC__)
60 #define INLINE __inline__
61 #elif defined(__MWERKS__)
71 #define OPJ_DEPRECATED(func) func __attribute__ ((deprecated))
72 #elif defined(_MSC_VER)
73 #define OPJ_DEPRECATED(func) __declspec(deprecated) func
75 #pragma message("WARNING: You need to implement DEPRECATED for this compiler")
76 #define OPJ_DEPRECATED(func) func
79 #if defined(OPJ_STATIC) || !defined(_WIN32)
82 #define OPJ_API __attribute__ ((visibility ("default")))
83 #define OPJ_LOCAL __attribute__ ((visibility ("hidden")))
90 #define OPJ_CALLCONV __stdcall
99 #if defined(OPJ_EXPORTS) || defined(DLL_EXPORT)
100 #define OPJ_API __declspec(dllexport)
102 #define OPJ_API __declspec(dllimport)
132 #define OPJ_ARG_NOT_USED(x) (void)(x)
140 #define OPJ_PATH_LEN 4096
142 #define OPJ_J2K_MAXRLVLS 33
143 #define OPJ_J2K_MAXBANDS (3*OPJ_J2K_MAXRLVLS-2)
145 #define OPJ_J2K_DEFAULT_NB_SEGS 10
146 #define OPJ_J2K_STREAM_CHUNK_SIZE 0x100000
147 #define OPJ_J2K_DEFAULT_HEADER_SIZE 1000
148 #define OPJ_J2K_MCC_DEFAULT_NB_RECORDS 10
149 #define OPJ_J2K_MCT_DEFAULT_NB_RECORDS 10
152 #define JPWL_MAX_NO_TILESPECS 16
153 #define JPWL_MAX_NO_PACKSPECS 16
154 #define JPWL_MAX_NO_MARKERS 512
155 #define JPWL_PRIVATEINDEX_NAME "jpwl_index_privatefilename"
156 #define JPWL_EXPECTED_COMPONENTS 3
157 #define JPWL_MAXIMUM_TILES 8192
158 #define JPWL_MAXIMUM_HAMMING 2
159 #define JPWL_MAXIMUM_EPB_ROOM 65450
166 #define OPJ_IMG_INFO 1
167 #define OPJ_J2K_MH_INFO 2
168 #define OPJ_J2K_TH_INFO 4
169 #define OPJ_J2K_TCH_INFO 8
170 #define OPJ_J2K_MH_IND 16
171 #define OPJ_J2K_TH_IND 32
173 #define OPJ_JP2_INFO 128
174 #define OPJ_JP2_IND 256
190 #define OPJ_PROFILE_NONE 0x0000
191 #define OPJ_PROFILE_0 0x0001
192 #define OPJ_PROFILE_1 0x0002
193 #define OPJ_PROFILE_PART2 0x8000
194 #define OPJ_PROFILE_CINEMA_2K 0x0003
195 #define OPJ_PROFILE_CINEMA_4K 0x0004
196 #define OPJ_PROFILE_CINEMA_S2K 0x0005
197 #define OPJ_PROFILE_CINEMA_S4K 0x0006
198 #define OPJ_PROFILE_CINEMA_LTS 0x0007
199 #define OPJ_PROFILE_BC_SINGLE 0x0100
200 #define OPJ_PROFILE_BC_MULTI 0x0200
201 #define OPJ_PROFILE_BC_MULTI_R 0x0300
202 #define OPJ_PROFILE_IMF_2K 0x0400
203 #define OPJ_PROFILE_IMF_4K 0x0401
204 #define OPJ_PROFILE_IMF_8K 0x0402
205 #define OPJ_PROFILE_IMF_2K_R 0x0403
206 #define OPJ_PROFILE_IMF_4K_R 0x0800
207 #define OPJ_PROFILE_IMF_8K_R 0x0801
212 #define OPJ_EXTENSION_NONE 0x0000
213 #define OPJ_EXTENSION_MCT 0x0100
218 #define OPJ_IS_CINEMA(v) (((v) >= OPJ_PROFILE_CINEMA_2K)&&((v) <= OPJ_PROFILE_CINEMA_S4K))
219 #define OPJ_IS_STORAGE(v) ((v) == OPJ_PROFILE_CINEMA_LTS)
220 #define OPJ_IS_BROADCAST(v) (((v) >= OPJ_PROFILE_BC_SINGLE)&&((v) <= ((OPJ_PROFILE_BC_MULTI_R) | (0x000b))))
221 #define OPJ_IS_IMF(v) (((v) >= OPJ_PROFILE_IMF_2K)&&((v) <= ((OPJ_PROFILE_IMF_8K_R) | (0x009b))))
222 #define OPJ_IS_PART2(v) ((v) & OPJ_PROFILE_PART2)
227 #define OPJ_CINEMA_24_CS 1302083
228 #define OPJ_CINEMA_48_CS 651041
229 #define OPJ_CINEMA_24_COMP 1041666
230 #define OPJ_CINEMA_48_COMP 520833
499 #define OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG 0x0001
582 #define OPJ_STREAM_READ OPJ_TRUE
584 #define OPJ_STREAM_WRITE OPJ_FALSE
1193 void * p_user_data);
1202 void * p_user_data);
1211 void * p_user_data);
1486 FILE* output_stream);