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.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 #if HAVE_SYSTEM_WEED
11 #include <weed/weed.h>
12 #else
13 #include "../libweed/weed.h"
14 #endif
15
16 // general effects
17 typedef enum {
18 LIVES_FX_CAT_NONE=0,
19 LIVES_FX_CAT_VIDEO_GENERATOR,
20 LIVES_FX_CAT_AV_GENERATOR,
21 LIVES_FX_CAT_AUDIO_GENERATOR,
22 LIVES_FX_CAT_DATA_GENERATOR,
23 LIVES_FX_CAT_DATA_VISUALISER,
24 LIVES_FX_CAT_DATA_PROCESSOR,
25 LIVES_FX_CAT_DATA_SOURCE,
26 LIVES_FX_CAT_TRANSITION,
27 LIVES_FX_CAT_AV_TRANSITION,
28 LIVES_FX_CAT_VIDEO_TRANSITION,
29 LIVES_FX_CAT_AUDIO_TRANSITION,
30 LIVES_FX_CAT_EFFECT,
31 LIVES_FX_CAT_VIDEO_EFFECT,
32 LIVES_FX_CAT_AUDIO_EFFECT,
33 LIVES_FX_CAT_UTILITY,
34 LIVES_FX_CAT_COMPOSITOR,
35 LIVES_FX_CAT_AUDIO_MIXER,
36 LIVES_FX_CAT_TAP,
37 LIVES_FX_CAT_SPLITTER,
38 LIVES_FX_CAT_CONVERTER,
39 LIVES_FX_CAT_AUDIO_VOL,
40 LIVES_FX_CAT_ANALYSER,
41 LIVES_FX_CAT_VIDEO_ANALYSER,
42 LIVES_FX_CAT_AUDIO_ANALYSER
43 } lives_fx_cat_t;
44
45
47 typedef enum {
48 AF_TYPE_ANY,
49 AF_TYPE_A,
50 AF_TYPE_NONA
51 } lives_af_t;
52
53
54 char *lives_fx_cat_to_text(lives_fx_cat_t cat, boolean plural) WARN_UNUSED;
55
56
57 #include "effects-weed.h"
58
59 boolean do_effect(lives_rfx_t *rfx, boolean is_preview);
60
61 void on_render_fx_activate(LiVESMenuItem *menuitem, lives_rfx_t *rfx);
62
64
65 // render
66 void on_realfx_activate(LiVESMenuItem *, livespointer rfx);
67 boolean on_realfx_activate_inner(int type, lives_rfx_t *rfx);
68
69 lives_render_error_t realfx_progress(boolean reset);
70
71 // key callbacks
72
73 boolean textparm_callback(LiVESAccelGroup *group, LiVESObject *obj, uint32_t keyval, LiVESXModifierType mod, livespointer user_data);
74
75 boolean grabkeys_callback(LiVESAccelGroup *, LiVESObject *, uint32_t, LiVESXModifierType, livespointer user_data);
76 boolean grabkeys_callback_hook(LiVESToggleButton *button, livespointer user_data);
77
78 boolean rte_on_off_callback(LiVESAccelGroup *, LiVESObject *, uint32_t, LiVESXModifierType, livespointer user_data);
79 boolean rte_on_off_callback_hook(LiVESToggleButton *, livespointer user_data);
80
81 boolean rtemode_callback(LiVESAccelGroup *, LiVESObject *, uint32_t, LiVESXModifierType, livespointer user_data);
82 boolean rtemode_callback_hook(LiVESToggleButton *, livespointer user_data);
83
84 boolean swap_fg_bg_callback(LiVESAccelGroup *, LiVESObject *, uint32_t, LiVESXModifierType, livespointer user_data);
85
86 weed_plant_t *get_blend_layer(weed_timecode_t tc);
87
88 weed_plant_t *on_rte_apply(weed_plant_t *main_layer, int opwidth, int opheight, weed_timecode_t tc);
89
90
91 void deinterlace_frame(weed_plant_t *layer, weed_timecode_t tc);
92
93
94 #endif
AF_TYPE_NONA
Definition: effects.h:50
lives_fx_cat_t
lives_fx_cat_t
Definition: effects.h:17
LIVES_FX_CAT_VIDEO_GENERATOR
Definition: effects.h:19
lives_render_error_t
lives_render_error_t
various return conditions from rendering (multitrack or after recording)
Definition: mainwindow.h:167
rtemode_callback
boolean rtemode_callback(LiVESAccelGroup *group, LiVESObject *obj, uint32_t keyval, LiVESXModifierType mod, livespointer user_data)
for accel groups
Definition: effects.c:1146
LIVES_FX_CAT_AUDIO_TRANSITION
Definition: effects.h:29
LIVES_FX_CAT_UTILITY
Definition: effects.h:33
swap_fg_bg_callback
boolean swap_fg_bg_callback(LiVESAccelGroup *group, LiVESObject *obj, uint32_t keyval, LiVESXModifierType mod, livespointer user_data)
Definition: effects.c:1168
grabkeys_callback
boolean grabkeys_callback(LiVESAccelGroup *group, LiVESObject *obj, uint32_t keyval, LiVESXModifierType mod, livespointer user_data)
for accel groups
Definition: effects.c:1116
LIVES_FX_CAT_DATA_SOURCE
Definition: effects.h:25
LIVES_FX_CAT_AUDIO_ANALYSER
Definition: effects.h:42
LIVES_FX_CAT_NONE
Definition: effects.h:18
lives_fx_cat_to_text
char * lives_fx_cat_to_text(lives_fx_cat_t cat, boolean plural)
Definition: effects.c:55
LIVES_FX_CAT_CONVERTER
Definition: effects.h:38
LIVES_FX_CAT_ANALYSER
Definition: effects.h:40
lives_af_t
lives_af_t
audio filter type (any, analyser only, non analyser only)
Definition: effects.h:47
deinterlace_frame
void deinterlace_frame(weed_plant_t *layer, weed_timecode_t tc)
Definition: effects.c:925
LIVES_FX_CAT_VIDEO_EFFECT
Definition: effects.h:31
on_realfx_activate
void on_realfx_activate(LiVESMenuItem *menuitem, livespointer user_data)
Definition: effects.c:816
effects-weed.h
LIVES_FX_CAT_SPLITTER
Definition: effects.h:37
on_render_fx_activate
void on_render_fx_activate(LiVESMenuItem *menuitem, lives_rfx_t *rfx)
Definition: paramwindow.c:278
do_effect
boolean do_effect(lives_rfx_t *rfx, boolean is_preview)
defined as extern in paramwindow.c
Definition: effects.c:148
rte_on_off_callback_hook
boolean rte_on_off_callback_hook(LiVESToggleButton *button, livespointer user_data)
for widgets
Definition: effects.c:1110
LIVES_FX_CAT_AUDIO_GENERATOR
Definition: effects.h:21
LIVES_FX_CAT_VIDEO_ANALYSER
Definition: effects.h:41
rte_on_off_callback
boolean rte_on_off_callback(LiVESAccelGroup *group, LiVESObject *obj, uint32_t keyval, LiVESXModifierType mod, livespointer user_data)
for accel groups
Definition: effects.c:1017
rtemode_callback_hook
boolean rtemode_callback_hook(LiVESToggleButton *button, livespointer user_data)
for widgets
Definition: effects.c:1155
LIVES_FX_CAT_DATA_VISUALISER
Definition: effects.h:23
LIVES_FX_CAT_AUDIO_EFFECT
Definition: effects.h:32
LIVES_FX_CAT_TRANSITION
Definition: effects.h:26
realfx_progress
lives_render_error_t realfx_progress(boolean reset)
Definition: effects.c:591
LIVES_FX_CAT_TAP
Definition: effects.h:36
on_rte_apply
weed_plant_t * on_rte_apply(weed_plant_t *layer, int opwidth, int opheight, weed_timecode_t tc)
Definition: effects.c:872
LIVES_FX_CAT_AV_TRANSITION
Definition: effects.h:27
get_blend_layer
weed_plant_t * get_blend_layer(weed_timecode_t tc)
Definition: effects.c:980
LIVES_FX_CAT_VIDEO_TRANSITION
Definition: effects.h:28
grabkeys_callback_hook
boolean grabkeys_callback_hook(LiVESToggleButton *button, livespointer user_data)
for widgets
Definition: effects.c:1138
LIVES_FX_CAT_COMPOSITOR
Definition: effects.h:34
textparm_callback
boolean textparm_callback(LiVESAccelGroup *group, LiVESObject *obj, uint32_t keyval, LiVESXModifierType mod, livespointer user_data)
Definition: effects.c:1130
LIVES_FX_CAT_DATA_GENERATOR
Definition: effects.h:22
AF_TYPE_A
Definition: effects.h:49
lives_rfx_t
Definition: plugins.h:481
LIVES_FX_CAT_AUDIO_VOL
Definition: effects.h:39
AF_TYPE_ANY
Definition: effects.h:48
LIVES_FX_CAT_AUDIO_MIXER
Definition: effects.h:35
LIVES_FX_CAT_AV_GENERATOR
Definition: effects.h:20
on_realfx_activate_inner
boolean on_realfx_activate_inner(int type, lives_rfx_t *rfx)
Definition: effects.c:740
LIVES_FX_CAT_EFFECT
Definition: effects.h:30
WARN_UNUSED
#define WARN_UNUSED
Definition: main.h:271
LIVES_FX_CAT_DATA_PROCESSOR
Definition: effects.h:24