23 #ifndef MPLAYER_VIDEO_OUT_H
24 #define MPLAYER_VIDEO_OUT_H
30 #include "../img_format.h"
34 #define ROTATE(t, x, y) do { \
40 #define VO_EVENT_EXPOSE 1
41 #define VO_EVENT_RESIZE 2
42 #define VO_EVENT_KEYPRESS 4
43 #define VO_EVENT_REINIT 8
44 #define VO_EVENT_MOVE 16
45 #define VO_EVENT_MOUSE 32
49 #define VOCTRL_QUERY_FORMAT 2
51 #define VOCTRL_RESET 3
53 #define VOCTRL_GUISUPPORT 4
55 #define VOCTRL_FULLSCREEN 5
57 #define VOCTRL_PAUSE 7
59 #define VOCTRL_RESUME 8
61 #define VOCTRL_GET_IMAGE 9
62 #define VOCTRL_DRAW_IMAGE 13
63 #define VOCTRL_SET_SPU_PALETTE 14
65 #define VOCTRL_GET_NUM_FRAMES 10
66 #define VOCTRL_GET_FRAME_NUM 11
67 #define VOCTRL_SET_FRAME_NUM 12
68 #define VOCTRL_GET_PANSCAN 15
69 #define VOCTRL_SET_PANSCAN 16
71 #define VOCTRL_SET_EQUALIZER 17
72 #define VOCTRL_GET_EQUALIZER 18
74 #define VOCTRL_DUPLICATE_FRAME 20
76 #define VOCTRL_START_SLICE 21
78 #define VOCTRL_ONTOP 25
79 #define VOCTRL_ROOTWIN 26
80 #define VOCTRL_BORDER 27
81 #define VOCTRL_DRAW_EOSD 28
82 #define VOCTRL_GET_EOSD_RES 29
84 #define VOCTRL_SET_DEINTERLACE 30
85 #define VOCTRL_GET_DEINTERLACE 31
87 #define VOCTRL_UPDATE_SCREENINFO 32
90 #define VOCTRL_XOVERLAY_SUPPORT 22
92 #define VOCTRL_XOVERLAY_SET_COLORKEY 24
98 #define VOCTRL_XOVERLAY_SET_WIN 23
107 #define VO_NOTAVAIL -2
108 #define VO_NOTIMPL -3
110 #define VOFLAG_FULLSCREEN 0x01
111 #define VOFLAG_MODESWITCHING 0x02
112 #define VOFLAG_SWSCALE 0x04
113 #define VOFLAG_FLIPPING 0x08
114 #define VOFLAG_HIDDEN 0x10 //< Use to create a hidden window
115 #define VOFLAG_STEREO 0x20 //< Use to create a stereo-capable window
116 #define VOFLAG_DEPTH 0x40 //< Request a depth buffer
117 #define VOFLAG_XOVERLAY_SUB_VO 0x10000
119 typedef struct vo_info_s
131 typedef struct vo_functions_s
139 int (*preinit)(
const char *
arg);
151 uint32_t d_height, uint32_t fullscreen,
char *title,
200 uint32_t d_width, uint32_t d_height, uint32_t
flags,
201 char *title, uint32_t format);
265 extern int64_t
WinID;
292 if (pos >= 0.0 && pos <= 1.0) {
293 return pos*(full - part);
297 return full - part + (pos - 1) * part;