]> git.sesse.net Git - vlc/blob - modules/visualization/galaktos/preset_types.h
Removes trailing spaces. Removes tabs.
[vlc] / modules / visualization / galaktos / preset_types.h
1 #ifndef PRESET_TYPES_H
2 #define PRESET_TYPES_H
3
4 #include "splaytree_types.h"
5 #include "expr_types.h"
6 #include "per_pixel_eqn_types.h"
7
8 typedef enum {    
9   ALPHA_NEXT,
10   ALPHA_PREVIOUS,
11   RANDOM_NEXT,
12   RESTART_ACTIVE,
13 } switch_mode_t;
14
15 typedef struct PRESET_T {
16  
17   char name[MAX_TOKEN_SIZE]; /* preset name as parsed in file */
18   char file_path[MAX_PATH_SIZE]; /* Points to the preset file name */
19  
20   int per_pixel_eqn_string_index;
21   int per_frame_eqn_string_index;
22   int per_frame_init_eqn_string_index;
23     
24   int per_pixel_flag[NUM_OPS];
25   char per_pixel_eqn_string_buffer[STRING_BUFFER_SIZE];
26   char per_frame_eqn_string_buffer[STRING_BUFFER_SIZE];
27   char per_frame_init_eqn_string_buffer[STRING_BUFFER_SIZE];
28
29   /* Data structures that contain equation and initial condition information */
30   splaytree_t * per_frame_eqn_tree;   /* per frame equations */
31   splaytree_t * per_pixel_eqn_tree; /* per pixel equation tree */
32   gen_expr_t * per_pixel_eqn_array[NUM_OPS]; /* per pixel equation array */
33   splaytree_t * per_frame_init_eqn_tree; /* per frame initial equations */
34   splaytree_t * init_cond_tree; /* initial conditions */
35   splaytree_t * user_param_tree; /* user parameter splay tree */
36
37   splaytree_t * custom_wave_tree; /* custom wave forms for this preset */
38   splaytree_t * custom_shape_tree; /* custom shapes for this preset */
39
40 } preset_t;
41 #endif