Defines |
#define | TRUE 1 |
#define | FALSE 0 |
#define | CPU_BITS ((sizeof(void *))<<3) |
#define | VPP_CAN_RESIZE 1<<0 |
#define | VPP_CAN_RETURN 1<<1 |
#define | VPP_LOCAL_DISPLAY 1<<2 |
#define | MOD_CONTROL_MASK 1<<2 |
#define | MOD_ALT_MASK 1<<3 |
#define | MOD_NEEDS_TRANSLATION 1<<15 |
Typedefs |
typedef int | boolean |
typedef boolean(* | keyfunc )(boolean down, uint16_t unicode, uint16_t keymod) |
| This is a host function - a pointer to it is passed in send_keycodes()
|
Functions |
const char * | module_check_init (void) |
| host calls at startup
|
const char * | version (void) |
const char * | get_description (void) |
| optional
|
const char * | get_rfx (void) |
| optional
|
const int * | get_palette_list (void) |
| plugin send list of palettes, in order of preference
|
boolean | set_palette (int palette) |
| host sets the palette used
|
uint64_t | get_capabilities (int palette) |
| host will call this
|
boolean | init_screen (int width, int height, boolean fullscreen, uint32_t window_id, int argc, char **argv) |
| ready the screen to play (optional)
|
boolean | render_frame (int hsize, int vsize, int64_t timecode, void **pixel_data, void **return_data) |
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)
|
void | module_unload (void) |
| this is called when module is unloaded
|
const char * | get_fps_list (int palette) |
boolean | set_fps (double fps) |
boolean | send_keycodes (keyfunc) |
| host calls this fn to send keycodes, plugin should call key function with a unicode keycode and modifier. If no more keys, return FALSE.
|
const int * | get_yuv_palette_sampling (int palette) |
| plugin send list of palette sampling types, in order of preference (optional); -1 terminates list
|
const int * | get_yuv_palette_clamping (int palette) |
| plugin send list of palette clamping types, in order of preference (optional); -1 terminates list
|
const int * | get_yuv_palette_subspace (int palette) |
| plugin send list of palette subspace types, in order of preference (optional); -1 terminates list
|
boolean | set_yuv_palette_sampling (int sampling_type) |
| host sets the palette sampling (optional)
|
boolean | set_yuv_palette_clamping (int clamping_type) |
| host sets the palette sampling (optional)
|
boolean | set_yuv_palette_subspace (int subspace_type) |
| host sets the palette subspace (optional)
|
const int * | get_audio_fmts (void) |
boolean render_frame |
( |
int |
hsize, |
|
|
int |
vsize, |
|
|
int64_t |
timecode, |
|
|
void ** |
pixel_data, |
|
|
void ** |
return_data |
|
) |
| |
display one frame, adding effects if you like, and resizing it to screen size if possible (VPP_CAN_RESIZE)
if return_data is non-NULL, you should either fill it with the effected, unresized data (VPP_CAN_RETURN) or set it back to NULL if you can't
hsize and vsize are width and height of the pixel data (in macropixels)