libweed  0.0.3
 All Data Structures Files Functions Variables Typedefs Macros
weed-plugin-utils.h
Go to the documentation of this file.
1 /* WEED is free software; you can redistribute it and/or
2  modify it under the terms of the GNU Lesser General Public
3  License as published by the Free Software Foundation; either
4  version 3 of the License, or (at your option) any later version.
5 
6  Weed is distributed in the hope that it will be useful,
7  but WITHOUT ANY WARRANTY; without even the implied warranty of
8  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9  Lesser General Public License for more details.
10 
11  You should have received a copy of the GNU Lesser General Public
12  License along with this source code; if not, write to the Free Software
13  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
14 
15 
16  Weed is developed by:
17 
18  Gabriel "Salsaman" Finch - http://lives.sourceforge.net
19 
20  mainly based on LiViDO, which is developed by:
21 
22 
23  Niels Elburg - http://veejay.sf.net
24 
25  Gabriel "Salsaman" Finch - http://lives.sourceforge.net
26 
27  Denis "Jaromil" Rojo - http://freej.dyne.org
28 
29  Tom Schouten - http://zwizwa.fartit.com
30 
31  Andraz Tori - http://cvs.cinelerra.org
32 
33  reviewed with suggestions and contributions from:
34 
35  Silvano "Kysucix" Galliani - http://freej.dyne.org
36 
37  Kentaro Fukuchi - http://megaui.net/fukuchi
38 
39  Jun Iio - http://www.malib.net
40 
41  Carlo Prelz - http://www2.fluido.as:8080/
42 
43 */
44 
45 /* (C) Gabriel "Salsaman" Finch, 2005 - 2007 */
46 
47 #ifndef __WEED_PLUGIN_UTILS_H__
48 #define __WEED_PLUGIN_UTILS_H__
49 
50 #ifndef __WEED_H__
51 #include <weed/weed.h>
52 #endif
53 
54 #ifndef __WEED_PALETTES_H__
55 #include <weed/weed-palettes.h>
56 #endif
57 
58 #ifdef __cplusplus
59 extern "C"
60 {
61 #endif /* __cplusplus */
62 
63 #ifdef __WEED_EFFECTS_H__
64  weed_plant_t *weed_plugin_info_init (weed_bootstrap_f weed_boot, int num_versions, int *api_versions);
65  weed_plant_t *weed_filter_class_init (const char *name, const char *author, int version, int flags, weed_init_f init_func, weed_process_f process_func, weed_deinit_f deinit_func, weed_plant_t **in_chantmpls, weed_plant_t **out_chantmpls, weed_plant_t **in_paramtmpls, weed_plant_t **out_paramtmpls);
66 #endif
67  int weed_get_api_version(weed_plant_t *plugin_info);
68  weed_plant_t *weed_channel_template_init (const char *name, int flags, int *palettes);
69  weed_plant_t *weed_audio_channel_template_init (const char *name, int flags);
70  void weed_plugin_info_add_filter_class (weed_plant_t *plugin_info, weed_plant_t *filter_class);
73 
74  weed_plant_t *weed_integer_init (const char *name, const char *label, int def, int min, int max);
75  weed_plant_t *weed_string_list_init (const char *name, const char *label, int def, const char ** const list);
76  weed_plant_t *weed_switch_init (const char *name, const char *label, int def);
77  weed_plant_t *weed_radio_init (const char *name, const char *label, int def, int group);
78  weed_plant_t *weed_float_init (const char *name, const char *label, double def, double min, double max);
79  weed_plant_t *weed_text_init (const char *name, const char *label, const char *def);
80  weed_plant_t *weed_colRGBi_init (const char *name, const char *label, int red, int green, int blue);
81  weed_plant_t *weed_colRGBd_init (const char *name, const char *label, double red, double green, double blue);
82 
83  weed_plant_t *weed_out_param_integer_init (const char *name, int def, int min, int max);
84  weed_plant_t *weed_out_param_switch_init (const char *name, int def);
85  weed_plant_t *weed_out_param_float_init (const char *name, double def, double min, double max);
86  weed_plant_t *weed_out_param_text_init (const char *name, const char *def);
87  weed_plant_t *weed_out_param_colRGBi_init (const char *name, int red, int green, int blue);
88  weed_plant_t *weed_out_param_colRGBd_init (const char *name, double red, double green, double blue);
89 
91 
92 #ifdef __cplusplus
93 }
94 #endif /* __cplusplus */
95 
96 #endif // #ifndef __WEED_PLUGIN_UTILS_H__
97 
98