annotate libvo/video_out.h @ 7069:21e1ab99cb21

General Timing Formula algorithm from a scratch. vo_vesa.c so now adjust the timing to highest possible refresh rate using the monitor capabilities from a config file. patch by Rudolf Marek <MAREKR2@cs.felk.cvut.cz>
author arpi
date Thu, 22 Aug 2002 23:03:51 +0000
parents 98bed9e12087
children eca7dbad0166
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1 /*
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 * video_out.h
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 * Copyright (C) Aaron Holtzman - Aug 1999
31
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
5 * Strongly modified, most parts rewritten: A'rpi/ESP-team - 2000-2001
6781
924263b4df10 eq reworked
alex
parents: 6755
diff changeset
6 * (C) MPlayer Developers
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8 */
4933
429994672d8c 're-include' possibility
nick
parents: 4811
diff changeset
9
429994672d8c 're-include' possibility
nick
parents: 4811
diff changeset
10 #ifndef __VIDEO_OUT_H
429994672d8c 're-include' possibility
nick
parents: 4811
diff changeset
11 #define __VIDEO_OUT_H 1
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13 #include <inttypes.h>
4592
5fbfd8545c3b query_ stuff replaced by new control() - patch by David Holm
arpi
parents: 4433
diff changeset
14 #include <stdarg.h>
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15
5294
4e64fca268e9 moved font_laod.h
arpi
parents: 5002
diff changeset
16 //#include "font_load.h"
408
b61c5c4484f8 - applied overlay patch by Jens H
atmosfear
parents: 388
diff changeset
17 #include "img_format.h"
4352
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
18 #include "../vidix/vidix.h"
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19
31
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
20 #define VO_EVENT_EXPOSE 1
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
21 #define VO_EVENT_RESIZE 2
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
22 #define VO_EVENT_KEYPRESS 4
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
23
4592
5fbfd8545c3b query_ stuff replaced by new control() - patch by David Holm
arpi
parents: 4433
diff changeset
24 /* takes a pointer to a vo_vaa_s struct */
5fbfd8545c3b query_ stuff replaced by new control() - patch by David Holm
arpi
parents: 4433
diff changeset
25 #define VOCTRL_QUERY_VAA 1
6781
924263b4df10 eq reworked
alex
parents: 6755
diff changeset
26 /* does the device support the required format */
4592
5fbfd8545c3b query_ stuff replaced by new control() - patch by David Holm
arpi
parents: 4433
diff changeset
27 #define VOCTRL_QUERY_FORMAT 2
4754
ad892563d9c4 Added VOCTRL_PAUSE and VOCTRL_RESUME
mswitch
parents: 4738
diff changeset
28 /* signal a device reset seek */
4592
5fbfd8545c3b query_ stuff replaced by new control() - patch by David Holm
arpi
parents: 4433
diff changeset
29 #define VOCTRL_RESET 3
4618
09198a119e39 added voctrl_guisupport and fixed some typos
alex
parents: 4592
diff changeset
30 /* true if vo driver can use GUI created windows */
09198a119e39 added voctrl_guisupport and fixed some typos
alex
parents: 4592
diff changeset
31 #define VOCTRL_GUISUPPORT 4
7009
98bed9e12087 - add dxr3 gui support (dialogbox, etc.)
pontscho
parents: 6781
diff changeset
32 #define VOCTRL_GUI_NOWINDOW 19
4731
c8125c117807 added VOCTRL_FULLSCREEN
alex
parents: 4667
diff changeset
33 /* used to switch to fullscreen */
c8125c117807 added VOCTRL_FULLSCREEN
alex
parents: 4667
diff changeset
34 #define VOCTRL_FULLSCREEN 5
4738
77519b9ac057 Screenshot on the fly
nick
parents: 4736
diff changeset
35 #define VOCTRL_SCREENSHOT 6
4754
ad892563d9c4 Added VOCTRL_PAUSE and VOCTRL_RESUME
mswitch
parents: 4738
diff changeset
36 /* signal a device pause */
ad892563d9c4 Added VOCTRL_PAUSE and VOCTRL_RESUME
mswitch
parents: 4738
diff changeset
37 #define VOCTRL_PAUSE 7
ad892563d9c4 Added VOCTRL_PAUSE and VOCTRL_RESUME
mswitch
parents: 4738
diff changeset
38 /* start/resume playback */
ad892563d9c4 Added VOCTRL_PAUSE and VOCTRL_RESUME
mswitch
parents: 4738
diff changeset
39 #define VOCTRL_RESUME 8
4971
fa002f25631e direct rendering support
arpi
parents: 4933
diff changeset
40 /* libmpcodecs direct rendering: */
fa002f25631e direct rendering support
arpi
parents: 4933
diff changeset
41 #define VOCTRL_GET_IMAGE 9
5502
9cecf4b10a4b VOCTRL_DRAW_IMAGE added
arpi
parents: 5431
diff changeset
42 #define VOCTRL_DRAW_IMAGE 13
6110
7bea806b9c5f Improvment for spu subtitles.
albeu
parents: 5651
diff changeset
43 #define VOCTRL_SET_SPU_PALETTE 14
5002
70751bbd6404 voctls for decoding ahead
nick
parents: 4981
diff changeset
44 /* decoding ahead: */
70751bbd6404 voctls for decoding ahead
nick
parents: 4981
diff changeset
45 #define VOCTRL_GET_NUM_FRAMES 10
70751bbd6404 voctls for decoding ahead
nick
parents: 4981
diff changeset
46 #define VOCTRL_GET_FRAME_NUM 11
70751bbd6404 voctls for decoding ahead
nick
parents: 4981
diff changeset
47 #define VOCTRL_SET_FRAME_NUM 12
6308
4764574062a0 100l to .so
arpi
parents: 6307
diff changeset
48 #define VOCTRL_GET_PANSCAN 15
4764574062a0 100l to .so
arpi
parents: 6307
diff changeset
49 #define VOCTRL_SET_PANSCAN 16
6781
924263b4df10 eq reworked
alex
parents: 6755
diff changeset
50 /* equalizer controls */
924263b4df10 eq reworked
alex
parents: 6755
diff changeset
51 #define VOCTRL_SET_EQUALIZER 17
924263b4df10 eq reworked
alex
parents: 6755
diff changeset
52 #define VOCTRL_GET_EQUALIZER 18
7009
98bed9e12087 - add dxr3 gui support (dialogbox, etc.)
pontscho
parents: 6781
diff changeset
53 // ... 20
98bed9e12087 - add dxr3 gui support (dialogbox, etc.)
pontscho
parents: 6781
diff changeset
54
6307
72c87b2ec779 added panscan support for xmga/xvidix
pontscho
parents: 6304
diff changeset
55
4592
5fbfd8545c3b query_ stuff replaced by new control() - patch by David Holm
arpi
parents: 4433
diff changeset
56 #define VO_TRUE 1
5fbfd8545c3b query_ stuff replaced by new control() - patch by David Holm
arpi
parents: 4433
diff changeset
57 #define VO_FALSE 0
5fbfd8545c3b query_ stuff replaced by new control() - patch by David Holm
arpi
parents: 4433
diff changeset
58 #define VO_ERROR -1
5fbfd8545c3b query_ stuff replaced by new control() - patch by David Holm
arpi
parents: 4433
diff changeset
59 #define VO_NOTAVAIL -2
5fbfd8545c3b query_ stuff replaced by new control() - patch by David Holm
arpi
parents: 4433
diff changeset
60 #define VO_NOTIMPL -3
5fbfd8545c3b query_ stuff replaced by new control() - patch by David Holm
arpi
parents: 4433
diff changeset
61
4736
57f053d75893 added VOFLAG_* definitions and int vo_flags
alex
parents: 4731
diff changeset
62 #define VOFLAG_FULLSCREEN 0x01
57f053d75893 added VOFLAG_* definitions and int vo_flags
alex
parents: 4731
diff changeset
63 #define VOFLAG_MODESWITCHING 0x02
57f053d75893 added VOFLAG_* definitions and int vo_flags
alex
parents: 4731
diff changeset
64 #define VOFLAG_SWSCALE 0x04
57f053d75893 added VOFLAG_* definitions and int vo_flags
alex
parents: 4731
diff changeset
65 #define VOFLAG_FLIPPING 0x08
57f053d75893 added VOFLAG_* definitions and int vo_flags
alex
parents: 4731
diff changeset
66
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
67 typedef struct vo_info_s
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
68 {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
69 /* driver name ("Matrox Millennium G200/G400" */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
70 const char *name;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
71 /* short name (for config strings) ("mga") */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
72 const char *short_name;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
73 /* author ("Aaron Holtzman <aholtzma@ess.engr.uvic.ca>") */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
74 const char *author;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
75 /* any additional comments */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
76 const char *comment;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
77 } vo_info_t;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
78
4352
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
79 /* Direct access to BES */
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
80 typedef struct bes_da_s
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
81 {
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
82 vidix_rect_t dest; /* This field should be filled by x,y,w,h
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
83 from vidix:src but pitches from
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
84 vidix:dest */
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
85 int flags; /* Probably will work only when flag == 0 */
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
86 /* memory model */
4618
09198a119e39 added voctrl_guisupport and fixed some typos
alex
parents: 4592
diff changeset
87 unsigned frame_size; /* destination frame size */
09198a119e39 added voctrl_guisupport and fixed some typos
alex
parents: 4592
diff changeset
88 unsigned num_frames; /* number of available frames */
4352
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
89 unsigned offsets[VID_PLAY_MAXFRAMES]; /* relative offset of each frame from begin of video memory */
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
90 vidix_yuv_t offset; /* relative offsets within frame for yuv planes */
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
91 void* dga_addr; /* linear address of BES */
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
92 }bes_da_t;
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
93
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
94 /*
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
95 Video Accelearted Architecture.
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
96 Every field of this structure can be set to NULL that means that
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
97 features is not supported
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
98 */
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
99 typedef struct vo_vaa_s
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
100 {
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
101 uint32_t flags; /* currently undefined */
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
102 /*
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
103 * Query Direct Access to BES
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
104 * info - information to be filled
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
105 * returns: 0 on success errno on error.
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
106 */
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
107 int (*query_bes_da)(bes_da_t *info);
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
108 int (*get_video_eq)(vidix_video_eq_t *info);
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
109 int (*set_video_eq)(const vidix_video_eq_t *info);
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
110 int (*get_num_fx)(unsigned *info);
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
111 int (*get_oem_fx)(vidix_oem_fx_t *info);
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
112 int (*set_oem_fx)(const vidix_oem_fx_t *info);
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
113 int (*set_deint)(const vidix_deinterlace_t *info);
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
114 }vo_vaa_t;
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
115
4433
df8e0f71cc3c new info for tuning
nick
parents: 4352
diff changeset
116 /* Misc info to tuneup vo driver */
df8e0f71cc3c new info for tuning
nick
parents: 4352
diff changeset
117 typedef struct vo_tune_info_s
df8e0f71cc3c new info for tuning
nick
parents: 4352
diff changeset
118 {
df8e0f71cc3c new info for tuning
nick
parents: 4352
diff changeset
119 int pitch[3]; /* Should be 0 if unknown else power of 2 */
df8e0f71cc3c new info for tuning
nick
parents: 4352
diff changeset
120 }vo_tune_info_t;
df8e0f71cc3c new info for tuning
nick
parents: 4352
diff changeset
121
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
122 typedef struct vo_functions_s
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
123 {
4352
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
124 /*
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
125 * Preinitializes driver (real INITIALIZATION)
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
126 * arg - currently it's vo_subdevice
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
127 * returns: zero on successful initialization, non-zero on error.
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
128 */
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
129 uint32_t (*preinit)(const char *arg);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
130 /*
4352
ed5b85b713a3 Extensions for video accelerated architecture
nick
parents: 3201
diff changeset
131 * Initialize (means CONFIGURE) the display driver.
31
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
132 * params:
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
133 * width,height: image source size
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
134 * d_width,d_height: size of the requested window size, just a hint
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
135 * fullscreen: flag, 0=windowd 1=fullscreen, just a hint
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
136 * title: window title, if available
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
137 * format: fourcc of pixel format
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
138 * returns : zero on successful initialization, non-zero on error.
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
139 */
4433
df8e0f71cc3c new info for tuning
nick
parents: 4352
diff changeset
140 uint32_t (*config)(uint32_t width, uint32_t height, uint32_t d_width,
df8e0f71cc3c new info for tuning
nick
parents: 4352
diff changeset
141 uint32_t d_height, uint32_t fullscreen, char *title,
df8e0f71cc3c new info for tuning
nick
parents: 4352
diff changeset
142 uint32_t format,const vo_tune_info_t *);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
143
4592
5fbfd8545c3b query_ stuff replaced by new control() - patch by David Holm
arpi
parents: 4433
diff changeset
144 /*
5fbfd8545c3b query_ stuff replaced by new control() - patch by David Holm
arpi
parents: 4433
diff changeset
145 * Control interface
5fbfd8545c3b query_ stuff replaced by new control() - patch by David Holm
arpi
parents: 4433
diff changeset
146 */
5fbfd8545c3b query_ stuff replaced by new control() - patch by David Holm
arpi
parents: 4433
diff changeset
147 uint32_t (*control)(uint32_t request, void *data, ...);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
148
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
149 /*
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
150 * Return driver information.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
151 * returns : read-only pointer to a vo_info_t structure.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
152 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
153 const vo_info_t* (*get_info)(void);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
154
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
155 /*
31
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
156 * Display a new RGB/BGR frame of the video to the screen.
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
157 * params:
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
158 * src[0] - pointer to the image
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
159 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
160 uint32_t (*draw_frame)(uint8_t *src[]);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
161
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
162 /*
31
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
163 * Draw a planar YUV slice to the buffer:
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
164 * params:
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
165 * src[3] = source image planes (Y,U,V)
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
166 * stride[3] = source image planes line widths (in bytes)
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
167 * w,h = width*height of area to be copied (in Y pixels)
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
168 * x,y = position at the destination image (in Y pixels)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
169 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
170 uint32_t (*draw_slice)(uint8_t *src[], int stride[], int w,int h, int x,int y);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
171
1501
d40f2b686846 changes according to -utf8 option, draw_osd() function added
atlka
parents: 1326
diff changeset
172 /*
d40f2b686846 changes according to -utf8 option, draw_osd() function added
atlka
parents: 1326
diff changeset
173 * Draws OSD to the screen buffer
d40f2b686846 changes according to -utf8 option, draw_osd() function added
atlka
parents: 1326
diff changeset
174 */
d40f2b686846 changes according to -utf8 option, draw_osd() function added
atlka
parents: 1326
diff changeset
175 void (*draw_osd)(void);
d40f2b686846 changes according to -utf8 option, draw_osd() function added
atlka
parents: 1326
diff changeset
176
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
177 /*
31
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
178 * Blit/Flip buffer to the screen. Must be called after each frame!
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
179 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
180 void (*flip_page)(void);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
181
31
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
182 /*
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
183 * This func is called after every frames to handle keyboard and
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
184 * other events. It's called in PAUSE mode too!
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
185 */
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
186 void (*check_events)(void);
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
187
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
188 /*
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
189 * Closes driver. Should restore the original state of the system.
1fc618eba830 added check_events() interface
arpi_esp
parents: 1
diff changeset
190 */
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
191 void (*uninit)(void);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
192
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
193 } vo_functions_t;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
194
1142
6b6c173d050f added prototype of vo_format_name
al3x
parents: 408
diff changeset
195 char *vo_format_name(int format);
1326
76478d16903d added prototype of vo_init()
arpi
parents: 1268
diff changeset
196 int vo_init(void);
76478d16903d added prototype of vo_init()
arpi
parents: 1268
diff changeset
197
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
198 // NULL terminated array of all drivers
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
199 extern vo_functions_t* video_out_drivers[];
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
200
4811
38a9cddd9e4d added vo_dx,vo_dy (used currently only by X based outputs)
alex
parents: 4754
diff changeset
201 extern int vo_flags;
38a9cddd9e4d added vo_dx,vo_dy (used currently only by X based outputs)
alex
parents: 4754
diff changeset
202
5511
7a24a067f0af vo_config_count now counts calls to vo->config()
arpi
parents: 5502
diff changeset
203 extern int vo_config_count;
7a24a067f0af vo_config_count now counts calls to vo->config()
arpi
parents: 5502
diff changeset
204
4618
09198a119e39 added voctrl_guisupport and fixed some typos
alex
parents: 4592
diff changeset
205 // correct resolution/bpp on screen: (should be autodetected by vo_init())
388
ccb5ebfaaeac -bpp changes
arpi_esp
parents: 218
diff changeset
206 extern int vo_depthonscreen;
ccb5ebfaaeac -bpp changes
arpi_esp
parents: 218
diff changeset
207 extern int vo_screenwidth;
ccb5ebfaaeac -bpp changes
arpi_esp
parents: 218
diff changeset
208 extern int vo_screenheight;
213
6ec8f6ab6cb1 subtitle+OSD font support
arpi_esp
parents: 31
diff changeset
209
388
ccb5ebfaaeac -bpp changes
arpi_esp
parents: 218
diff changeset
210 // requested resolution/bpp: (-x -y -bpp options)
4811
38a9cddd9e4d added vo_dx,vo_dy (used currently only by X based outputs)
alex
parents: 4754
diff changeset
211 extern int vo_dx;
38a9cddd9e4d added vo_dx,vo_dy (used currently only by X based outputs)
alex
parents: 4754
diff changeset
212 extern int vo_dy;
388
ccb5ebfaaeac -bpp changes
arpi_esp
parents: 218
diff changeset
213 extern int vo_dwidth;
ccb5ebfaaeac -bpp changes
arpi_esp
parents: 218
diff changeset
214 extern int vo_dheight;
ccb5ebfaaeac -bpp changes
arpi_esp
parents: 218
diff changeset
215 extern int vo_dbpp;
ccb5ebfaaeac -bpp changes
arpi_esp
parents: 218
diff changeset
216
4981
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4971
diff changeset
217 extern int vo_old_x;
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4971
diff changeset
218 extern int vo_old_y;
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4971
diff changeset
219 extern int vo_old_width;
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4971
diff changeset
220 extern int vo_old_height;
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4971
diff changeset
221
1268
9877eaacff9e extern vo_doublebuffering cleanup
arpi
parents: 1184
diff changeset
222 extern int vo_doublebuffering;
5431
013458752947 disabling direct rendering by default (too buggy and conflicts with osd/sub)
arpi
parents: 5294
diff changeset
223 extern int vo_directrendering;
4667
95fa3901cafc add vsync support for doublebuffering to vo_vesa
atmos4
parents: 4618
diff changeset
224 extern int vo_vsync;
4981
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4971
diff changeset
225 extern int vo_fs;
1268
9877eaacff9e extern vo_doublebuffering cleanup
arpi
parents: 1184
diff changeset
226 extern int vo_fsmode;
6304
ee65527096c2 pan&scan support with -vo xv by ?? <mplayer@svennevid.net>
arpi
parents: 6110
diff changeset
227 extern float vo_panscan;
1268
9877eaacff9e extern vo_doublebuffering cleanup
arpi
parents: 1184
diff changeset
228
6755
a31b9f15cbff - fix audio equalizer
pontscho
parents: 6308
diff changeset
229 extern int vo_gamma_brightness;
a31b9f15cbff - fix audio equalizer
pontscho
parents: 6308
diff changeset
230 extern int vo_gamma_saturation;
a31b9f15cbff - fix audio equalizer
pontscho
parents: 6308
diff changeset
231 extern int vo_gamma_contrast;
a31b9f15cbff - fix audio equalizer
pontscho
parents: 6308
diff changeset
232 extern int vo_gamma_hue;
a31b9f15cbff - fix audio equalizer
pontscho
parents: 6308
diff changeset
233 extern int vo_gamma_red_intensity;
a31b9f15cbff - fix audio equalizer
pontscho
parents: 6308
diff changeset
234 extern int vo_gamma_green_intensity;
a31b9f15cbff - fix audio equalizer
pontscho
parents: 6308
diff changeset
235 extern int vo_gamma_blue_intensity;
a31b9f15cbff - fix audio equalizer
pontscho
parents: 6308
diff changeset
236
5651
b8d8d72776f2 fix playlist bug with gui and rewrite mousecursor show/hide code
pontscho
parents: 5511
diff changeset
237 extern int vo_mouse_timer_const;
b8d8d72776f2 fix playlist bug with gui and rewrite mousecursor show/hide code
pontscho
parents: 5511
diff changeset
238
2707
97efb75dceb8 vo_pts added
arpi
parents: 1501
diff changeset
239 extern int vo_pts;
3201
039a973b3dda Newest DXR3 patch (improved 1.0rc2) by David Holm.
atmos4
parents: 2707
diff changeset
240 extern float vo_fps;
2707
97efb75dceb8 vo_pts added
arpi
parents: 1501
diff changeset
241
1184
e8c3f89ecd96 vo_subdevice implemented
al3x
parents: 1142
diff changeset
242 extern char *vo_subdevice;
e8c3f89ecd96 vo_subdevice implemented
al3x
parents: 1142
diff changeset
243
7069
21e1ab99cb21 General Timing Formula algorithm from a scratch.
arpi
parents: 7009
diff changeset
244 #if defined(HAVE_FBDEV)||defined(HAVE_VESA)
21e1ab99cb21 General Timing Formula algorithm from a scratch.
arpi
parents: 7009
diff changeset
245
21e1ab99cb21 General Timing Formula algorithm from a scratch.
arpi
parents: 7009
diff changeset
246 typedef struct {
21e1ab99cb21 General Timing Formula algorithm from a scratch.
arpi
parents: 7009
diff changeset
247 float min;
21e1ab99cb21 General Timing Formula algorithm from a scratch.
arpi
parents: 7009
diff changeset
248 float max;
21e1ab99cb21 General Timing Formula algorithm from a scratch.
arpi
parents: 7009
diff changeset
249 } range_t;
21e1ab99cb21 General Timing Formula algorithm from a scratch.
arpi
parents: 7009
diff changeset
250
21e1ab99cb21 General Timing Formula algorithm from a scratch.
arpi
parents: 7009
diff changeset
251 extern float range_max(range_t *r);
21e1ab99cb21 General Timing Formula algorithm from a scratch.
arpi
parents: 7009
diff changeset
252 extern int in_range(range_t *r, float f);
21e1ab99cb21 General Timing Formula algorithm from a scratch.
arpi
parents: 7009
diff changeset
253 extern range_t *str2range(char *s);
21e1ab99cb21 General Timing Formula algorithm from a scratch.
arpi
parents: 7009
diff changeset
254 extern char *monitor_hfreq_str;
21e1ab99cb21 General Timing Formula algorithm from a scratch.
arpi
parents: 7009
diff changeset
255 extern char *monitor_vfreq_str;
21e1ab99cb21 General Timing Formula algorithm from a scratch.
arpi
parents: 7009
diff changeset
256 extern char *monitor_dotclock_str;
21e1ab99cb21 General Timing Formula algorithm from a scratch.
arpi
parents: 7009
diff changeset
257
21e1ab99cb21 General Timing Formula algorithm from a scratch.
arpi
parents: 7009
diff changeset
258 #endif
21e1ab99cb21 General Timing Formula algorithm from a scratch.
arpi
parents: 7009
diff changeset
259
4933
429994672d8c 're-include' possibility
nick
parents: 4811
diff changeset
260 #endif