6 #ifndef __VIDPLUGIN_H__
7 #define __VIDPLUGIN_H__
16 #ifdef HAVE_SYSTEM_WEED
17 #include <weed/weed-palettes.h>
19 #include "../../../../libweed/weed-palettes.h"
25 #if defined __x86_64__
26 # define __WORDSIZE 64
27 #ifndef __WORDSIZE_COMPAT32
28 # define __WORDSIZE_COMPAT32 1
31 # define __WORDSIZE 32
35 #ifndef __PRI64_PREFIX
37 # define __PRI64_PREFIX "l"
39 # define __PRI64_PREFIX "ll"
43 # define PRId64 __PRI64_PREFIX "d"
44 # define PRIu64 __PRI64_PREFIX "u"
45 #endif // ifndef PRI64d
59 #define ABS(a) (a>0?a:-a)
63 #define CPU_BITS ((sizeof(void *))<<3)
85 #define VPP_CAN_RESIZE 1<<0
86 #define VPP_CAN_RETURN 1<<1
87 #define VPP_LOCAL_DISPLAY 1<<2
91 boolean init_screen (
int width,
int height,
boolean fullscreen, uint64_t window_id,
int argc,
char **argv);
102 boolean render_frame (
int hsize,
int vsize, int64_t timecode,
void **pixel_data,
void **return_data,
106 void exit_screen (int16_t mouse_x, int16_t mouse_y);
123 #define MOD_CONTROL_MASK 1<<2
124 #define MOD_ALT_MASK 1<<3
125 #define MOD_NEEDS_TRANSLATION 1<<15
162 #endif // #ifndef __VIDPLUGIN_H__