20 extern int in_type1, in_type2;
21 extern int in_keystate, in_state_gun, in_a1[2], in_a2[2];
22 extern int in_adev[2], in_adev_axis[2][2];
23 extern int in_adev_is_nublike[2];
24 extern int in_enable_vibration;
26 extern void *pl_vout_buf;
28 extern int g_layer_x, g_layer_y;
29 extern int g_layer_w, g_layer_h;
31 void pl_start_watchdog(void);
32 void *pl_prepare_screenshot(int *w, int *h, int *bpp);
34 void pl_print_hud(int width, int height, int xborder);
35 void pl_switch_dispmode(void);
37 void pl_timing_prepare(int is_pal);
38 void pl_frame_limit(void);
40 void pl_update_gun(int *xn, int *xres, int *y, int *in);
43 void (*pl_get_layer_pos)(int *x, int *y, int *w, int *h);
44 int (*pl_vout_open)(void);
45 void (*pl_vout_set_mode)(int w, int h, int bpp);
46 void (*pl_vout_flip)(const void *vram, int stride, int bgr24,
48 void (*pl_vout_close)(void);
49 void *(*mmap)(unsigned int size);
50 void (*munmap)(void *ptr, unsigned int size);
51 // only used by some frontends
52 void (*pl_vout_set_raw_vram)(void *vram);
53 void (*pl_set_gpu_caps)(int caps);
54 // some stats, for display by some plugins
55 int flips_per_sec, cpu_usage;
56 float vsps_cur; // currect vsync/s
60 unsigned int *gpu_frame_count;
61 unsigned int *gpu_hcnt;
62 unsigned int flip_cnt; // increment manually if not using pl_vout_flip
63 unsigned int screen_w, screen_h; // gles plugin wants this
64 unsigned int only_16bpp; // platform is 16bpp-only
66 int allow_interlace; // 0 off, 1 on, 2 guess
67 int enhancement_enable;
68 int enhancement_no_main;
78 int no_light, no_blend;
83 int bDrawDither, iFilterType, iFrameTexType;
84 int iUseMask, bOpaquePass, bAdvancedBlend, bUseFastMdec;
85 int iVRamSize, iTexGarbageCollection;
91 extern struct rearmed_cbs pl_rearmed_cbs;
93 enum gpu_plugin_caps {
94 GPU_CAP_OWNS_DISPLAY = (1 << 0),
95 GPU_CAP_SUPPORTS_2X = (1 << 1),
99 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))