LiVES  3.2.0
effects.h
Go to the documentation of this file.
1 // effects.h
2 // LiVES (lives-exe)
3 // (c) G. Finch 2003 - 2012
4 // Released under the GPL 3 or later
5 // see file ../COPYING for licensing details
6 
7 #ifndef HAS_LIVES_EFFECTS_H
8 #define HAS_LIVES_EFFECTS_H
9 
10 // general effects
11 typedef enum {
38 
40 typedef enum {
45 
46 char *lives_fx_cat_to_text(lives_fx_cat_t cat, boolean plural) WARN_UNUSED;
47 
48 #include "effects-weed.h"
49 
50 boolean do_effect(lives_rfx_t *rfx, boolean is_preview);
51 
52 void on_render_fx_activate(LiVESMenuItem *menuitem, lives_rfx_t *rfx);
53 
55 
56 // render
57 void on_realfx_activate(LiVESMenuItem *, livespointer rfx);
58 boolean on_realfx_activate_inner(int type, lives_rfx_t *rfx);
59 
61 
62 // key callbacks
63 
64 boolean textparm_callback(LiVESAccelGroup *group, LiVESWidgetObject *obj, uint32_t keyval, LiVESXModifierType mod,
65  livespointer user_data);
66 
67 boolean grabkeys_callback(LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType,
68  livespointer user_data);
69 boolean grabkeys_callback_hook(LiVESToggleButton *button, livespointer user_data);
70 
71 boolean rte_on_off_callback(LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType,
72  livespointer user_data);
73 boolean rte_on_off_callback_hook(LiVESToggleButton *, livespointer user_data);
74 
75 boolean rtemode_callback(LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType,
76  livespointer user_data);
77 boolean rtemode_callback_hook(LiVESToggleButton *, livespointer user_data);
78 
79 boolean swap_fg_bg_callback(LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data);
80 
82 
83 weed_plant_t *on_rte_apply(weed_plant_t *main_layer, int opwidth, int opheight, ticks_t tc);
84 
86 
87 // rte keys state
88 void rte_keymodes_backup(int nkeys);
89 void rte_keymodes_restore(int nkeys);
90 
91 boolean rte_key_on_off(int key, boolean on);
92 boolean rte_key_toggle(int key);
93 void rte_keys_reset(void);
94 
95 boolean rte_key_is_enabled(int key);
96 
97 int rte_getmodespk(void);
98 
99 #endif
LIVES_FX_CAT_AUDIO_MIXER
@ LIVES_FX_CAT_AUDIO_MIXER
Definition: effects.h:29
grabkeys_callback
boolean grabkeys_callback(LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
for accel groups
Definition: effects.c:1112
realfx_progress
lives_render_error_t realfx_progress(boolean reset)
Definition: effects.c:591
rtemode_callback
boolean rtemode_callback(LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
for accel groups
Definition: effects.c:1151
rtemode_callback_hook
boolean rtemode_callback_hook(LiVESToggleButton *, livespointer user_data)
for widgets
Definition: effects.c:1164
LIVES_FX_CAT_VIDEO_EFFECT
@ LIVES_FX_CAT_VIDEO_EFFECT
Definition: effects.h:25
lives_fx_cat_t
lives_fx_cat_t
Definition: effects.h:11
LIVES_FX_CAT_VIDEO_GENERATOR
@ LIVES_FX_CAT_VIDEO_GENERATOR
Definition: effects.h:13
LIVES_FX_CAT_SPLITTER
@ LIVES_FX_CAT_SPLITTER
Definition: effects.h:31
LIVES_FX_CAT_AUDIO_ANALYSER
@ LIVES_FX_CAT_AUDIO_ANALYSER
Definition: effects.h:36
deinterlace_frame
void deinterlace_frame(weed_layer_t *layer, ticks_t tc)
ticks_t
int64_t ticks_t
Definition: main.h:97
LIVES_FX_CAT_TRANSITION
@ LIVES_FX_CAT_TRANSITION
Definition: effects.h:20
LIVES_FX_CAT_CONVERTER
@ LIVES_FX_CAT_CONVERTER
Definition: effects.h:32
AF_TYPE_NONA
@ AF_TYPE_NONA
Definition: effects.h:43
LIVES_FX_CAT_ANALYSER
@ LIVES_FX_CAT_ANALYSER
Definition: effects.h:34
on_rte_apply
weed_plant_t * on_rte_apply(weed_plant_t *main_layer, int opwidth, int opheight, ticks_t tc)
LIVES_FX_CAT_TAP
@ LIVES_FX_CAT_TAP
Definition: effects.h:30
on_render_fx_activate
void on_render_fx_activate(LiVESMenuItem *menuitem, lives_rfx_t *rfx)
Definition: paramwindow.c:222
on_realfx_activate_inner
boolean on_realfx_activate_inner(int type, lives_rfx_t *rfx)
Definition: effects.c:728
rte_key_on_off
boolean rte_key_on_off(int key, boolean on)
Definition: effects.c:1232
lives_fx_cat_to_text
char * lives_fx_cat_to_text(lives_fx_cat_t cat, boolean plural) WARN_UNUSED
Definition: effects.c:40
LIVES_FX_CAT_DATA_VISUALISER
@ LIVES_FX_CAT_DATA_VISUALISER
Definition: effects.h:17
rte_getmodespk
int rte_getmodespk(void)
Definition: effects.c:1219
lives_rfx_t
Definition: plugins.h:625
lives_af_t
lives_af_t
audio filter type (any, analyser only, non analyser only)
Definition: effects.h:40
rte_keymodes_restore
void rte_keymodes_restore(int nkeys)
Definition: effects.c:1269
rte_keys_reset
void rte_keys_reset(void)
Definition: effects.c:1248
grabkeys_callback_hook
boolean grabkeys_callback_hook(LiVESToggleButton *button, livespointer user_data)
for widgets
Definition: effects.c:1144
LIVES_FX_CAT_AUDIO_TRANSITION
@ LIVES_FX_CAT_AUDIO_TRANSITION
Definition: effects.h:23
LIVES_FX_CAT_AV_TRANSITION
@ LIVES_FX_CAT_AV_TRANSITION
Definition: effects.h:21
LIVES_FX_CAT_UTILITY
@ LIVES_FX_CAT_UTILITY
Definition: effects.h:27
LIVES_FX_CAT_VIDEO_ANALYSER
@ LIVES_FX_CAT_VIDEO_ANALYSER
Definition: effects.h:35
on_realfx_activate
void on_realfx_activate(LiVESMenuItem *, livespointer rfx)
Definition: effects.c:799
LIVES_FX_CAT_DATA_SOURCE
@ LIVES_FX_CAT_DATA_SOURCE
Definition: effects.h:19
LIVES_FX_CAT_AUDIO_EFFECT
@ LIVES_FX_CAT_AUDIO_EFFECT
Definition: effects.h:26
LIVES_FX_CAT_NONE
@ LIVES_FX_CAT_NONE
Definition: effects.h:12
get_blend_layer
void get_blend_layer(ticks_t tc)
LIVES_FX_CAT_AUDIO_GENERATOR
@ LIVES_FX_CAT_AUDIO_GENERATOR
Definition: effects.h:15
LIVES_FX_CAT_DATA_GENERATOR
@ LIVES_FX_CAT_DATA_GENERATOR
Definition: effects.h:16
do_effect
boolean do_effect(lives_rfx_t *rfx, boolean is_preview)
defined as extern in paramwindow.c
Definition: effects.c:127
weed_layer_t
weed_plant_t weed_layer_t
Definition: colourspace.h:71
rte_key_toggle
boolean rte_key_toggle(int key)
Definition: effects.c:1224
LIVES_FX_CAT_VIDEO_TRANSITION
@ LIVES_FX_CAT_VIDEO_TRANSITION
Definition: effects.h:22
rte_key_is_enabled
boolean rte_key_is_enabled(int key)
Definition: effects.c:1213
swap_fg_bg_callback
boolean swap_fg_bg_callback(LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
Definition: effects.c:1177
WARN_UNUSED
#define WARN_UNUSED
Definition: main.h:77
LIVES_FX_CAT_AUDIO_VOL
@ LIVES_FX_CAT_AUDIO_VOL
Definition: effects.h:33
rte_keymodes_backup
void rte_keymodes_backup(int nkeys)
Definition: effects.c:1257
AF_TYPE_ANY
@ AF_TYPE_ANY
Definition: effects.h:41
LIVES_FX_CAT_COMPOSITOR
@ LIVES_FX_CAT_COMPOSITOR
Definition: effects.h:28
rte_on_off_callback
boolean rte_on_off_callback(LiVESAccelGroup *, LiVESWidgetObject *, uint32_t, LiVESXModifierType, livespointer user_data)
for accel groups
Definition: effects.c:974
effects-weed.h
textparm_callback
boolean textparm_callback(LiVESAccelGroup *group, LiVESWidgetObject *obj, uint32_t keyval, LiVESXModifierType mod, livespointer user_data)
Definition: effects.c:1136
LIVES_FX_CAT_EFFECT
@ LIVES_FX_CAT_EFFECT
Definition: effects.h:24
LIVES_FX_CAT_AV_GENERATOR
@ LIVES_FX_CAT_AV_GENERATOR
Definition: effects.h:14
LIVES_FX_CAT_DATA_PROCESSOR
@ LIVES_FX_CAT_DATA_PROCESSOR
Definition: effects.h:18
AF_TYPE_A
@ AF_TYPE_A
Definition: effects.h:42
lives_render_error_t
lives_render_error_t
various return conditions from rendering (multitrack or after recording)
Definition: events.h:100
rte_on_off_callback_hook
boolean rte_on_off_callback_hook(LiVESToggleButton *, livespointer user_data)
for widgets
Definition: effects.c:1106