00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 #ifndef __WEED_EFFECTS_H__
00048 #define __WEED_EFFECTS_H__
00049
00050 #ifndef __WEED_H__
00051 #include <weed/weed.h>
00052 #endif
00053
00054 #ifdef __cplusplus
00055 extern "C"
00056 {
00057 #endif
00058
00059
00060 #define WEED_API_VERSION 131
00061 #define WEED_API_VERSION_131
00062
00063
00064 #define WEED_PLANT_PLUGIN_INFO 1
00065 #define WEED_PLANT_FILTER_CLASS 2
00066 #define WEED_PLANT_FILTER_INSTANCE 3
00067 #define WEED_PLANT_CHANNEL_TEMPLATE 4
00068 #define WEED_PLANT_PARAMETER_TEMPLATE 5
00069 #define WEED_PLANT_CHANNEL 6
00070 #define WEED_PLANT_PARAMETER 7
00071 #define WEED_PLANT_GUI 8
00072 #define WEED_PLANT_HOST_INFO 255
00073
00074
00075 #define WEED_HINT_UNSPECIFIED 0
00076 #define WEED_HINT_INTEGER 1
00077 #define WEED_HINT_FLOAT 2
00078 #define WEED_HINT_TEXT 3
00079 #define WEED_HINT_SWITCH 4
00080 #define WEED_HINT_COLOR 5
00081
00082
00083 #define WEED_COLORSPACE_RGB 1
00084 #define WEED_COLORSPACE_RGBA 2
00085
00086
00087 #define WEED_FILTER_NON_REALTIME (1<<0)
00088 #define WEED_FILTER_IS_CONVERTER (1<<1)
00089 #define WEED_FILTER_HINT_IS_STATELESS (1<<2)
00090 #define WEED_FILTER_HINT_IS_POINT_EFFECT (1<<3) // deprecated !!
00091
00092
00093 #define WEED_FILTER_HINT_MAY_THREAD (1<<5)
00094
00095
00096 #define WEED_FILTER_PROCESS_LAST (1<<4)
00097
00098
00099 #define WEED_CHANNEL_REINIT_ON_SIZE_CHANGE (1<<0)
00100
00101
00102 #define WEED_CHANNEL_REINIT_ON_ROWSTRIDES_CHANGE (1<<6)
00103
00104 #define WEED_CHANNEL_REINIT_ON_PALETTE_CHANGE (1<<1)
00105 #define WEED_CHANNEL_CAN_DO_INPLACE (1<<2)
00106 #define WEED_CHANNEL_SIZE_CAN_VARY (1<<3)
00107 #define WEED_CHANNEL_PALETTE_CAN_VARY (1<<4)
00108
00109
00110 #define WEED_PARAMETER_REINIT_ON_VALUE_CHANGE (1<<0)
00111 #define WEED_PARAMETER_VARIABLE_ELEMENTS (1<<1)
00112
00113
00114 #define WEED_PARAMETER_ELEMENT_PER_CHANNEL (1<<2)
00115
00116
00117 #define WEED_ERROR_TOO_MANY_INSTANCES 6
00118 #define WEED_ERROR_HARDWARE 7
00119 #define WEED_ERROR_INIT_ERROR 8
00120 #define WEED_ERROR_PLUGIN_INVALID 64
00121
00122
00123 typedef weed_plant_t *(*weed_bootstrap_f) (weed_default_getter_f *value, int num_versions, int *plugin_versions);
00124
00125
00126 typedef weed_plant_t *(*weed_setup_f)(weed_bootstrap_f weed_boot);
00127 typedef void (*weed_desetup_f)(void);
00128 typedef int (*weed_init_f) (weed_plant_t *filter_instance);
00129 typedef int (*weed_process_f) (weed_plant_t *filter_instance, weed_timecode_t timestamp);
00130 typedef int (*weed_deinit_f) (weed_plant_t *filter_instance);
00131
00132
00133 typedef void (*weed_display_f)(weed_plant_t *parameter);
00134 typedef int (*weed_interpolate_f)(weed_plant_t **in_values, weed_plant_t *out_value);
00135
00136
00137 weed_plant_t *weed_setup (weed_bootstrap_f weed_boot);
00138
00139 #ifdef __cplusplus
00140 }
00141 #endif
00142
00143 #endif // #ifndef __WEED_EFFECTS_H__