]> git.sesse.net Git - vlc/blob - modules/visualization/galaktos/custom_wave.h
Fix compilation of galaktos:
[vlc] / modules / visualization / galaktos / custom_wave.h
1 #ifndef CUSTOM_WAVE_H
2 #define CUSTOM_WAVE_H
3 #define CUSTOM_WAVE_DEBUG 0
4 #include "expr_types.h"
5 #include "custom_wave_types.h"
6 #include "preset_types.h"
7 #include "splaytree.h"
8 #include "init_cond.h"
9
10
11 void free_custom_wave(custom_wave_t * custom_wave);
12 custom_wave_t * new_custom_wave(int id);
13
14 void free_per_point_eqn(per_point_eqn_t * per_point_eqn);
15 per_point_eqn_t * new_per_point_eqn(int index, param_t * param,gen_expr_t * gen_expr);
16 void reset_per_point_eqn_array(custom_wave_t * custom_wave);
17 custom_wave_t * find_custom_wave(int id, preset_t * preset, int create_flag);
18
19 int add_per_point_eqn(char * name, gen_expr_t * gen_expr, custom_wave_t * custom_wave);
20 void evalCustomWaveInitConditions();
21 void evalPerPointEqns();
22 custom_wave_t * nextCustomWave();
23 void load_unspecified_init_conds(custom_wave_t * custom_wave);
24
25 static inline void eval_custom_wave_init_conds(custom_wave_t * custom_wave) {
26   splay_traverse(eval_init_cond, custom_wave->init_cond_tree);
27   splay_traverse(eval_init_cond, custom_wave->per_frame_init_eqn_tree);
28 }
29 #endif