Mercurial > mplayer.hg
annotate libvo/video_out.c @ 4853:2853640cea58
colorkey enabled ... until colorkey is correctly supported in vidix
author | michael |
---|---|
date | Mon, 25 Feb 2002 02:05:30 +0000 |
parents | 38a9cddd9e4d |
children | bfc652fc7f43 |
rev | line source |
---|---|
1 | 1 /* |
2 * video_out.c, | |
3 * | |
4 * Copyright (C) Aaron Holtzman - June 2000 | |
5 * | |
6 * mpeg2dec is free software; you can redistribute it and/or modify | |
7 * it under the terms of the GNU General Public License as published by | |
8 * the Free Software Foundation; either version 2, or (at your option) | |
9 * any later version. | |
10 * | |
11 * mpeg2dec is distributed in the hope that it will be useful, | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 * GNU General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU General Public License | |
17 * along with GNU Make; see the file COPYING. If not, write to | |
18 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | |
19 * | |
20 */ | |
21 | |
22 #include <stdio.h> | |
23 #include <stdlib.h> | |
24 #include <string.h> | |
25 | |
26 #include <unistd.h> | |
27 #include <sys/mman.h> | |
28 | |
29 #include "config.h" | |
30 #include "video_out.h" | |
31 | |
32 #include "../linux/shmem.h" | |
33 | |
4736 | 34 int vo_flags=0; |
35 | |
388 | 36 // currect resolution/bpp on screen: (should be autodetected by vo_init()) |
37 int vo_depthonscreen=0; | |
38 int vo_screenwidth=0; | |
39 int vo_screenheight=0; | |
40 | |
41 // requested resolution/bpp: (-x -y -bpp options) | |
4811
38a9cddd9e4d
added vo_dx,vo_dy (used currently only by X based outputs)
alex
parents:
4736
diff
changeset
|
42 int vo_dx=0; |
38a9cddd9e4d
added vo_dx,vo_dy (used currently only by X based outputs)
alex
parents:
4736
diff
changeset
|
43 int vo_dy=0; |
388 | 44 int vo_dwidth=0; |
45 int vo_dheight=0; | |
46 int vo_dbpp=0; | |
1149
6a0f937b52e6
- new config option -lircconfig (config file for lirc)
acki2
parents:
1130
diff
changeset
|
47 int vo_doublebuffering = 0; |
4667 | 48 int vo_vsync = 0; |
1269 | 49 int vo_fsmode = 0; |
388 | 50 |
2707 | 51 int vo_pts=0; // for hw decoding |
3201 | 52 float vo_fps=0; // for mp1e rte |
2707 | 53 |
1184 | 54 char *vo_subdevice = NULL; |
4494 | 55 int vaa_use_dr=1; |
4229 | 56 /**************************************** |
57 * GAMMA CORRECTION * | |
58 ****************************************/ | |
59 int vo_gamma_brightness=0; | |
60 int vo_gamma_saturation=0; | |
61 int vo_gamma_contrast=0; | |
62 int vo_gamma_hue=0; | |
4317 | 63 int vo_gamma_red_intensity=0; |
64 int vo_gamma_green_intensity=0; | |
65 int vo_gamma_blue_intensity=0; | |
1 | 66 // |
67 // Externally visible list of all vo drivers | |
68 // | |
69 extern vo_functions_t video_out_mga; | |
70 extern vo_functions_t video_out_xmga; | |
71 extern vo_functions_t video_out_x11; | |
72 extern vo_functions_t video_out_xv; | |
73 extern vo_functions_t video_out_gl; | |
2124 | 74 extern vo_functions_t video_out_gl2; |
12 | 75 extern vo_functions_t video_out_dga; |
38 | 76 extern vo_functions_t video_out_fsdga; |
1 | 77 extern vo_functions_t video_out_sdl; |
78 extern vo_functions_t video_out_3dfx; | |
1979
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1871
diff
changeset
|
79 extern vo_functions_t video_out_tdfxfb; |
1 | 80 extern vo_functions_t video_out_null; |
2528 | 81 //extern vo_functions_t video_out_odivx; |
4214
664984198aef
zr driver (tv-out for DC10/DC10+, iomega buz, LML33...) added - patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4169
diff
changeset
|
82 extern vo_functions_t video_out_zr; |
1 | 83 extern vo_functions_t video_out_pgm; |
84 extern vo_functions_t video_out_md5; | |
85 extern vo_functions_t video_out_syncfb; | |
225 | 86 extern vo_functions_t video_out_fbdev; |
286 | 87 extern vo_functions_t video_out_svga; |
528 | 88 extern vo_functions_t video_out_png; |
1130 | 89 extern vo_functions_t video_out_ggi; |
1511 | 90 extern vo_functions_t video_out_aa; |
1871 | 91 extern vo_functions_t video_out_mpegpes; |
4599 | 92 extern vo_functions_t video_out_yuv4mpeg; |
2645 | 93 extern vo_functions_t video_out_dxr3; |
4561 | 94 #ifdef HAVE_VESA |
2244 | 95 extern vo_functions_t video_out_vesa; |
96 #endif | |
3275
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3201
diff
changeset
|
97 extern vo_functions_t video_out_directfb; |
4124 | 98 #ifdef CONFIG_VIDIX |
99 extern vo_functions_t video_out_xvidix; | |
100 #endif | |
101 | |
1 | 102 vo_functions_t* video_out_drivers[] = |
103 { | |
1179 | 104 #ifdef HAVE_XMGA |
1 | 105 &video_out_xmga, |
106 #endif | |
1179 | 107 #ifdef HAVE_MGA |
1 | 108 &video_out_mga, |
109 #endif | |
110 #ifdef HAVE_SYNCFB | |
111 &video_out_syncfb, | |
112 #endif | |
113 #ifdef HAVE_3DFX | |
114 &video_out_3dfx, | |
115 #endif | |
1979
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1871
diff
changeset
|
116 #ifdef HAVE_TDFXFB |
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1871
diff
changeset
|
117 &video_out_tdfxfb, |
6278f566cd91
tdfxfb yuv driver by Zeljko Stevanovic <zsteva@ptt.yu>
arpi
parents:
1871
diff
changeset
|
118 #endif |
1 | 119 #ifdef HAVE_XV |
120 &video_out_xv, | |
121 #endif | |
122 #ifdef HAVE_X11 | |
123 &video_out_x11, | |
124 #endif | |
125 #ifdef HAVE_GL | |
126 &video_out_gl, | |
2124 | 127 &video_out_gl2, |
1 | 128 #endif |
12 | 129 #ifdef HAVE_DGA |
130 &video_out_dga, | |
1235 | 131 // &video_out_fsdga, |
12 | 132 #endif |
1 | 133 #ifdef HAVE_SDL |
134 &video_out_sdl, | |
135 #endif | |
1235 | 136 #ifdef HAVE_GGI |
137 &video_out_ggi, | |
138 #endif | |
234 | 139 #ifdef HAVE_FBDEV |
140 &video_out_fbdev, | |
141 #endif | |
286 | 142 #ifdef HAVE_SVGALIB |
143 &video_out_svga, | |
144 #endif | |
1511 | 145 #ifdef HAVE_AA |
146 &video_out_aa, | |
147 #endif | |
2645 | 148 #ifdef HAVE_DXR3 |
149 &video_out_dxr3, | |
150 #endif | |
4214
664984198aef
zr driver (tv-out for DC10/DC10+, iomega buz, LML33...) added - patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4169
diff
changeset
|
151 #ifdef HAVE_ZR |
664984198aef
zr driver (tv-out for DC10/DC10+, iomega buz, LML33...) added - patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4169
diff
changeset
|
152 &video_out_zr, |
664984198aef
zr driver (tv-out for DC10/DC10+, iomega buz, LML33...) added - patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4169
diff
changeset
|
153 #endif |
1511 | 154 |
529 | 155 #ifdef HAVE_PNG |
156 &video_out_png, | |
157 #endif | |
1 | 158 &video_out_null, |
2528 | 159 // &video_out_odivx, |
1 | 160 &video_out_pgm, |
161 &video_out_md5, | |
1871 | 162 &video_out_mpegpes, |
4599 | 163 &video_out_yuv4mpeg, |
4561 | 164 #ifdef HAVE_VESA |
2244 | 165 &video_out_vesa, |
166 #endif | |
3275
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3201
diff
changeset
|
167 #ifdef HAVE_DIRECTFB |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3201
diff
changeset
|
168 &video_out_directfb, |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3201
diff
changeset
|
169 #endif |
4169
91b50468a1a4
Fix xvidix for non-x11 systems (delayed due netloss)
atmos4
parents:
4124
diff
changeset
|
170 #if defined(CONFIG_VIDIX) && defined(HAVE_X11) |
4124 | 171 &video_out_xvidix, |
172 #endif | |
1 | 173 NULL |
174 }; |