Go to the documentation of this file.
6 #ifndef __VIDPLUGIN_H__
7 #define __VIDPLUGIN_H__
14 #ifndef NEED_LOCAL_WEED
15 #include <weed/weed.h>
16 #include <weed/weed-palettes.h>
18 #include "../../../../libweed/weed.h"
19 #include "../../../../libweed/weed-palettes.h"
29 #if defined __x86_64__
30 # define __WORDSIZE 64
31 #ifndef __WORDSIZE_COMPAT32
32 # define __WORDSIZE_COMPAT32 1
35 # define __WORDSIZE 32
39 #ifndef __PRI64_PREFIX
41 # define __PRI64_PREFIX "l"
43 # define __PRI64_PREFIX "ll"
47 # define PRId64 __PRI64_PREFIX "d"
48 # define PRIu64 __PRI64_PREFIX "u"
49 #endif // ifndef PRI64d
63 #define ABS(a) (a > 0 ? a : -a)
68 #define PATH_MAX MAX_PATH
75 #define CPU_BITS ((sizeof(void *)) << 3)
85 #ifdef __WEED_EFFECTS_H__
86 const weed_plant_t **get_play_params(weed_bootstrap_f boot);
99 #define LIVES_INTENTION_PLAY 1
100 #define LIVES_INTENTION_STREAM 2
101 #define LIVES_INTENTION_TRANSCODE 3
103 #define VPP_CAN_RESIZE (1<<0)
104 #define VPP_CAN_RETURN (1<<1)
105 #define VPP_LOCAL_DISPLAY (1<<2)
106 #define VPP_LINEAR_GAMMA (1<<3)
107 #define VPP_CAN_RESIZE_WINDOW (1<<4)
108 #define VPP_CAN_LETTERBOX (1<<5)
109 #define VPP_CAN_CHANGE_PALETTE (1<<6)
110 // bit combinations: 0 & 5: can resize and letterbox; 5 without 0: cannot resize image, but it can offset the top left pixel
113 boolean init_screen(
int width,
int height,
boolean fullscreen, uint64_t window_id,
int argc,
char **argv);
125 boolean render_frame(
int hsize,
int vsize, int64_t timecode,
void **pixel_data,
void **return_data,
167 boolean init_audio(
int sample_rate,
int nchans,
int argc,
char **argv);
173 weed_plant_t *weed_setup(weed_bootstrap_f);
180 #endif // #ifndef __VIDPLUGIN_H__
const char * get_init_rfx(int intention)
optional
const char * get_fps_list(int palette)
const int * get_yuv_palette_clamping(int palette)
plugin send list of palette clamping types, in order of preference (optional); -1 terminates list
void module_unload(void)
this is called when module is unloaded
const char * version(void)
boolean set_yuv_palette_subspace(int subspace_type)
host sets the palette subspace (optional)
const int * get_yuv_palette_subspace(int palette)
plugin send list of palette subspace types, in order of preference (optional); -1 terminates list
const int * get_yuv_palette_sampling(int palette)
plugin send list of palette sampling types, in order of preference (optional); -1 terminates list
const char * module_check_init(void)
host calls at startup
boolean set_fps(double fps)
boolean init_screen(int width, int height, boolean fullscreen, uint64_t window_id, int argc, char **argv)
ready the screen to play (optional)
void exit_screen(int16_t mouse_x, int16_t mouse_y)
destroy the screen, return mouse to original posn., allow the host GUI to take over (optional)
boolean init_audio(int sample_rate, int nchans, int argc, char **argv)
newer style
boolean set_palette(int palette)
host sets the palette used
_palette * palette
interface colour settings
weed_plant_t weed_layer_t
const int * get_palette_list(void)
plugin send list of palettes, in order of preference
boolean render_audio_frame_float(float **audio, int nsamps)
weed_plant_t weed_layer_t
uint64_t get_capabilities(int palette)
host will call this
boolean set_yuv_palette_clamping(int clamping_type)
host sets the palette sampling (optional)
const char * get_description(void)
optional
boolean play_frame(weed_layer_t *frame, int64_t tc, weed_layer_t *ret)
updated version of render_frame: input is a weed_layer and timecode, if ret is non NULL,...
boolean set_yuv_palette_sampling(int sampling_type)
host sets the palette sampling (optional)
boolean render_frame(int hsize, int vsize, int64_t timecode, void **pixel_data, void **return_data, void **play_params)
display one frame, adding effects if you like, and resizing it to screen size if possible (VPP_CAN_RE...