00001 #ifndef PRESET_TYPES_H
00002 #define PRESET_TYPES_H
00003
00004 #include "splaytree_types.h"
00005 #include "expr_types.h"
00006 #include "per_pixel_eqn_types.h"
00007
00008 typedef enum {
00009 ALPHA_NEXT,
00010 ALPHA_PREVIOUS,
00011 RANDOM_NEXT,
00012 RESTART_ACTIVE,
00013 } switch_mode_t;
00014
00015 typedef struct PRESET_T {
00016
00017 char name[MAX_TOKEN_SIZE];
00018 char file_path[MAX_PATH_SIZE];
00019
00020 int per_pixel_eqn_string_index;
00021 int per_frame_eqn_string_index;
00022 int per_frame_init_eqn_string_index;
00023
00024 int per_pixel_flag[NUM_OPS];
00025 char per_pixel_eqn_string_buffer[STRING_BUFFER_SIZE];
00026 char per_frame_eqn_string_buffer[STRING_BUFFER_SIZE];
00027 char per_frame_init_eqn_string_buffer[STRING_BUFFER_SIZE];
00028
00029
00030 splaytree_t * per_frame_eqn_tree;
00031 splaytree_t * per_pixel_eqn_tree;
00032 gen_expr_t * per_pixel_eqn_array[NUM_OPS];
00033 splaytree_t * per_frame_init_eqn_tree;
00034 splaytree_t * init_cond_tree;
00035 splaytree_t * user_param_tree;
00036
00037 splaytree_t * custom_wave_tree;
00038 splaytree_t * custom_shape_tree;
00039
00040 } preset_t;
00041 #endif