LiVES  1.6.4-svn
 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(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 void 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 
63 // alpha channels
64 
65 
66 // struct for connecting out alphas to in alphas
67 
68 typedef struct _lives_cconnect_t lives_cconnect_t;
69 
70 
71 // when an out alpha is mapped/updated, we add it to here
72 
73 // when unmapped we delete it
74 
75 
76 
78  int okey;
79  int omode;
80 
81  int nchans;
82 
83  // index to chans which are to be copied
84  int *chans;
85 
86  // number of connections for each channel
87  int *nconns;
88 
89  // each param is mapped to nconns[i] of these
90  int *ikey;
91  int *imode;
92  int *icnum;
93 
94  lives_cconnect_t *next;
95 
96 };
97 
98 
99 
101 void cconx_add_connection(int okey, int omode, int ocnum, int ikey, int imode, int icnum);
102 
104 weed_plant_t *cconx_get_out_chan(int ikey, int imode, int ipnum);
105 
106 // free all connections (and set mainw->cconx to NULL)
107 void cconx_delete_all();
108 
109 void cconx_delete(int okey, int omode, int ocnum, int ikey, int imode, int icnum);
110 
111 void cconx_remap_mode(int key, int omode, int nmode);
112 
113 // chain any output data into fx key/mode
114 boolean cconx_chain_data(int key, int mode);
115 
116 // return list of in chaannels/modes/params
117 gchar *cconx_list(int okey, int omode, int ocnum);