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