| 1 |
/* |
| 2 |
FLAM3 - cosmic recursive fractal flames |
| 3 |
Copyright (C) 1992-2009 Spotworks LLC |
| 4 |
|
| 5 |
This program is free software; you can redistribute it and/or modify |
| 6 |
it under the terms of the GNU General Public License as published by |
| 7 |
the Free Software Foundation; either version 3 of the License, or |
| 8 |
(at your option) any later version. |
| 9 |
|
| 10 |
This program is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
GNU General Public License for more details. |
| 14 |
|
| 15 |
You should have received a copy of the GNU General Public License |
| 16 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
*/ |
| 18 |
|
| 19 |
|
| 20 |
#ifndef flam3_included |
| 21 |
#define flam3_includedcxx . . $ `flam3.h:21:9`! |
| 22 |
|
| 23 |
#include <stdio.h> |
| •24 |
|
| 25 |
#ifdef __cplusplus |
| 26 |
extern "C++" { |
| 27 |
#include <libxml/parser.h> |
| 28 |
} |
| 29 |
#else |
| 30 |
#include <libxml/parser.h> |
| 31 |
#endif |
| 32 |
|
| 33 |
|
| 34 |
#include "isaac.h"cxx . . $ `<file>/isaac.h`/ |
| 35 |
|
| 36 |
#if defined(_MSC_VER) /* VC++ */ |
| 37 |
#include <windows.h> |
| 38 |
#define EXPORT __declspec (dllexport) |
| 39 |
#else |
| 40 |
#define EXPORTcxx . . $ `flam3.h:40:9`! |
| 41 |
#endif |
| 42 |
|
| 43 |
EXPORTcxx . . $ `flam3.h:40:9`! char *flam3_versioncxx . . $ flam3_version(1a2b1742f4ee1b69).(); |
| 44 |
|
| 45 |
#define flam3_palette_randomcxx . . $ `flam3.h:45:9`! (-1) |
| 46 |
#define flam3_palette_interpolatedcxx . . $ `flam3.h:46:9`! (-2) |
| 47 |
|
| 48 |
#define flam3_defaults_oncxx . . $ `flam3.h:48:9`! (1) |
| 49 |
#define flam3_defaults_offcxx . . $ `flam3.h:49:9`! (0) |
| 50 |
|
| 51 |
#define flam3_name_lencxx . . $ `flam3.h:51:9`! 64 |
| 52 |
|
| 53 |
#define flam3_print_editscxx . . $ `flam3.h:53:9`! (1) |
| 54 |
#define flam3_dont_print_editscxx . . $ `flam3.h:54:9`! (0) |
| 55 |
|
| 56 |
//typedef double flam3_palette[256][3]; |
| 57 |
typedef structcxx . . $ $anonymous_type_d4ed57c78da46593_0# { |
| 58 |
double indexcxx . . $ $anonymous_type_d4ed57c78da46593_0#index.; |
| 59 |
double colorcxx . . $ $anonymous_type_d4ed57c78da46593_0#color.[4]; |
| 60 |
} flam3_palette_entrycxx . . $ flam3_palette_entry#; |
| 61 |
|
| 62 |
typedef flam3_palette_entrycxx . . $ flam3_palette_entry# flam3_palettecxx . . $ flam3_palette#[256]; |
| 63 |
|
| 64 |
int flam3_get_palettecxx . . $ flam3_get_palette(4c7a1137c04ffabc).(int palette_index, flam3_palettecxx . . $ flam3_palette# p, double hue_rotation); |
| 65 |
|
| 66 |
#define flam3_variation_randomcxx . . $ `flam3.h:66:9`! (-1) |
| 67 |
#define flam3_variation_random_fromspecifiedcxx . . $ `flam3.h:67:9`! (-2) |
| 68 |
|
| 69 |
extern char *flam3_variation_namescxx . . $ flam3_variation_names.[]; |
| 70 |
|
| 71 |
#define flam3_nvariationscxx . . $ `flam3.h:71:9`! 99 |
| 72 |
#define flam3_nxformscxx . . $ `flam3.h:72:9`! 12 |
| 73 |
|
| 74 |
#define flam3_parent_fn_lencxx . . $ `flam3.h:74:9`! 30 |
| 75 |
|
| 76 |
#define flam3_interpolation_linearcxx . . $ `flam3.h:76:9`! 0 |
| 77 |
#define flam3_interpolation_smoothcxx . . $ `flam3.h:77:9`! 1 |
| 78 |
|
| 79 |
#define flam3_inttype_linearcxx . . $ `flam3.h:79:9`! 0 |
| 80 |
#define flam3_inttype_logcxx . . $ `flam3.h:80:9`! 1 |
| 81 |
#define flam3_inttype_compatcxx . . $ `flam3.h:81:9`! 2 /* Linear and old behaviour */ |
| 82 |
#define flam3_inttype_oldercxx . . $ `flam3.h:82:9`! 3 /* rotate padded xforms */ |
| 83 |
|
| 84 |
#define flam3_palette_interpolation_hsvcxx . . $ `flam3.h:84:9`! 0 |
| 85 |
#define flam3_palette_interpolation_sweepcxx . . $ `flam3.h:85:9`! 1 |
| 86 |
#define flam3_palette_interpolation_rgbcxx . . $ `flam3.h:86:9`! 2 |
| 87 |
#define flam3_palette_interpolation_hsv_circularcxx . . $ `flam3.h:87:9`! 3 |
| 88 |
|
| 89 |
#define flam3_max_action_lengthcxx . . $ `flam3.h:89:9`! 10000 |
| 90 |
|
| 91 |
#define flam3_palette_mode_stepcxx . . $ `flam3.h:91:9`! 0 |
| 92 |
#define flam3_palette_mode_linearcxx . . $ `flam3.h:92:9`! 1 |
| 93 |
|
| 94 |
#define VAR_LINEARcxx . . $ `flam3.h:94:9`! 0 |
| 95 |
#define VAR_SINUSOIDALcxx . . $ `flam3.h:95:9`! 1 |
| 96 |
#define VAR_SPHERICALcxx . . $ `flam3.h:96:9`! 2 |
| 97 |
#define VAR_SWIRLcxx . . $ `flam3.h:97:9`! 3 |
| 98 |
#define VAR_HORSESHOEcxx . . $ `flam3.h:98:9`! 4 |
| 99 |
#define VAR_POLARcxx . . $ `flam3.h:99:9`! 5 |
| 100 |
#define VAR_HANDKERCHIEFcxx . . $ `flam3.h:100:9`! 6 |
| 101 |
#define VAR_HEARTcxx . . $ `flam3.h:101:9`! 7 |
| 102 |
#define VAR_DISCcxx . . $ `flam3.h:102:9`! 8 |
| 103 |
#define VAR_SPIRALcxx . . $ `flam3.h:103:9`! 9 |
| 104 |
#define VAR_HYPERBOLICcxx . . $ `flam3.h:104:9`! 10 |
| 105 |
#define VAR_DIAMONDcxx . . $ `flam3.h:105:9`! 11 |
| 106 |
#define VAR_EXcxx . . $ `flam3.h:106:9`! 12 |
| 107 |
#define VAR_JULIAcxx . . $ `flam3.h:107:9`! 13 |
| 108 |
#define VAR_BENTcxx . . $ `flam3.h:108:9`! 14 |
| 109 |
#define VAR_WAVEScxx . . $ `flam3.h:109:9`! 15 |
| 110 |
#define VAR_FISHEYEcxx . . $ `flam3.h:110:9`! 16 |
| 111 |
#define VAR_POPCORNcxx . . $ `flam3.h:111:9`! 17 |
| 112 |
#define VAR_EXPONENTIALcxx . . $ `flam3.h:112:9`! 18 |
| 113 |
#define VAR_POWERcxx . . $ `flam3.h:113:9`! 19 |
| 114 |
#define VAR_COSINEcxx . . $ `flam3.h:114:9`! 20 |
| 115 |
#define VAR_RINGScxx . . $ `flam3.h:115:9`! 21 |
| 116 |
#define VAR_FANcxx . . $ `flam3.h:116:9`! 22 |
| 117 |
#define VAR_BLOBcxx . . $ `flam3.h:117:9`! 23 |
| 118 |
#define VAR_PDJcxx . . $ `flam3.h:118:9`! 24 |
| 119 |
#define VAR_FAN2cxx . . $ `flam3.h:119:9`! 25 |
| 120 |
#define VAR_RINGS2cxx . . $ `flam3.h:120:9`! 26 |
| 121 |
#define VAR_EYEFISHcxx . . $ `flam3.h:121:9`! 27 |
| 122 |
#define VAR_BUBBLEcxx . . $ `flam3.h:122:9`! 28 |
| 123 |
#define VAR_CYLINDERcxx . . $ `flam3.h:123:9`! 29 |
| 124 |
#define VAR_PERSPECTIVEcxx . . $ `flam3.h:124:9`! 30 |
| 125 |
#define VAR_NOISEcxx . . $ `flam3.h:125:9`! 31 |
| 126 |
#define VAR_JULIANcxx . . $ `flam3.h:126:9`! 32 |
| 127 |
#define VAR_JULIASCOPEcxx . . $ `flam3.h:127:9`! 33 |
| 128 |
#define VAR_BLURcxx . . $ `flam3.h:128:9`! 34 |
| 129 |
#define VAR_GAUSSIAN_BLURcxx . . $ `flam3.h:129:9`! 35 |
| 130 |
#define VAR_RADIAL_BLURcxx . . $ `flam3.h:130:9`! 36 |
| 131 |
#define VAR_PIEcxx . . $ `flam3.h:131:9`! 37 |
| 132 |
#define VAR_NGONcxx . . $ `flam3.h:132:9`! 38 |
| 133 |
#define VAR_CURLcxx . . $ `flam3.h:133:9`! 39 |
| 134 |
#define VAR_RECTANGLEScxx . . $ `flam3.h:134:9`! 40 |
| 135 |
#define VAR_ARCHcxx . . $ `flam3.h:135:9`! 41 |
| 136 |
#define VAR_TANGENTcxx . . $ `flam3.h:136:9`! 42 |
| 137 |
#define VAR_SQUAREcxx . . $ `flam3.h:137:9`! 43 |
| 138 |
#define VAR_RAYScxx . . $ `flam3.h:138:9`! 44 |
| 139 |
#define VAR_BLADEcxx . . $ `flam3.h:139:9`! 45 |
| 140 |
#define VAR_SECANT2cxx . . $ `flam3.h:140:9`! 46 |
| 141 |
#define VAR_TWINTRIANcxx . . $ `flam3.h:141:9`! 47 |
| 142 |
#define VAR_CROSScxx . . $ `flam3.h:142:9`! 48 |
| 143 |
#define VAR_DISC2cxx . . $ `flam3.h:143:9`! 49 |
| 144 |
#define VAR_SUPER_SHAPEcxx . . $ `flam3.h:144:9`! 50 |
| 145 |
#define VAR_FLOWERcxx . . $ `flam3.h:145:9`! 51 |
| 146 |
#define VAR_CONICcxx . . $ `flam3.h:146:9`! 52 |
| 147 |
#define VAR_PARABOLAcxx . . $ `flam3.h:147:9`! 53 |
| 148 |
#define VAR_BENT2cxx . . $ `flam3.h:148:9`! 54 |
| 149 |
#define VAR_BIPOLARcxx . . $ `flam3.h:149:9`! 55 |
| 150 |
#define VAR_BOARDERScxx . . $ `flam3.h:150:9`! 56 |
| 151 |
#define VAR_BUTTERFLYcxx . . $ `flam3.h:151:9`! 57 |
| 152 |
#define VAR_CELLcxx . . $ `flam3.h:152:9`! 58 |
| 153 |
#define VAR_CPOWcxx . . $ `flam3.h:153:9`! 59 |
| 154 |
#define VAR_CURVEcxx . . $ `flam3.h:154:9`! 60 |
| 155 |
#define VAR_EDISCcxx . . $ `flam3.h:155:9`! 61 |
| 156 |
#define VAR_ELLIPTICcxx . . $ `flam3.h:156:9`! 62 |
| 157 |
#define VAR_ESCHERcxx . . $ `flam3.h:157:9`! 63 |
| 158 |
#define VAR_FOCIcxx . . $ `flam3.h:158:9`! 64 |
| 159 |
#define VAR_LAZYSUSANcxx . . $ `flam3.h:159:9`! 65 |
| 160 |
#define VAR_LOONIEcxx . . $ `flam3.h:160:9`! 66 |
| 161 |
#define VAR_PRE_BLURcxx . . $ `flam3.h:161:9`! 67 |
| 162 |
#define VAR_MODULUScxx . . $ `flam3.h:162:9`! 68 |
| 163 |
#define VAR_OSCILLOSCOPEcxx . . $ `flam3.h:163:9`! 69 |
| 164 |
#define VAR_POLAR2cxx . . $ `flam3.h:164:9`! 70 |
| 165 |
#define VAR_POPCORN2cxx . . $ `flam3.h:165:9`! 71 |
| 166 |
#define VAR_SCRYcxx . . $ `flam3.h:166:9`! 72 |
| 167 |
#define VAR_SEPARATIONcxx . . $ `flam3.h:167:9`! 73 |
| 168 |
#define VAR_SPLITcxx . . $ `flam3.h:168:9`! 74 |
| 169 |
#define VAR_SPLITScxx . . $ `flam3.h:169:9`! 75 |
| 170 |
#define VAR_STRIPEScxx . . $ `flam3.h:170:9`! 76 |
| 171 |
#define VAR_WEDGEcxx . . $ `flam3.h:171:9`! 77 |
| 172 |
#define VAR_WEDGE_JULIAcxx . . $ `flam3.h:172:9`! 78 |
| 173 |
#define VAR_WEDGE_SPHcxx . . $ `flam3.h:173:9`! 79 |
| 174 |
#define VAR_WHORLcxx . . $ `flam3.h:174:9`! 80 |
| 175 |
#define VAR_WAVES2cxx . . $ `flam3.h:175:9`! 81 |
| 176 |
#define VAR_EXPcxx . . $ `flam3.h:176:9`! 82 |
| 177 |
#define VAR_LOGcxx . . $ `flam3.h:177:9`! 83 |
| 178 |
#define VAR_SINcxx . . $ `flam3.h:178:9`! 84 |
| 179 |
#define VAR_COScxx . . $ `flam3.h:179:9`! 85 |
| 180 |
#define VAR_TANcxx . . $ `flam3.h:180:9`! 86 |
| 181 |
#define VAR_SECcxx . . $ `flam3.h:181:9`! 87 |
| 182 |
#define VAR_CSCcxx . . $ `flam3.h:182:9`! 88 |
| 183 |
#define VAR_COTcxx . . $ `flam3.h:183:9`! 89 |
| 184 |
#define VAR_SINHcxx . . $ `flam3.h:184:9`! 90 |
| 185 |
#define VAR_COSHcxx . . $ `flam3.h:185:9`! 91 |
| 186 |
#define VAR_TANHcxx . . $ `flam3.h:186:9`! 92 |
| 187 |
#define VAR_SECHcxx . . $ `flam3.h:187:9`! 93 |
| 188 |
#define VAR_CSCHcxx . . $ `flam3.h:188:9`! 94 |
| 189 |
#define VAR_COTHcxx . . $ `flam3.h:189:9`! 95 |
| 190 |
#define VAR_AUGERcxx . . $ `flam3.h:190:9`! 96 |
| 191 |
#define VAR_FLUXcxx . . $ `flam3.h:191:9`! 97 |
| 192 |
#define VAR_MOBIUScxx . . $ `flam3.h:192:9`! 98 |
| 193 |
|
| 194 |
typedef structcxx . . $ $anonymous_type_d4ed57c78da46593_1# { |
| 195 |
|
| 196 |
double badvalscxx . . $ $anonymous_type_d4ed57c78da46593_1#badvals.; |
| 197 |
long int num_iterscxx . . $ $anonymous_type_d4ed57c78da46593_1#num_iters.; |
| 198 |
int render_secondscxx . . $ $anonymous_type_d4ed57c78da46593_1#render_seconds.; |
| 199 |
|
| 200 |
} stat_structcxx . . $ stat_struct#; |
| 201 |
|
| 202 |
typedef structcxx . . $ $anonymous_type_d4ed57c78da46593_2# { |
| 203 |
|
| 204 |
unsigned int widthcxx . . $ $anonymous_type_d4ed57c78da46593_2#width., heightcxx . . $ $anonymous_type_d4ed57c78da46593_2#height.; |
| 205 |
int versioncxx . . $ $anonymous_type_d4ed57c78da46593_2#version.; |
| 206 |
int idcxx . . $ $anonymous_type_d4ed57c78da46593_2#id.; |
| 207 |
|
| 208 |
/* There are 256 levels of gray to work with */ |
| 209 |
double intensity_weightcxx . . $ $anonymous_type_d4ed57c78da46593_2#intensity_weight.[256]; |
| 210 |
unsigned int bin_sizecxx . . $ $anonymous_type_d4ed57c78da46593_2#bin_size.[256]; |
| 211 |
unsigned int bin_offsetcxx . . $ $anonymous_type_d4ed57c78da46593_2#bin_offset.[256]; |
| 212 |
|
| 213 |
/* Pointer to newly allocated memory; we will be allocating */ |
| 214 |
/* 2*w*h ushorts for this storage. The bin offset will */ |
| 215 |
/* provide the starting point for a random selection from */ |
| 216 |
/* (bin size) ordered pairs */ |
| 217 |
unsigned short *rowcolscxx . . $ $anonymous_type_d4ed57c78da46593_2#rowcols.; |
| 218 |
|
| 219 |
} flam3_image_storecxx . . $ flam3_image_store#; |
| 220 |
|
| 221 |
|
| 222 |
typedef struct xformcxx . . $ xform# { |
| 223 |
double varcxx . . $ xform#var.[flam3_nvariationscxx . . $ `flam3.h:71:9`!]; /* interp coefs between variations */ |
| 224 |
double ccxx . . $ xform#c.[3][2]; /* the coefs to the affine part of the function */ |
| 225 |
double postcxx . . $ xform#post.[3][2]; /* the post transform */ |
| 226 |
double densitycxx . . $ xform#density.; /* probability that this function is chosen. 0 - 1 */ |
| 227 |
double colorcxx . . $ xform#color.; /* color coords for this function. 0 - 1 */ |
| 228 |
double color_speedcxx . . $ xform#color_speed.; /* scaling factor on color added to current iteration */ |
| 229 |
double animatecxx . . $ xform#animate.; /* whether or not this xform rotates (in sheep) >0 means stationary */ |
| 230 |
double opacitycxx . . $ xform#opacity.; /* 0=invisible, 1=totally visible */ |
| 231 |
double vis_adjustedcxx . . $ xform#vis_adjusted.; /* adjusted visibility for better transitions */ |
| 232 |
|
| 233 |
int paddingcxx . . $ xform#padding.;/* Set to 1 for padding xforms */ |
| 234 |
double windcxx . . $ xform#wind.[2]; /* winding numbers */ |
| 235 |
|
| 236 |
int precalc_angles_flagcxx . . $ xform#precalc_angles_flag.; |
| 237 |
int precalc_atan_xy_flagcxx . . $ xform#precalc_atan_xy_flag.; |
| 238 |
int precalc_atan_yx_flagcxx . . $ xform#precalc_atan_yx_flag.; |
| 239 |
double has_preblurcxx . . $ xform#has_preblur.; |
| 240 |
int has_postcxx . . $ xform#has_post.; |
| 241 |
|
| 242 |
/* Params for new parameterized variations */ |
| 243 |
/* Blob */ |
| 244 |
double blob_lowcxx . . $ xform#blob_low.; |
| 245 |
double blob_highcxx . . $ xform#blob_high.; |
| 246 |
double blob_wavescxx . . $ xform#blob_waves.; |
| 247 |
|
| 248 |
/* PDJ */ |
| 249 |
double pdj_acxx . . $ xform#pdj_a.; |
| 250 |
double pdj_bcxx . . $ xform#pdj_b.; |
| 251 |
double pdj_ccxx . . $ xform#pdj_c.; |
| 252 |
double pdj_dcxx . . $ xform#pdj_d.; |
| 253 |
|
| 254 |
/* Fan2 */ |
| 255 |
double fan2_xcxx . . $ xform#fan2_x.; |
| 256 |
double fan2_ycxx . . $ xform#fan2_y.; |
| 257 |
|
| 258 |
/* Rings2 */ |
| 259 |
double rings2_valcxx . . $ xform#rings2_val.; |
| 260 |
|
| 261 |
/* Perspective */ |
| 262 |
double perspective_anglecxx . . $ xform#perspective_angle.; |
| 263 |
double perspective_distcxx . . $ xform#perspective_dist.; |
| 264 |
|
| 265 |
/* Julia_N */ |
| 266 |
double julian_powercxx . . $ xform#julian_power.; |
| 267 |
double julian_distcxx . . $ xform#julian_dist.; |
| 268 |
|
| 269 |
/* Julia_Scope */ |
| 270 |
double juliascope_powercxx . . $ xform#juliascope_power.; |
| 271 |
double juliascope_distcxx . . $ xform#juliascope_dist.; |
| 272 |
|
| 273 |
/* Radial_Blur */ |
| 274 |
double radial_blur_anglecxx . . $ xform#radial_blur_angle.; |
| 275 |
|
| 276 |
/* Pie */ |
| 277 |
double pie_slicescxx . . $ xform#pie_slices.; |
| 278 |
double pie_rotationcxx . . $ xform#pie_rotation.; |
| 279 |
double pie_thicknesscxx . . $ xform#pie_thickness.; |
| 280 |
|
| 281 |
/* Ngon */ |
| 282 |
double ngon_sidescxx . . $ xform#ngon_sides.; |
| 283 |
double ngon_powercxx . . $ xform#ngon_power.; |
| 284 |
double ngon_circlecxx . . $ xform#ngon_circle.; |
| 285 |
double ngon_cornerscxx . . $ xform#ngon_corners.; |
| 286 |
|
| 287 |
/* Curl */ |
| 288 |
double curl_c1cxx . . $ xform#curl_c1.; |
| 289 |
double curl_c2cxx . . $ xform#curl_c2.; |
| 290 |
|
| 291 |
/* Rectangles */ |
| 292 |
double rectangles_xcxx . . $ xform#rectangles_x.; |
| 293 |
double rectangles_ycxx . . $ xform#rectangles_y.; |
| 294 |
|
| 295 |
/* AMW */ |
| 296 |
double amw_ampcxx . . $ xform#amw_amp.; |
| 297 |
|
| 298 |
/* Disc 2 */ |
| 299 |
double disc2_rotcxx . . $ xform#disc2_rot.; |
| 300 |
double disc2_twistcxx . . $ xform#disc2_twist.; |
| 301 |
|
| 302 |
/* Supershape */ |
| 303 |
double super_shape_rndcxx . . $ xform#super_shape_rnd.; |
| 304 |
double super_shape_mcxx . . $ xform#super_shape_m.; |
| 305 |
double super_shape_n1cxx . . $ xform#super_shape_n1.; |
| 306 |
double super_shape_n2cxx . . $ xform#super_shape_n2.; |
| 307 |
double super_shape_n3cxx . . $ xform#super_shape_n3.; |
| 308 |
double super_shape_holescxx . . $ xform#super_shape_holes.; |
| 309 |
|
| 310 |
/* Flower */ |
| 311 |
double flower_petalscxx . . $ xform#flower_petals.; |
| 312 |
double flower_holescxx . . $ xform#flower_holes.; |
| 313 |
|
| 314 |
/* Conic */ |
| 315 |
double conic_eccentricitycxx . . $ xform#conic_eccentricity.; |
| 316 |
double conic_holescxx . . $ xform#conic_holes.; |
| 317 |
|
| 318 |
/* Parabola */ |
| 319 |
double parabola_heightcxx . . $ xform#parabola_height.; |
| 320 |
double parabola_widthcxx . . $ xform#parabola_width.; |
| 321 |
|
| 322 |
/* Bent2 */ |
| 323 |
double bent2_xcxx . . $ xform#bent2_x.; |
| 324 |
double bent2_ycxx . . $ xform#bent2_y.; |
| 325 |
|
| 326 |
/* Bipolar */ |
| 327 |
double bipolar_shiftcxx . . $ xform#bipolar_shift.; |
| 328 |
|
| 329 |
/* Cell */ |
| 330 |
double cell_sizecxx . . $ xform#cell_size.; |
| 331 |
|
| 332 |
/* Cpow */ |
| 333 |
double cpow_rcxx . . $ xform#cpow_r.; |
| 334 |
double cpow_icxx . . $ xform#cpow_i.; |
| 335 |
double cpow_powercxx . . $ xform#cpow_power.; /* int in apo */ |
| 336 |
|
| 337 |
/* Curve */ |
| 338 |
double curve_xampcxx . . $ xform#curve_xamp.,curve_yampcxx . . $ xform#curve_yamp.; |
| 339 |
double curve_xlengthcxx . . $ xform#curve_xlength.,curve_ylengthcxx . . $ xform#curve_ylength.; |
| 340 |
|
| 341 |
/* Escher */ |
| 342 |
double escher_betacxx . . $ xform#escher_beta.; |
| 343 |
|
| 344 |
/* Lazysusan */ |
| 345 |
double lazysusan_spincxx . . $ xform#lazysusan_spin.; |
| 346 |
double lazysusan_spacecxx . . $ xform#lazysusan_space.; |
| 347 |
double lazysusan_twistcxx . . $ xform#lazysusan_twist.; |
| 348 |
double lazysusan_xcxx . . $ xform#lazysusan_x., lazysusan_ycxx . . $ xform#lazysusan_y.; |
| 349 |
|
| 350 |
/* Modulus */ |
| 351 |
double modulus_xcxx . . $ xform#modulus_x., modulus_ycxx . . $ xform#modulus_y.; |
| 352 |
|
| 353 |
/* Oscope */ |
| 354 |
double oscope_separationcxx . . $ xform#oscope_separation.; |
| 355 |
double oscope_frequencycxx . . $ xform#oscope_frequency.; |
| 356 |
double oscope_amplitudecxx . . $ xform#oscope_amplitude.; |
| 357 |
double oscope_dampingcxx . . $ xform#oscope_damping.; |
| 358 |
|
| 359 |
/* Popcorn2 */ |
| 360 |
double popcorn2_xcxx . . $ xform#popcorn2_x., popcorn2_ycxx . . $ xform#popcorn2_y., popcorn2_ccxx . . $ xform#popcorn2_c.; |
| 361 |
|
| 362 |
/* Separation */ |
| 363 |
double separation_xcxx . . $ xform#separation_x., separation_xinsidecxx . . $ xform#separation_xinside.; |
| 364 |
double separation_ycxx . . $ xform#separation_y., separation_yinsidecxx . . $ xform#separation_yinside.; |
| 365 |
|
| 366 |
/* Split */ |
| 367 |
double split_xsizecxx . . $ xform#split_xsize.; |
| 368 |
double split_ysizecxx . . $ xform#split_ysize.; |
| 369 |
|
| 370 |
/* Splits */ |
| 371 |
double splits_xcxx . . $ xform#splits_x.,splits_ycxx . . $ xform#splits_y.; |
| 372 |
|
| 373 |
/* Stripes */ |
| 374 |
double stripes_spacecxx . . $ xform#stripes_space.; |
| 375 |
double stripes_warpcxx . . $ xform#stripes_warp.; |
| 376 |
|
| 377 |
/* Wedge */ |
| 378 |
double wedge_anglecxx . . $ xform#wedge_angle., wedge_holecxx . . $ xform#wedge_hole.; |
| 379 |
double wedge_countcxx . . $ xform#wedge_count., wedge_swirlcxx . . $ xform#wedge_swirl.; |
| 380 |
|
| 381 |
/* Wedge_Julia */ |
| 382 |
double wedge_julia_anglecxx . . $ xform#wedge_julia_angle.; |
| 383 |
double wedge_julia_countcxx . . $ xform#wedge_julia_count.; |
| 384 |
double wedge_julia_powercxx . . $ xform#wedge_julia_power.; |
| 385 |
double wedge_julia_distcxx . . $ xform#wedge_julia_dist.; |
| 386 |
|
| 387 |
/* Wedge_Sph */ |
| 388 |
double wedge_sph_anglecxx . . $ xform#wedge_sph_angle., wedge_sph_countcxx . . $ xform#wedge_sph_count.; |
| 389 |
double wedge_sph_holecxx . . $ xform#wedge_sph_hole., wedge_sph_swirlcxx . . $ xform#wedge_sph_swirl.; |
| 390 |
|
| 391 |
/* Whorl */ |
| 392 |
double whorl_insidecxx . . $ xform#whorl_inside., whorl_outsidecxx . . $ xform#whorl_outside.; |
| 393 |
|
| 394 |
/* Waves2 */ |
| 395 |
double waves2_freqxcxx . . $ xform#waves2_freqx., waves2_scalexcxx . . $ xform#waves2_scalex.; |
| 396 |
double waves2_freqycxx . . $ xform#waves2_freqy., waves2_scaleycxx . . $ xform#waves2_scaley.; |
| 397 |
|
| 398 |
/* Auger */ |
| 399 |
double auger_symcxx . . $ xform#auger_sym., auger_weightcxx . . $ xform#auger_weight.; |
| 400 |
double auger_freqcxx . . $ xform#auger_freq., auger_scalecxx . . $ xform#auger_scale.; |
| 401 |
|
| 402 |
/* Flux */ |
| 403 |
double flux_spreadcxx . . $ xform#flux_spread.; |
| 404 |
|
| 405 |
/* Mobius */ |
| 406 |
double mobius_re_acxx . . $ xform#mobius_re_a., mobius_im_acxx . . $ xform#mobius_im_a.; |
| 407 |
double mobius_re_bcxx . . $ xform#mobius_re_b., mobius_im_bcxx . . $ xform#mobius_im_b.; |
| 408 |
double mobius_re_ccxx . . $ xform#mobius_re_c., mobius_im_ccxx . . $ xform#mobius_im_c.; |
| 409 |
double mobius_re_dcxx . . $ xform#mobius_re_d., mobius_im_dcxx . . $ xform#mobius_im_d.; |
| 410 |
|
| 411 |
/* If perspective is used, precalculate these values */ |
| 412 |
/* from the _angle and _dist */ |
| 413 |
double persp_vsincxx . . $ xform#persp_vsin.; |
| 414 |
double persp_vfcoscxx . . $ xform#persp_vfcos.; |
| 415 |
|
| 416 |
/* If Julia_N is used, precalculate these values */ |
| 417 |
double julian_rNcxx . . $ xform#julian_rN.; |
| 418 |
double julian_cncxx . . $ xform#julian_cn.; |
| 419 |
|
| 420 |
/* If Julia_Scope is used, precalculate these values */ |
| 421 |
double juliascope_rNcxx . . $ xform#juliascope_rN.; |
| 422 |
double juliascope_cncxx . . $ xform#juliascope_cn.; |
| 423 |
|
| 424 |
/* if Wedge_Julia, precalculate */ |
| 425 |
double wedgeJulia_rNcxx . . $ xform#wedgeJulia_rN.; |
| 426 |
double wedgeJulia_cncxx . . $ xform#wedgeJulia_cn.; |
| 427 |
double wedgeJulia_cfcxx . . $ xform#wedgeJulia_cf.; |
| 428 |
|
| 429 |
/* If Radial_Blur is used, precalculate these values */ |
| 430 |
double radialBlur_spinvarcxx . . $ xform#radialBlur_spinvar.; |
| 431 |
double radialBlur_zoomvarcxx . . $ xform#radialBlur_zoomvar.; |
| 432 |
|
| 433 |
/* Precalculate these values for waves */ |
| 434 |
double waves_dx2cxx . . $ xform#waves_dx2.; |
| 435 |
double waves_dy2cxx . . $ xform#waves_dy2.; |
| 436 |
|
| 437 |
/* If disc2 is used, precalculate these values */ |
| 438 |
double disc2_sinaddcxx . . $ xform#disc2_sinadd.; |
| 439 |
double disc2_cosaddcxx . . $ xform#disc2_cosadd.; |
| 440 |
double disc2_timespicxx . . $ xform#disc2_timespi.; |
| 441 |
|
| 442 |
/* If supershape is used, precalculate these values */ |
| 443 |
double super_shape_pm_4cxx . . $ xform#super_shape_pm_4.; |
| 444 |
double super_shape_pneg1_n1cxx . . $ xform#super_shape_pneg1_n1.; |
| 445 |
|
| 446 |
int num_active_varscxx . . $ xform#num_active_vars.; |
| 447 |
double active_var_weightscxx . . $ xform#active_var_weights.[flam3_nvariationscxx . . $ `flam3.h:71:9`!]; |
| 448 |
int varFunccxx . . $ xform#varFunc.[flam3_nvariationscxx . . $ `flam3.h:71:9`!]; |
| 449 |
|
| 450 |
int motion_freqcxx . . $ xform#motion_freq.; |
| 451 |
int motion_funccxx . . $ xform#motion_func.; |
| 452 |
|
| 453 |
struct xformcxx . . $ xform# *motioncxx . . $ xform#motion.; |
| 454 |
int num_motioncxx . . $ xform#num_motion.; |
| 455 |
|
| 456 |
|
| 457 |
} flam3_xformcxx . . $ flam3_xform#; |
| 458 |
|
| 459 |
typedef structcxx . . $ $anonymous_type_d4ed57c78da46593_3# { |
| 460 |
char flame_namecxx . . $ $anonymous_type_d4ed57c78da46593_3#flame_name.[flam3_name_lencxx . . $ `flam3.h:51:9`!+1]; /* 64 chars plus a null */ |
| 461 |
double timecxx . . $ $anonymous_type_d4ed57c78da46593_3#time.; |
| 462 |
int interpolationcxx . . $ $anonymous_type_d4ed57c78da46593_3#interpolation.; |
| 463 |
int interpolation_typecxx . . $ $anonymous_type_d4ed57c78da46593_3#interpolation_type.; |
| 464 |
int palette_interpolationcxx . . $ $anonymous_type_d4ed57c78da46593_3#palette_interpolation.; |
| 465 |
double hsv_rgb_palette_blendcxx . . $ $anonymous_type_d4ed57c78da46593_3#hsv_rgb_palette_blend.; |
| 466 |
int num_xformscxx . . $ $anonymous_type_d4ed57c78da46593_3#num_xforms.; |
| 467 |
int final_xform_indexcxx . . $ $anonymous_type_d4ed57c78da46593_3#final_xform_index.; |
| 468 |
int final_xform_enablecxx . . $ $anonymous_type_d4ed57c78da46593_3#final_xform_enable.; |
| 469 |
flam3_xformcxx . . $ flam3_xform# *xformcxx . . $ $anonymous_type_d4ed57c78da46593_3#xform.; |
| 470 |
|
| 471 |
/* Xaos implementation */ |
| 472 |
double **chaoscxx . . $ $anonymous_type_d4ed57c78da46593_3#chaos.; |
| 473 |
int chaos_enablecxx . . $ $anonymous_type_d4ed57c78da46593_3#chaos_enable.; |
| 474 |
|
| 475 |
int genome_indexcxx . . $ $anonymous_type_d4ed57c78da46593_3#genome_index.; /* index into source file */ |
| 476 |
char parent_fnamecxx . . $ $anonymous_type_d4ed57c78da46593_3#parent_fname.[flam3_parent_fn_lencxx . . $ `flam3.h:74:9`!]; /* base filename where parent was located */ |
| 477 |
int symmetrycxx . . $ $anonymous_type_d4ed57c78da46593_3#symmetry.; /* 0 means none */ |
| 478 |
flam3_palettecxx . . $ flam3_palette# palettecxx . . $ $anonymous_type_d4ed57c78da46593_3#palette.; |
| 479 |
char *input_imagecxx . . $ $anonymous_type_d4ed57c78da46593_3#input_image.; /* preview/temporary! */ |
| 480 |
int palette_indexcxx . . $ $anonymous_type_d4ed57c78da46593_3#palette_index.; |
| 481 |
double brightnesscxx . . $ $anonymous_type_d4ed57c78da46593_3#brightness.; /* 1.0 = normal */ |
| 482 |
double contrastcxx . . $ $anonymous_type_d4ed57c78da46593_3#contrast.; /* 1.0 = normal */ |
| 483 |
double gammacxx . . $ $anonymous_type_d4ed57c78da46593_3#gamma.; |
| 484 |
double highlight_powercxx . . $ $anonymous_type_d4ed57c78da46593_3#highlight_power.; |
| 485 |
int widthcxx . . $ $anonymous_type_d4ed57c78da46593_3#width., heightcxx . . $ $anonymous_type_d4ed57c78da46593_3#height.; /* of the final image */ |
| 486 |
int spatial_oversamplecxx . . $ $anonymous_type_d4ed57c78da46593_3#spatial_oversample.; |
| 487 |
double centercxx . . $ $anonymous_type_d4ed57c78da46593_3#center.[2]; /* of camera */ |
| 488 |
double rot_centercxx . . $ $anonymous_type_d4ed57c78da46593_3#rot_center.[2]; /* really the center */ |
| 489 |
double rotatecxx . . $ $anonymous_type_d4ed57c78da46593_3#rotate.; /* camera */ |
| 490 |
double vibrancycxx . . $ $anonymous_type_d4ed57c78da46593_3#vibrancy.; /* blend between color algs (0=old,1=new) */ |
| 491 |
double hue_rotationcxx . . $ $anonymous_type_d4ed57c78da46593_3#hue_rotation.; /* applies to cmap, 0-1 */ |
| 492 |
double backgroundcxx . . $ $anonymous_type_d4ed57c78da46593_3#background.[3]; |
| 493 |
double zoomcxx . . $ $anonymous_type_d4ed57c78da46593_3#zoom.; /* effects ppu, sample density, scale */ |
| 494 |
double pixels_per_unitcxx . . $ $anonymous_type_d4ed57c78da46593_3#pixels_per_unit.; /* vertically */ |
| 495 |
double spatial_filter_radiuscxx . . $ $anonymous_type_d4ed57c78da46593_3#spatial_filter_radius.; /* radius of spatial filter */ |
| 496 |
int spatial_filter_selectcxx . . $ $anonymous_type_d4ed57c78da46593_3#spatial_filter_select.; /* selected spatial filter */ |
| 497 |
// double (*spatial_filter_func)(double); /* spatial filter kernel function */ |
| 498 |
// double spatial_filter_support; /* size of standard kernel for specific function */ |
| 499 |
double sample_densitycxx . . $ $anonymous_type_d4ed57c78da46593_3#sample_density.; /* samples per pixel (not bucket) */ |
| 500 |
/* in order to motion blur more accurately we compute the logs of the |
| 501 |
sample density many times and average the results. */ |
| 502 |
/* nbatches is the number of times the buckets are filtered into |
| 503 |
the abucket log accumulator */ |
| 504 |
/* ntemporal_samples is the number of time steps per batch. this many |
| 505 |
interpolated control points are used per batch and accumulated */ |
| 506 |
int nbatchescxx . . $ $anonymous_type_d4ed57c78da46593_3#nbatches.; |
| 507 |
int ntemporal_samplescxx . . $ $anonymous_type_d4ed57c78da46593_3#ntemporal_samples.; |
| 508 |
|
| 509 |
/* Density estimation parameters for blurring low density hits */ |
| 510 |
double estimatorcxx . . $ $anonymous_type_d4ed57c78da46593_3#estimator.; /* Filter width for bin with one hit */ |
| 511 |
double estimator_curvecxx . . $ $anonymous_type_d4ed57c78da46593_3#estimator_curve.; /* Exponent on decay function ( MAX / a^(k-1) ) */ |
| 512 |
double estimator_minimumcxx . . $ $anonymous_type_d4ed57c78da46593_3#estimator_minimum.; /* Minimum filter width used - |
| 513 |
forces filter to be used of at least this width on all pts */ |
| 514 |
|
| 515 |
/* XML Edit structure */ |
| 516 |
xmlDocPtrcxx . . $ xmlDocPtr# editscxx . . $ $anonymous_type_d4ed57c78da46593_3#edits.; |
| 517 |
|
| 518 |
/* Small-gamma linearization threshold */ |
| 519 |
double gam_lin_threshcxx . . $ $anonymous_type_d4ed57c78da46593_3#gam_lin_thresh.; |
| 520 |
|
| 521 |
/* for cmap_interpolated hack */ |
| 522 |
int palette_index0cxx . . $ $anonymous_type_d4ed57c78da46593_3#palette_index0.; |
| 523 |
double hue_rotation0cxx . . $ $anonymous_type_d4ed57c78da46593_3#hue_rotation0.; |
| 524 |
int palette_index1cxx . . $ $anonymous_type_d4ed57c78da46593_3#palette_index1.; |
| 525 |
double hue_rotation1cxx . . $ $anonymous_type_d4ed57c78da46593_3#hue_rotation1.; |
| 526 |
double palette_blendcxx . . $ $anonymous_type_d4ed57c78da46593_3#palette_blend.; |
| 527 |
|
| 528 |
int temporal_filter_typecxx . . $ $anonymous_type_d4ed57c78da46593_3#temporal_filter_type.; /* Temporal filters */ |
| 529 |
double temporal_filter_widthcxx . . $ $anonymous_type_d4ed57c78da46593_3#temporal_filter_width., temporal_filter_expcxx . . $ $anonymous_type_d4ed57c78da46593_3#temporal_filter_exp.; |
| 530 |
|
| 531 |
int palette_modecxx . . $ $anonymous_type_d4ed57c78da46593_3#palette_mode.; |
| 532 |
|
| 533 |
|
| 534 |
} flam3_genomecxx . . $ flam3_genome#; |
| 535 |
|
| 536 |
typedef structcxx . . $ $anonymous_type_d4ed57c78da46593_4# { |
| 537 |
int fromcxx . . $ $anonymous_type_d4ed57c78da46593_4#from.; |
| 538 |
int tocxx . . $ $anonymous_type_d4ed57c78da46593_4#to.; |
| 539 |
double scalarcxx . . $ $anonymous_type_d4ed57c78da46593_4#scalar.; |
| 540 |
} flam3_chaos_entrycxx . . $ flam3_chaos_entry#; |
| 541 |
|
| 542 |
/* xform manipulation */ |
| 543 |
|
| 544 |
void flam3_add_motion_elementcxx . . $ flam3_add_motion_element(2eb73ff8271ca288).(flam3_xformcxx . . $ flam3_xform# *xf); |
| 545 |
void flam3_add_xformscxx . . $ flam3_add_xforms(62aa529b45550848).(flam3_genomecxx . . $ flam3_genome# *cp, int num_to_add, int interp_padding, int final_flag); |
| 546 |
void flam3_delete_xformcxx . . $ flam3_delete_xform(843ee1bb9c5f59ba).(flam3_genomecxx . . $ flam3_genome# *thiscp, int idx_to_delete); |
| 547 |
void flam3_copy_xformcxx . . $ flam3_copy_xform(d15371ce1da801b1).(flam3_xformcxx . . $ flam3_xform# *dest, flam3_xformcxx . . $ flam3_xform# *src); |
| 548 |
void flam3_copycxx . . $ flam3_copy(30da8946c6598614).(flam3_genomecxx . . $ flam3_genome# *dest, flam3_genomecxx . . $ flam3_genome# *src); |
| 549 |
void flam3_copyxcxx . . $ flam3_copyx(62478adc1dd1dae1).(flam3_genomecxx . . $ flam3_genome# *dest, flam3_genomecxx . . $ flam3_genome# *src, int num_std, int num_final); |
| 550 |
void flam3_copy_paramscxx . . $ flam3_copy_params(50fb08d3d504d402).(flam3_xformcxx . . $ flam3_xform# *dest, flam3_xformcxx . . $ flam3_xform# *src, int varn); |
| 551 |
void flam3_delete_motion_elementscxx . . $ flam3_delete_motion_elements(2eb73ff8271ca288).(flam3_xformcxx . . $ flam3_xform# *xf); |
| 552 |
|
| 553 |
EXPORTcxx . . $ `flam3.h:40:9`! int flam3_xform_previewcxx . . $ flam3_xform_preview(501feabcffd9c9b).(flam3_genomecxx . . $ flam3_genome# *cp, int xi, double range, int numvals, int depth, double *result, randctxcxx . . $ randctx# *rc); |
| 554 |
EXPORTcxx . . $ `flam3.h:40:9`! unsigned short* flam3_create_xform_distribcxx . . $ flam3_create_xform_distrib(9cf27db192606a).(flam3_genomecxx . . $ flam3_genome# *cp); |
| 555 |
int flam3_create_chaos_distribcxx . . $ flam3_create_chaos_distrib(5717e12dd9480d36).(flam3_genomecxx . . $ flam3_genome# *cp, int xi, unsigned short *xform_distrib); |
| 556 |
int flam3_check_unity_chaoscxx . . $ flam3_check_unity_chaos(d8a61cdef8edc00).(flam3_genomecxx . . $ flam3_genome# *cp); |
| 557 |
void clear_cpcxx . . $ clear_cp(843ee1bb9c5f59ba).(flam3_genomecxx . . $ flam3_genome# *cp, int def_flag); |
| 558 |
|
| 559 |
/* samples is array nsamples*4 long of x,y,color triples. |
| 560 |
using (samples[0], samples[1]) as starting XY point and |
| 561 |
(samples[2], samples[3]) as starting color coordinate, |
| 562 |
perform fuse iterations and throw them away, then perform |
| 563 |
nsamples iterations and save them in the samples array */ |
| 564 |
EXPORTcxx . . $ `flam3.h:40:9`! int flam3_iteratecxx . . $ flam3_iterate(306bdae05b7236da).(flam3_genomecxx . . $ flam3_genome# *g, int nsamples, int fuse, double *samples, |
| 565 |
unsigned short *xform_distrib, randctxcxx . . $ randctx# *rc); |
| 566 |
|
| 567 |
void apply_motion_parameterscxx . . $ apply_motion_parameters(894eeb194f349b78).(flam3_xformcxx . . $ flam3_xform# *xf, flam3_xformcxx . . $ flam3_xform# *addto, double blend); |
| 568 |
|
| 569 |
/* genomes is array ngenomes long, with times set and in ascending order. |
| 570 |
interpolate to the requested time and return in result */ |
| 571 |
EXPORTcxx . . $ `flam3.h:40:9`! void flam3_interpolatecxx . . $ flam3_interpolate(8e79edf768e9d90f).(flam3_genomecxx . . $ flam3_genome# *genomes, int ngenomes, double time, double stagger, flam3_genomecxx . . $ flam3_genome# *result); |
| 572 |
|
| 573 |
/* print genome to given file with extra_attributes if not NULL */ |
| 574 |
EXPORTcxx . . $ `flam3.h:40:9`! void flam3_printcxx . . $ flam3_print(23fe5a5ee5da949e).(FILEcxx . . $ FILE# *f, flam3_genomecxx . . $ flam3_genome# *g, char *extra_attributes, int print_edits); |
| 575 |
void flam3_print_xformcxx . . $ flam3_print_xform(866d1d4a150e299d).(FILEcxx . . $ FILE# *f, flam3_xformcxx . . $ flam3_xform# *x, int final_flag, int numstd, double *chaos_row, int motion_flag); |
| 576 |
EXPORTcxx . . $ `flam3.h:40:9`! char *flam3_print_to_stringcxx . . $ flam3_print_to_string(1831709153df027a).(flam3_genomecxx . . $ flam3_genome# *cp); |
| 577 |
|
| 578 |
/* ivars is a list of variations to use, or flam3_variation_random */ |
| 579 |
/* ivars_n is the number of values in ivars to select from. */ |
| 580 |
/* sym is either a symmetry group or 0 meaning random or no symmetry */ |
| 581 |
/* spec_xforms specifies the number of xforms to use, setting to 0 makes the number random. */ |
| 582 |
EXPORTcxx . . $ `flam3.h:40:9`! void flam3_randomcxx . . $ flam3_random(e35feb07f5031732).(flam3_genomecxx . . $ flam3_genome# *g, int *ivars, int ivars_n, int sym, int spec_xforms); |
| 583 |
|
| 584 |
void add_to_actioncxx . . $ add_to_action(d0489a02ea06dfc6).(char *action, char *addtoaction); |
| 585 |
|
| 586 |
EXPORTcxx . . $ `flam3.h:40:9`! void flam3_mutatecxx . . $ flam3_mutate(e957d3de401f655).(flam3_genomecxx . . $ flam3_genome# *cp, int mutate_mode, int *ivars, int ivars_n, int sym, double speed, randctxcxx . . $ randctx# *rc, char *action); |
| 587 |
EXPORTcxx . . $ `flam3.h:40:9`! void flam3_crosscxx . . $ flam3_cross(5bac51accac4d109).(flam3_genomecxx . . $ flam3_genome# *cp0, flam3_genomecxx . . $ flam3_genome# *cp1, flam3_genomecxx . . $ flam3_genome# *out, int cross_mode, randctxcxx . . $ randctx# *rc, char *action); |
| 588 |
|
| 589 |
/* return NULL in case of error */ |
| 590 |
EXPORTcxx . . $ `flam3.h:40:9`! flam3_genomecxx . . $ flam3_genome# *flam3_parse_xml2cxx . . $ flam3_parse_xml2(fd8b2fcbae765803).(char *s, char *fn, int default_flag, int *ncps); |
| 591 |
flam3_genomecxx . . $ flam3_genome# *flam3_parse_from_filecxx . . $ flam3_parse_from_file(c6e32308d4d1c9).(FILEcxx . . $ FILE# *f, char *fn, int default_flag, int *ncps); |
| 592 |
|
| 593 |
void flam3_add_symmetrycxx . . $ flam3_add_symmetry(843ee1bb9c5f59ba).(flam3_genomecxx . . $ flam3_genome# *g, int sym); |
| 594 |
|
| 595 |
void flam3_improve_colorscxx . . $ flam3_improve_colors(62aa529b45550848).(flam3_genomecxx . . $ flam3_genome# *g, int ntries, int change_palette, int color_resolution); |
| 596 |
EXPORTcxx . . $ `flam3.h:40:9`! int flam3_colorhistcxx . . $ flam3_colorhist(3ab384929fbf3a89).(flam3_genomecxx . . $ flam3_genome# *cp, int num_batches, randctxcxx . . $ randctx# *rc, double *hist); |
| 597 |
EXPORTcxx . . $ `flam3.h:40:9`! int flam3_estimate_bounding_boxcxx . . $ flam3_estimate_bounding_box(82e5f858555d3abb).(flam3_genomecxx . . $ flam3_genome# *g, double eps, int nsamples, |
| 598 |
double *bmin, double *bmax, randctxcxx . . $ randctx# *rc); |
| 599 |
void flam3_rotatecxx . . $ flam3_rotate(383d7ff3d3323ad2).(flam3_genomecxx . . $ flam3_genome# *g, double angle, int interp_type); /* angle in degrees */ |
| 600 |
|
| 601 |
double flam3_dimensioncxx . . $ flam3_dimension(9a23a7cd72174fb1).(flam3_genomecxx . . $ flam3_genome# *g, int ntries, int clip_to_camera); |
| 602 |
double flam3_lyapunovcxx . . $ flam3_lyapunov(11c663caa9b1156b).(flam3_genomecxx . . $ flam3_genome# *g, int ntries); |
| 603 |
|
| 604 |
void flam3_apply_templatecxx . . $ flam3_apply_template(30da8946c6598614).(flam3_genomecxx . . $ flam3_genome# *cp, flam3_genomecxx . . $ flam3_genome# *templ); |
| 605 |
|
| 606 |
EXPORTcxx . . $ `flam3.h:40:9`! int flam3_count_nthreadscxx . . $ flam3_count_nthreads(b126dc7c1de90089).(void); |
| 607 |
|
| 608 |
typedef structcxx . . $ $anonymous_type_d4ed57c78da46593_5# { |
| 609 |
// double temporal_filter_radius; |
| 610 |
double pixel_aspect_ratiocxx . . $ $anonymous_type_d4ed57c78da46593_5#pixel_aspect_ratio.; /* width over height of each pixel */ |
| 611 |
flam3_genomecxx . . $ flam3_genome# *genomescxx . . $ $anonymous_type_d4ed57c78da46593_5#genomes.; |
| 612 |
int ngenomescxx . . $ $anonymous_type_d4ed57c78da46593_5#ngenomes.; |
| 613 |
int verbosecxx . . $ $anonymous_type_d4ed57c78da46593_5#verbose.; |
| 614 |
int bitscxx . . $ $anonymous_type_d4ed57c78da46593_5#bits.; |
| 615 |
int bytes_per_channelcxx . . $ $anonymous_type_d4ed57c78da46593_5#bytes_per_channel.; |
| 616 |
int earlyclipcxx . . $ $anonymous_type_d4ed57c78da46593_5#earlyclip.; |
| 617 |
double timecxx . . $ $anonymous_type_d4ed57c78da46593_5#time.; |
| 618 |
int (*progresscxx . . $ $anonymous_type_d4ed57c78da46593_5#progress.)(void *, double, int, double); |
| 619 |
void *progress_parametercxx . . $ $anonymous_type_d4ed57c78da46593_5#progress_parameter.; |
| 620 |
randctxcxx . . $ randctx# rccxx . . $ $anonymous_type_d4ed57c78da46593_5#rc.; |
| 621 |
int nthreadscxx . . $ $anonymous_type_d4ed57c78da46593_5#nthreads.; |
| 622 |
int sub_batch_sizecxx . . $ $anonymous_type_d4ed57c78da46593_5#sub_batch_size.; |
| 623 |
} flam3_framecxx . . $ flam3_frame#; |
| 624 |
|
| 625 |
|
| 626 |
#define flam3_field_bothcxx . . $ `flam3.h:626:9`! 0 |
| 627 |
#define flam3_field_evencxx . . $ `flam3.h:627:9`! 1 |
| 628 |
#define flam3_field_oddcxx . . $ `flam3.h:628:9`! 2 |
| 629 |
|
| 630 |
/* out is pixel array. |
| 631 |
pixels are rgb or rgba if nchan is 3 or 4. */ |
| 632 |
EXPORTcxx . . $ `flam3.h:40:9`! int flam3_rendercxx . . $ flam3_render(65dcdf3bdd0e255d).(flam3_framecxx . . $ flam3_frame# *f, void *out, int field, int nchan, int transp, stat_structcxx . . $ stat_struct# *stats); |
| 633 |
|
| 634 |
EXPORTcxx . . $ `flam3.h:40:9`! double flam3_render_memory_requiredcxx . . $ flam3_render_memory_required(799440f09e6419ff).(flam3_framecxx . . $ flam3_frame# *f); |
| 635 |
EXPORTcxx . . $ `flam3.h:40:9`! int flam3_make_stripcxx . . $ flam3_make_strip(605d0174c5e02b6a).(flam3_genomecxx . . $ flam3_genome# *cp, int nstrips, int stripnum); |
| 636 |
void rotate_bycxx . . $ rotate_by(4473cd57b8a5a7de).(double *p, double *center, double by); |
| 637 |
|
| 638 |
|
| 639 |
double flam3_random01cxx . . $ flam3_random01(b7b5bf912346b3df).(); |
| 640 |
double flam3_random11cxx . . $ flam3_random11(b7b5bf912346b3df).(); |
| 641 |
int flam3_random_bitcxx . . $ flam3_random_bit(d1b40a211a1a4e4c).(); |
| 642 |
|
| 643 |
/* ISAAC random numbers */ |
| 644 |
double flam3_random_isaac_01cxx . . $ flam3_random_isaac_01(fba09093e586de7a).(randctxcxx . . $ randctx# *); |
| 645 |
double flam3_random_isaac_11cxx . . $ flam3_random_isaac_11(fba09093e586de7a).(randctxcxx . . $ randctx# *); |
| 646 |
int flam3_random_isaac_bitcxx . . $ flam3_random_isaac_bit(d3d9620cef45ee1b).(randctxcxx . . $ randctx# *); |
| 647 |
|
| 648 |
EXPORTcxx . . $ `flam3.h:40:9`! void flam3_init_framecxx . . $ flam3_init_frame(4142e08dcdbbecd8).(flam3_framecxx . . $ flam3_frame# *f); |
| 649 |
|
| 650 |
/* External memory helpers */ |
| 651 |
EXPORTcxx . . $ `flam3.h:40:9`! void *flam3_malloccxx . . $ flam3_malloc(bfcfa4d6b7f7ef64).(size_tcxx . . $ size_t# size); |
| 652 |
EXPORTcxx . . $ `flam3.h:40:9`! void flam3_freecxx . . $ flam3_free(5d22bdacc48458e8).(void *ptr); |
| 653 |
|
| 654 |
void flam3_srandomcxx . . $ flam3_srandom(d878ad36e69247c7).(); |
| 655 |
|
| 656 |
flam3_genomecxx . . $ flam3_genome# *sheep_loopcxx . . $ sheep_loop(5fa0f3124026a8e5).(flam3_genomecxx . . $ flam3_genome# *cp, double blend); |
| 657 |
flam3_genomecxx . . $ flam3_genome# *sheep_edgecxx . . $ sheep_edge(f2c03aa77bf0761d).(flam3_genomecxx . . $ flam3_genome# *cp, double blend, int seqflag, double stagger); |
| 658 |
|
| 659 |
/* Motion function indices */ |
| 660 |
#define MOTION_SINcxx . . $ `flam3.h:660:9`! 1 |
| 661 |
#define MOTION_TRIANGLEcxx . . $ `flam3.h:661:9`! 2 |
| 662 |
#define MOTION_HILLcxx . . $ `flam3.h:662:9`! 3 |
| 663 |
|
| 664 |
/* Mutation modes */ |
| 665 |
#define MUTATE_NOT_SPECIFIEDcxx . . $ `flam3.h:665:9`! -1 |
| 666 |
#define MUTATE_ALL_VARIATIONScxx . . $ `flam3.h:666:9`! 0 |
| 667 |
#define MUTATE_ONE_XFORM_COEFScxx . . $ `flam3.h:667:9`! 1 |
| 668 |
#define MUTATE_ADD_SYMMETRYcxx . . $ `flam3.h:668:9`! 2 |
| 669 |
#define MUTATE_POST_XFORMScxx . . $ `flam3.h:669:9`! 3 |
| 670 |
#define MUTATE_COLOR_PALETTEcxx . . $ `flam3.h:670:9`! 4 |
| 671 |
#define MUTATE_DELETE_XFORMcxx . . $ `flam3.h:671:9`! 5 |
| 672 |
#define MUTATE_ALL_COEFScxx . . $ `flam3.h:672:9`! 6 |
| 673 |
|
| 674 |
/* Cross modes */ |
| 675 |
#define CROSS_NOT_SPECIFIEDcxx . . $ `flam3.h:675:9`! -1 |
| 676 |
#define CROSS_UNIONcxx . . $ `flam3.h:676:9`! 0 |
| 677 |
#define CROSS_INTERPOLATEcxx . . $ `flam3.h:677:9`! 1 |
| 678 |
#define CROSS_ALTERNATEcxx . . $ `flam3.h:678:9`! 2 |
| 679 |
|
| 680 |
/* Filters */ |
| 681 |
/* Spatial filter kernels */ |
| 682 |
#define flam3_gaussian_kernelcxx . . $ `flam3.h:682:9`! 0 |
| 683 |
#define flam3_hermite_kernelcxx . . $ `flam3.h:683:9`! 1 |
| 684 |
#define flam3_box_kernelcxx . . $ `flam3.h:684:9`! 2 |
| 685 |
#define flam3_triangle_kernelcxx . . $ `flam3.h:685:9`! 3 |
| 686 |
#define flam3_bell_kernelcxx . . $ `flam3.h:686:9`! 4 |
| 687 |
#define flam3_b_spline_kernelcxx . . $ `flam3.h:687:9`! 5 |
| 688 |
#define flam3_lanczos3_kernelcxx . . $ `flam3.h:688:9`! 6 |
| 689 |
#define flam3_lanczos2_kernelcxx . . $ `flam3.h:689:9`! 7 |
| 690 |
#define flam3_mitchell_kernelcxx . . $ `flam3.h:690:9`! 8 |
| 691 |
#define flam3_blackman_kernelcxx . . $ `flam3.h:691:9`! 9 |
| 692 |
#define flam3_catrom_kernelcxx . . $ `flam3.h:692:9`! 10 |
| 693 |
#define flam3_hamming_kernelcxx . . $ `flam3.h:693:9`! 11 |
| 694 |
#define flam3_hanning_kernelcxx . . $ `flam3.h:694:9`! 12 |
| 695 |
#define flam3_quadratic_kernelcxx . . $ `flam3.h:695:9`! 13 |
| 696 |
|
| 697 |
/* Temporal filters */ |
| 698 |
#define flam3_temporal_boxcxx . . $ `flam3.h:698:9`! 0 |
| 699 |
#define flam3_temporal_gaussiancxx . . $ `flam3.h:699:9`! 1 |
| 700 |
#define flam3_temporal_expcxx . . $ `flam3.h:700:9`! 2 |
| 701 |
|
| 702 |
|
| 703 |
#endif |