Loading...
Searching...
No Matches
Go to the documentation of this file.
6#ifndef CLIPM_COMPATIBILITY_REPLACEMENTS_H
7#define CLIPM_COMPATIBILITY_REPLACEMENTS_H
31#if CLIPM_GET_INSTALLED_CPL_VERSION <= 3
37 #define cpl_array_get_data_int_const(array) \
38 cpl_array_get_data_int(array)
40 #define cpl_array_get_data_float_const(array) \
41 cpl_array_get_data_float(array)
43 #define cpl_array_get_data_double_const(array) \
44 cpl_array_get_data_double(array)
46 #define cpl_array_get_data_string_const(array) \
47 (const char**)cpl_array_get_data_string(array)
49 #define cpl_bivector_get_x_const(bivector) \
50 cpl_bivector_get_x(bivector)
52 #define cpl_bivector_get_y_const(bivector) \
53 cpl_bivector_get_y(bivector)
55 #define cpl_bivector_get_x_data_const(bivector) \
56 cpl_bivector_get_x_data(bivector)
58 #define cpl_bivector_get_y_data_const(bivector) \
59 cpl_bivector_get_y_data(bivector)
61 #define cpl_frameset_find_const(frameset) \
62 cpl_frameset_find(frameset)
64 #define cpl_frameset_get_first_const(frameset) \
65 cpl_frameset_get_first(frameset)
67 #define cpl_frameset_get_next_const(frameset) \
68 cpl_frameset_get_next(frameset)
70 #define cpl_frameset_get_frame_const(frameset) \
71 cpl_frameset_get_frame(frameset)
73 #define cpl_image_get_bpm_const(image) \
74 cpl_image_get_bpm(image)
76 #define cpl_image_get_data_const(image) \
77 cpl_image_get_data(image)
79 #define cpl_image_get_data_double_const(image) \
80 cpl_image_get_data_double(image)
82 #define cpl_image_get_data_float_const(image) \
83 cpl_image_get_data_float(image)
85 #define cpl_image_get_data_int_const(image) \
86 cpl_image_get_data_int(image)
88 #define cpl_imagelist_get_const(imagelist) \
89 cpl_imagelist_get(imagelist)
91 #define cpl_mask_get_data_const(mask) \
92 cpl_mask_get_data(mask)
94 #define cpl_matrix_get_data_const(matrix) \
95 cpl_matrix_get_data(matrix)
97 #define cpl_parameterlist_find_const(parameterlist, name) \
98 cpl_parameterlist_find(parameterlist, name)
100 #define cpl_parameterlist_find_context_const(parameterlist, context) \
101 cpl_parameterlist_find_context(parameterlist, context)
103 #define cpl_parameterlist_find_tag_const(parameterlist, tag) \
104 cpl_parameterlist_find_tag(parameterlist, tag)
106 #define cpl_parameterlist_find_type_const(parameterlist, type) \
107 cpl_parameterlist_find_type(parameterlist, type)
109 #define cpl_parameterlist_get_first_const(parameterlist) \
110 cpl_parameterlist_get_first(parameterlist)
112 #define cpl_parameterlist_get_next_const(parameterlist) \
113 cpl_parameterlist_get_next(parameterlist)
115 #define cpl_parameterlist_get_last_const(parameterlist) \
116 cpl_parameterlist_get_last(parameterlist)
118 #define cpl_propertylist_get_const(propertylist) \
119 cpl_propertylist_get(propertylist)
121 #define cpl_propertylist_get_property_const(propertylist) \
122 cpl_propertylist_get_property(propertylist)
124 #define cpl_propertylist_get_first_const(propertylist) \
125 cpl_propertylist_get_first(propertylist)
127 #define cpl_propertylist_get_next_const(propertylist) \
128 cpl_propertylist_get_next(propertylist)
130 #define cpl_table_get_data_int_const(table) \
131 cpl_table_get_data_int(table)
133 #define cpl_table_get_data_float_const(table) \
134 cpl_table_get_data_float(table)
136 #define cpl_table_get_data_double_const(table) \
137 cpl_table_get_data_double(table)
139 #define cpl_table_get_data_string_const(table) \
140 cpl_table_get_data_string(table)
142 #define cpl_table_get_data_array_const(table) \
143 cpl_table_get_data_array(table)
145 #define cpl_vector_get_data_const(vector) \
146 cpl_vector_get_data(vector)
151 #define cpl_vector_get_median_const(vector) \
152 cpl_vector_get_median(vector)
159 #define cpl_init(par) \
169#ifndef CPL_MATH_CONST_H
172 #define CPL_MATH_E 2.7182818284590452353602874713526624977572470936999595
175 #define CPL_MATH_PI 3.1415926535897932384626433832795028841971693993751058
178 #define CPL_MATH_LN2 0.6931471805599453094172321214581765680755001343602553
181 #define CPL_MATH_LN10 2.3025850929940456840179914546843642076011014886287730
185 #define CPL_MATH_2PI 6.2831853071795864769252867665590057683943387987502116
188 #define CPL_MATH_PI_2 1.5707963267948966192313216916397514420985846996875529
191 #define CPL_MATH_PI_4 0.7853981633974483096156608458198757210492923498437765
194 #define CPL_MATH_1_PI 0.3183098861837906715377675267450287240689192914809129
197 #define CPL_MATH_2_PI 0.6366197723675813430755350534900574481378385829618258
200 #define CPL_MATH_4_PI 1.2732395447351626861510701069801148962756771659236516
203 #define CPL_MATH_SQRT2PI 2.5066282746310005024157652848110452530069867406099383
206 #define CPL_MATH_2_SQRTPI 1.1283791670955125738961589031215451716881012586579977
209 #define CPL_MATH_SQRT2 1.4142135623730950488016887242096980785696718753769481
212 #define CPL_MATH_SQRT3 1.7320508075688772935274463415058723669428052538103806
215 #define CPL_MATH_SQRT1_2 0.7071067811865475244008443621048490392848359376884740
218 #define CPL_MATH_LOG2E 1.4426950408889634073599246810018921374266459541529859
221 #define CPL_MATH_LOG10E 0.4342944819032518276511289189166050822943970058036666
224 #define CPL_MATH_DEG_RAD 57.295779513082320876798154814105170332405472466564322
227 #define CPL_MATH_RAD_DEG 0.0174532925199432957692369076848861271344287188854173
230 #define CPL_MATH_FWHM_SIG 2.3548200450309493820231386529193992754947713787716411
233 #define CPL_MATH_SIG_FWHM 0.4246609001440095213607514170514448098575705468921770