LiVES 2.4.6

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
effects-data.h
Go to the documentation of this file.
1 // effects-data.h
2 // LiVES (lives-exe)
3 // (c) G. Finch 2005 - 2012 (salsaman@gmail.com)
4 // Released under the GPL 3 or later
5 // see file ../COPYING for licensing details
6
7
8 #define FX_DATA_WILDCARD -1000000
9
10 #define FX_DATA_KEY_SUBTITLES -1
11 #define FX_DATA_KEY_PLAYBACK_PLUGIN -2
12
13 #define EXTRA_PARAMS_OUT 1
14 #define EXTRA_PARAMS_IN 1
15
16 #define FX_DATA_PARAM_ACTIVE -1
17
18 // struct for connecting out params to in params
19
20 typedef struct _lives_pconnect_t lives_pconnect_t;
21
22
23 // when an out parameter is mapped/updated, we add it to here
24
25 // when unmapped we delete it
26
27
28 struct _lives_pconnect_t {
29 int okey;
30 int omode;
31
32 int nparams;
33
34 // index to parameters which are to be copied (|params|)
35 int *params;
36
37 // number of connections for each param
38 int *nconns;
39
40 // each param is mapped to nconns[i] of these
41 int *ikey;
42 int *imode;
43 int *ipnum;
44 boolean *autoscale;
45
46 lives_pconnect_t *next;
47
48 };
49
50
52 void pconx_add_connection(int okey, int omode, int opnum, int ikey, int imode, int ipnum, boolean autoscale);
53
54 // free all connections (and set mainw->pconx to NULL)
55 void pconx_delete_all();
56
57 void pconx_delete(int okey, int omode, int ocnum, int ikey, int imode, int icnum);
58
59 void pconx_remap_mode(int key, int omode, int nmode);
60
61 // chain any output data into fx key/mode
62 boolean pconx_chain_data(int key, int mode);
63
64 // return list of in keys/modes/params/autoscale
65 char *pconx_list(int okey, int omode, int opnum);
66
67 // special version for compound fx internal connections
68 boolean pconx_chain_data_internal(weed_plant_t *inst);
69
70
71 // alpha channels
72
73
74 // struct for connecting out alphas to in alphas
75
76 typedef struct _lives_cconnect_t lives_cconnect_t;
77
78
79 // when an out alpha is mapped/updated, we add it to here
80
81 // when unmapped we delete it
82
83
84
85 struct _lives_cconnect_t {
86 int okey;
87 int omode;
88
89 int nchans;
90
91 // index to chans which are to be copied
92 int *chans;
93
94 // number of connections for each channel
95 int *nconns;
96
97 // each param is mapped to nconns[i] of these
98 int *ikey;
99 int *imode;
100 int *icnum;
101
102 lives_cconnect_t *next;
103
104 };
105
106
108 void cconx_add_connection(int okey, int omode, int ocnum, int ikey, int imode, int icnum);
109
110 // free all connections (and set mainw->cconx to NULL)
111 void cconx_delete_all();
112
113 void cconx_delete(int okey, int omode, int ocnum, int ikey, int imode, int icnum);
114
115 void cconx_remap_mode(int key, int omode, int nmode);
116
117 // chain any output data into fx key/mode
118 boolean cconx_chain_data(int key, int mode);
119
120 // return list of in chaannels/modes/params
121 char *cconx_list(int okey, int omode, int ocnum);
122
123 boolean cconx_chain_data_internal(weed_plant_t *ichan);
124
125
127
128 void override_if_active_input(int hotkey);
129 void end_override_if_activate_output(int hotkey);
130
132
133 typedef struct {
134 weed_plant_t *filter;
135
136 int okey;
137 int omode;
138 int num_alpha;
139 int num_params;
140 int ntabs;
141
142 lives_cconnect_t *cconx;
143 lives_pconnect_t *pconx;
144
145 LiVESWidget *conx_dialog;
146 LiVESWidget *acbutton;
147 LiVESWidget *apbutton;
148 LiVESWidget *disconbutton;
149
150 LiVESWidget **clabel;
151 LiVESWidget **pclabel;
152 LiVESWidget **cfxcombo;
153 LiVESWidget **pfxcombo;
154 LiVESWidget **pcombo;
155 LiVESWidget **ccombo;
156 LiVESWidget **acheck;
157 LiVESWidget **add_button;
158 LiVESWidget **del_button;
159 LiVESWidget *allcheckc;
160 LiVESWidget *allcheck_label;
161
162 LiVESWidget *tablec;
163 LiVESWidget *tablep;
164
165 // table row counts
166 int trowsc;
167 int trowsp;
168
169 // # dislay rows for each param/channel
170 int *dispc;
171 int *dispp;
172
173 int *ikeys;
174 int *imodes;
175 int *idx;
176
177 ulong *dpc_func;
178 ulong *dpp_func;
179 ulong *acheck_func;
180
181 } lives_conx_w;
182
183
184
185
186 LiVESWidget *make_datacon_window(int key, int mode);
187
188 int pconx_check_connection(weed_plant_t *ofilter, int opnum, int ikey, int imode, int ipnum, boolean setup, weed_plant_t **iparam_ret,
189 int *idx_ret,
190 int *okey, int *omode, int *oopnum);
191
192 int cconx_check_connection(int ikey, int imode, int icnum, boolean setup, weed_plant_t **ichan_ret, int *idx_ret, int *okey, int *omode,
193 int *ocnum);
194
195
196
197 boolean feeds_to_video_filters(int okey, int omode);
198 boolean feeds_to_audio_filters(int okey, int omode);
_lives_pconnect_t::nconns
int * nconns
Definition: effects-data.h:38
lives_conx_w::num_params
int num_params
Definition: effects-data.h:139
lives_conx_w::tablep
LiVESWidget * tablep
Definition: effects-data.h:163
cconx_remap_mode
void cconx_remap_mode(int key, int omode, int nmode)
Definition: effects-data.c:1684
_lives_cconnect_t::icnum
int * icnum
Definition: effects-data.h:100
lives_conx_w::disconbutton
LiVESWidget * disconbutton
Definition: effects-data.h:148
lives_conx_w::allcheck_label
LiVESWidget * allcheck_label
Definition: effects-data.h:160
lives_conx_w::dispp
int * dispp
Definition: effects-data.h:171
pconx_list
char * pconx_list(int okey, int omode, int opnum)
Definition: effects-data.c:224
pconx_add_connection
void pconx_add_connection(int okey, int omode, int opnum, int ikey, int imode, int ipnum, boolean autoscale)
add a new connection from out_param okey/omode/opnum to in_param ikey/imode/ipnum ...
Definition: effects-data.c:598
end_override_if_activate_output
void end_override_if_activate_output(int hotkey)
Definition: effects-data.c:101
pconx_chain_data
boolean pconx_chain_data(int key, int mode)
Definition: effects-data.c:1336
lives_conx_w::num_alpha
int num_alpha
Definition: effects-data.h:138
_lives_pconnect_t::omode
int omode
Definition: effects-data.h:30
lives_conx_w::pclabel
LiVESWidget ** pclabel
Definition: effects-data.h:151
_lives_cconnect_t::nconns
int * nconns
Definition: effects-data.h:95
lives_conx_w::acheck_func
ulong * acheck_func
Definition: effects-data.h:179
_lives_pconnect_t::okey
int okey
okey is 0 based
Definition: effects-data.h:29
_lives_pconnect_t::params
int * params
Definition: effects-data.h:35
lives_conx_w::dpp_func
ulong * dpp_func
Definition: effects-data.h:178
lives_conx_w::conx_dialog
LiVESWidget * conx_dialog
Definition: effects-data.h:145
lives_conx_w::acheck
LiVESWidget ** acheck
Definition: effects-data.h:156
cconx_delete
void cconx_delete(int okey, int omode, int ocnum, int ikey, int imode, int icnum)
Definition: effects-data.c:1594
feeds_to_audio_filters
boolean feeds_to_audio_filters(int okey, int omode)
Definition: effects-data.c:2177
lives_conx_w::filter
weed_plant_t * filter
Definition: effects-data.h:134
_lives_pconnect_t
Definition: effects-data.h:28
_lives_cconnect_t::imode
int * imode
Definition: effects-data.h:99
_lives_pconnect_t::ikey
int * ikey
ikey is 0 based
Definition: effects-data.h:41
lives_conx_w::cconx
lives_cconnect_t * cconx
Definition: effects-data.h:142
lives_conx_w::dispc
int * dispc
Definition: effects-data.h:170
lives_conx_w::ntabs
int ntabs
Definition: effects-data.h:140
lives_conx_w::clabel
LiVESWidget ** clabel
Definition: effects-data.h:150
pconx_remap_mode
void pconx_remap_mode(int key, int omode, int nmode)
Definition: effects-data.c:358
lives_conx_w
Definition: effects-data.h:133
make_datacon_window
LiVESWidget * make_datacon_window(int key, int mode)
Definition: effects-data.c:4671
lives_conx_w::pfxcombo
LiVESWidget ** pfxcombo
Definition: effects-data.h:153
_lives_cconnect_t::okey
int okey
okey is 0 based
Definition: effects-data.h:86
lives_conx_w::trowsp
int trowsp
Definition: effects-data.h:167
override_if_active_input
void override_if_active_input(int hotkey)
Definition: effects-data.c:68
lives_conx_w::idx
int * idx
Definition: effects-data.h:175
feeds_to_video_filters
boolean feeds_to_video_filters(int okey, int omode)
Definition: effects-data.c:2124
_lives_cconnect_t::next
lives_cconnect_t * next
Definition: effects-data.h:102
_lives_pconnect_t::nparams
int nparams
number of parameters which are linked
Definition: effects-data.h:32
lives_conx_w::acbutton
LiVESWidget * acbutton
Definition: effects-data.h:146
_lives_cconnect_t::omode
int omode
Definition: effects-data.h:87
lives_conx_w::ikeys
int * ikeys
Definition: effects-data.h:173
_lives_pconnect_t::ipnum
int * ipnum
Definition: effects-data.h:43
cconx_chain_data_internal
boolean cconx_chain_data_internal(weed_plant_t *ichan)
Definition: effects-data.c:2110
_lives_cconnect_t::chans
int * chans
Definition: effects-data.h:92
_lives_cconnect_t::ikey
int * ikey
ikey is 0 based
Definition: effects-data.h:98
pconx_delete
void pconx_delete(int okey, int omode, int opnum, int ikey, int imode, int ipnum)
Definition: effects-data.c:257
ulong
#define ulong
Definition: main.h:148
lives_conx_w::apbutton
LiVESWidget * apbutton
Definition: effects-data.h:147
_lives_pconnect_t::imode
int * imode
Definition: effects-data.h:42
lives_conx_w::pcombo
LiVESWidget ** pcombo
Definition: effects-data.h:154
lives_conx_w::imodes
int * imodes
Definition: effects-data.h:174
cconx_check_connection
int cconx_check_connection(int ikey, int imode, int icnum, boolean setup, weed_plant_t **ichan_ret, int *idx_ret, int *okey, int *omode, int *ocnum)
Definition: effects-data.c:3538
pconx_check_connection
int pconx_check_connection(weed_plant_t *ofilter, int opnum, int ikey, int imode, int ipnum, boolean setup, weed_plant_t **iparam_ret, int *idx_ret, int *okey, int *omode, int *oopnum)
Definition: effects-data.c:3286
lives_conx_w::allcheckc
LiVESWidget * allcheckc
Definition: effects-data.h:159
lives_conx_w::trowsc
int trowsc
Definition: effects-data.h:166
lives_conx_w::tablec
LiVESWidget * tablec
Definition: effects-data.h:162
lives_conx_w::pconx
lives_pconnect_t * pconx
Definition: effects-data.h:143
cconx_chain_data
boolean cconx_chain_data(int key, int mode)
Definition: effects-data.c:2074
lives_conx_w::omode
int omode
Definition: effects-data.h:137
lives_conx_w::add_button
LiVESWidget ** add_button
Definition: effects-data.h:157
pconx_chain_data_internal
boolean pconx_chain_data_internal(weed_plant_t *inst)
Definition: effects-data.c:1445
cconx_add_connection
void cconx_add_connection(int okey, int omode, int ocnum, int ikey, int imode, int icnum)
add a new connection from out_chan okey/omode/ocnum to in_chan ikey/imode/icnum
Definition: effects-data.c:1900
_lives_cconnect_t::nchans
int nchans
number of alpha channels which are linked (|chans|)
Definition: effects-data.h:89
lives_conx_w::cfxcombo
LiVESWidget ** cfxcombo
Definition: effects-data.h:152
pconx_delete_all
void pconx_delete_all(void)
Definition: effects-data.c:138
lives_conx_w::dpc_func
ulong * dpc_func
Definition: effects-data.h:177
lives_conx_w::okey
int okey
Definition: effects-data.h:136
lives_conx_w::del_button
LiVESWidget ** del_button
Definition: effects-data.h:158
lives_conx_w::ccombo
LiVESWidget ** ccombo
Definition: effects-data.h:155
_lives_pconnect_t::next
lives_pconnect_t * next
Definition: effects-data.h:46
_lives_pconnect_t::autoscale
boolean * autoscale
Definition: effects-data.h:44
_lives_cconnect_t
Definition: effects-data.h:85
cconx_delete_all
void cconx_delete_all(void)
Definition: effects-data.c:1488
cconx_list
char * cconx_list(int okey, int omode, int ocnum)
Definition: effects-data.c:1564