LiVES  2.0.3
 All Data Structures 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 
9 // struct for connecting out params to in params
10 
11 typedef struct _lives_pconnect_t lives_pconnect_t;
12 
13 
14 // when an out parameter is mapped/updated, we add it to here
15 
16 // when unmapped we delete it
17 
18 
20  int okey;
21  int omode;
22 
23  int nparams;
24 
25  // index to parameters which are to be copied (|params|)
26  int *params;
27 
28  // number of connections for each param
29  int *nconns;
30 
31  // each param is mapped to nconns[i] of these
32  int *ikey;
33  int *imode;
34  int *ipnum;
35  boolean *autoscale;
36 
37  lives_pconnect_t *next;
38 
39 };
40 
41 
42 
44 void pconx_add_connection(int okey, int omode, int opnum, int ikey, int imode, int ipnum, boolean autoscale);
45 
47 weed_plant_t *pconx_get_out_param(boolean use_filter, int ikey, int imode, int ipnum, boolean *autoscale);
48 
49 // free all connections (and set mainw->pconx to NULL)
50 void pconx_delete_all();
51 
52 void pconx_delete(int okey, int omode, int ocnum, int ikey, int imode, int icnum);
53 
54 void pconx_remap_mode(int key, int omode, int nmode);
55 
56 // chain any output data into fx key/mode
57 boolean pconx_chain_data(int key, int mode);
58 
59 // return list of in keys/modes/params/autoscale
60 gchar *pconx_list(int okey, int omode, int opnum);
61 
62 // special version for compound fx internal connections
63 boolean pconx_chain_data_internal(weed_plant_t *inst);
64 
65 
66 // alpha channels
67 
68 
69 // struct for connecting out alphas to in alphas
70 
71 typedef struct _lives_cconnect_t lives_cconnect_t;
72 
73 
74 // when an out alpha is mapped/updated, we add it to here
75 
76 // when unmapped we delete it
77 
78 
79 
81  int okey;
82  int omode;
83 
84  int nchans;
85 
86  // index to chans which are to be copied
87  int *chans;
88 
89  // number of connections for each channel
90  int *nconns;
91 
92  // each param is mapped to nconns[i] of these
93  int *ikey;
94  int *imode;
95  int *icnum;
96 
97  lives_cconnect_t *next;
98 
99 };
100 
101 
102 
104 void cconx_add_connection(int okey, int omode, int ocnum, int ikey, int imode, int icnum);
105 
107 weed_plant_t *cconx_get_out_chan(boolean use_filter, int ikey, int imode, int ipnum);
108 
109 // free all connections (and set mainw->cconx to NULL)
110 void cconx_delete_all();
111 
112 void cconx_delete(int okey, int omode, int ocnum, int ikey, int imode, int icnum);
113 
114 void cconx_remap_mode(int key, int omode, int nmode);
115 
116 // chain any output data into fx key/mode
117 boolean cconx_chain_data(int key, int mode);
118 
119 // return list of in chaannels/modes/params
120 gchar *cconx_list(int okey, int omode, int ocnum);
121 
122 boolean cconx_chain_data_internal(weed_plant_t *ichan);
123 
124 
126 
127 
128 typedef struct {
129  int okey;
130  int omode;
133  int ntabs;
134  GtkWidget *conx_dialog;
135 
136  // per tab part
137  GtkWidget **cfxcombo;
138  GtkWidget **pfxcombo;
139  GtkWidget **pcombo;
140  GtkWidget **ccombo;
141  GtkWidget **acheck;
142  GtkWidget *allcheckc;
143  int *ikeys;
144  int *imodes;
145  int *idx;
146  gulong *dpc_func;
147  gulong *dpp_func;
148  gulong *acheck_func;
149 } lives_conx_w;
150 
151 
152 GtkWidget *make_datacon_window(int key, int mode);
153