14#ifndef NEED_LOCAL_WEED
16#include <weed/weed-palettes.h>
18#include "../../../../libweed/weed.h"
19#include "../../../../libweed/weed-palettes.h"
31#ifndef __WORDSIZE_COMPAT32
32# define __WORDSIZE_COMPAT32 1
41# define __PRI64_PREFIX "l"
43# define __PRI64_PREFIX "ll"
47# define PRId64 __PRI64_PREFIX "d"
48# define PRIu64 __PRI64_PREFIX "u"
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__
87const 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)
113boolean init_screen(
int width,
int height,
boolean fullscreen, uint64_t window_id,
int argc,
char **argv);
125boolean render_frame(
int hsize,
int vsize, int64_t timecode,
void **pixel_data,
void **return_data,
167boolean init_audio(
int sample_rate,
int nchans,
int argc,
char **argv);
173weed_plant_t *weed_setup(weed_bootstrap_f);
weed_plant_t weed_layer_t
_palette * palette
interface colour settings
boolean init_audio(int sample_rate, int nchans, int argc, char **argv)
newer style
uint64_t get_capabilities(int palette)
host will call this
boolean set_yuv_palette_clamping(int clamping_type)
host sets the palette sampling (optional)
void module_unload(void)
this is called when module is unloaded
boolean init_screen(int width, int height, boolean fullscreen, uint64_t window_id, int argc, char **argv)
ready the screen to play (optional)
const int * get_yuv_palette_clamping(int palette)
plugin send list of palette clamping types, in order of preference (optional); -1 terminates list
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...
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,...
const int * get_yuv_palette_sampling(int palette)
plugin send list of palette sampling types, in order of preference (optional); -1 terminates list
boolean set_yuv_palette_sampling(int sampling_type)
host sets the palette sampling (optional)
const char * module_check_init(void)
host calls at startup
const char * version(void)
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)
const char * get_fps_list(int palette)
boolean set_yuv_palette_subspace(int subspace_type)
host sets the palette subspace (optional)
const int * get_palette_list(void)
plugin send list of palettes, in order of preference
boolean set_fps(double fps)
const char * get_description(void)
optional
const char * get_init_rfx(int intention)
optional
boolean render_audio_frame_float(float **audio, int nsamps)
boolean set_palette(int palette)
host sets the palette used
weed_plant_t weed_layer_t
const int * get_yuv_palette_subspace(int palette)
plugin send list of palette subspace types, in order of preference (optional); -1 terminates list