Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

preset_types.h

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]; /* preset name as parsed in file */
00018   char file_path[MAX_PATH_SIZE]; /* Points to the preset file name */
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   /* Data structures that contain equation and initial condition information */
00030   splaytree_t * per_frame_eqn_tree;   /* per frame equations */
00031   splaytree_t * per_pixel_eqn_tree; /* per pixel equation tree */
00032   gen_expr_t * per_pixel_eqn_array[NUM_OPS]; /* per pixel equation array */
00033   splaytree_t * per_frame_init_eqn_tree; /* per frame initial equations */
00034   splaytree_t * init_cond_tree; /* initial conditions */
00035   splaytree_t * user_param_tree; /* user parameter splay tree */
00036 
00037   splaytree_t * custom_wave_tree; /* custom wave forms for this preset */
00038   splaytree_t * custom_shape_tree; /* custom shapes for this preset */
00039 
00040 } preset_t;
00041 #endif

Generated on Tue Dec 20 10:14:59 2005 for vlc-0.8.4a by  doxygen 1.4.2