7 #ifndef HAS_LIVES_PLUGINS_H
8 #define HAS_LIVES_PLUGINS_H
19 GList *
get_plugin_list (
const gchar *plugin_type, gboolean allow_nonex,
const gchar *plugdir,
const gchar *filter_ext);
20 #define PLUGIN_ENCODERS "encoders"
21 #define PLUGIN_DECODERS "decoders"
22 #define PLUGIN_VID_PLAYBACK "playback/video"
23 #define PLUGIN_AUDIO_STREAM "playback/audiostream"
26 #define PLUGIN_THEMES "themes"
29 #define PLUGIN_EFFECTS_WEED "weed"
30 #define PLUGIN_WEED_FX_BUILTIN "effects/realtime/weed"
33 GList *
plugin_request (
const gchar *plugin_type,
const gchar *plugin_name,
const gchar *request);
37 GList *
plugin_request_common (
const gchar *plugin_type,
const gchar *plugin_name,
const gchar *request,
const gchar *delim, gboolean allow_blanks);
39 #ifndef __WEED_EFFECTS_H__
40 typedef weed_plant_t *(*weed_bootstrap_f) (weed_default_getter_f *value,
int num_versions,
int *plugin_versions);
44 typedef gboolean (*
plugin_keyfunc) (gboolean down, guint16 unicode, guint16 keymod);
53 const char *(*module_check_init)(void);
54 const char *(*version) (void);
55 const char *(*get_description) (void);
57 gint *(*get_palette_list) (void);
61 gboolean (*
render_frame) (
int hsize,
int vsize, int64_t timecode,
void **pixel_data,
void **return_data,
62 weed_plant_t **play_params);
65 gboolean (*
init_screen) (
int width,
int height, gboolean fullscreen, uint64_t window_id,
int argc, gchar **argv);
68 const gchar *(*get_fps_list) (
int palette);
71 const char *(*get_init_rfx) (void);
80 int *(*get_yuv_palette_sampling) (
int palette);
81 int *(*get_yuv_palette_clamping) (
int palette);
82 int *(*get_yuv_palette_subspace) (
int palette);
88 int *(*get_audio_fmts)(void);
96 #define VPP_CAN_RESIZE 1<<0
97 #define VPP_CAN_RETURN 1<<1
98 #define VPP_LOCAL_DISPLAY 1<<2
123 #define DEF_VPP_HSIZE 320.
124 #define DEF_VPP_VSIZE 240.
134 const weed_plant_t *
pp_get_param(weed_plant_t **pparams,
int idx);
135 const weed_plant_t *
pp_get_chan(weed_plant_t **pparams,
int idx);
149 #define AUDIO_CODEC_MP3 0
150 #define AUDIO_CODEC_PCM 1
151 #define AUDIO_CODEC_MP2 2
152 #define AUDIO_CODEC_VORBIS 3
153 #define AUDIO_CODEC_AC3 4
154 #define AUDIO_CODEC_AAC 5
155 #define AUDIO_CODEC_AMR_NB 6
156 #define AUDIO_CODEC_RAW 7 // reserved
157 #define AUDIO_CODEC_WMA2 8
160 #define AUDIO_CODEC_MAX 31
162 #define AUDIO_CODEC_NONE 32
163 #define AUDIO_CODEC_UNKNOWN 33
170 #define CAN_ENCODE_PNG 1<<2
171 #define ENCODER_NON_NATIVE 1<<3
177 gchar of_restrict[1024];
178 gchar of_def_ext[16];
192 #define LIVES_SEEK_FAST (1<<0)
195 #define LIVES_SEEK_NEEDS_CALCULATION (1<<1)
196 #define LIVES_SEEK_QUALITY_LOSS (1<<2)
205 gchar container_name[512];
235 gchar video_name[512];
243 gchar audio_name[512];
247 #define SYNC_HINT_AUDIO_TRIM_START 1
264 const char *(*version) (void);
281 const char *(*module_check_init)(void);
283 unsigned char **abuff);
316 #define PLUGIN_RENDERED_EFFECTS_BUILTIN "effects/rendered/"
319 #define PLUGIN_RENDERED_EFFECTS_CUSTOM "plugins/effects/rendered/custom/"
320 #define PLUGIN_RENDERED_EFFECTS_TEST "plugins/effects/rendered/test/"
323 #define PLUGIN_RENDERED_EFFECTS_BUILTIN_SCRIPTS "effects/RFXscripts/"
326 #define PLUGIN_RENDERED_EFFECTS_CUSTOM_SCRIPTS "plugins/effects/RFXscripts/custom/"
327 #define PLUGIN_RENDERED_EFFECTS_TEST_SCRIPTS "plugins/effects/RFXscripts/test/"
330 #define PLUGIN_RFX_SCRAP ""
334 #define MAX_PARAM_WIDGETS 5
337 #define RFX_MAXSTRINGLEN 1024
377 #define HIDDEN_GUI (1<<0)
378 #define HIDDEN_MULTI (1<<1)
379 #define HIDDEN_NEEDS_REINIT (1<<2)
401 #define PVAL_MULTI_NONE 0
402 #define PVAL_MULTI_ANY 1
403 #define PVAL_MULTI_PER_CHANNEL 2
449 #define RFX_PROPS_SLOW 0x0001
450 #define RFX_PROPS_MAY_RESIZE 0x0002
451 #define RFX_PROPS_BATCHG 0x0004
454 #define RFX_PROPS_RESERVED1 0x1000
455 #define RFX_PROPS_RESERVED2 0x2000
456 #define RFX_PROPS_RESERVED3 0x4000
457 #define RFX_PROPS_AUTO_BUILT 0x8000
500 #define FX_CANDIDATE_AUDIO_VOL 0
501 #define FX_CANDIDATE_RESIZER 1
502 #define FX_CANDIDATE_DEINTERLACE 2
504 #define MAX_FX_CANDIDATE_TYPES 3
520 void set_colRGBA32_param(
void *value, gshort red, gshort green, gshort blue, gshort alpha);