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
|
|
34 //
|
|
35 // Externally visible list of all vo drivers
|
|
36 //
|
|
37
|
|
38 extern vo_functions_t video_out_mga;
|
|
39 extern vo_functions_t video_out_xmga;
|
|
40 extern vo_functions_t video_out_x11;
|
|
41 extern vo_functions_t video_out_xv;
|
|
42 extern vo_functions_t video_out_gl;
|
12
|
43 extern vo_functions_t video_out_dga;
|
38
|
44 extern vo_functions_t video_out_fsdga;
|
1
|
45 extern vo_functions_t video_out_sdl;
|
|
46 extern vo_functions_t video_out_3dfx;
|
|
47 extern vo_functions_t video_out_null;
|
|
48 extern vo_functions_t video_out_odivx;
|
|
49 extern vo_functions_t video_out_pgm;
|
|
50 extern vo_functions_t video_out_md5;
|
|
51 extern vo_functions_t video_out_syncfb;
|
|
52
|
|
53 vo_functions_t* video_out_drivers[] =
|
|
54 {
|
|
55 #ifdef HAVE_MGA
|
|
56 #ifdef HAVE_X11
|
|
57 &video_out_xmga,
|
|
58 #endif
|
|
59 &video_out_mga,
|
|
60 #endif
|
|
61 #ifdef HAVE_SYNCFB
|
|
62 &video_out_syncfb,
|
|
63 #endif
|
|
64 #ifdef HAVE_3DFX
|
|
65 &video_out_3dfx,
|
|
66 #endif
|
|
67 #ifdef HAVE_XV
|
|
68 &video_out_xv,
|
|
69 #endif
|
|
70 #ifdef HAVE_X11
|
|
71 &video_out_x11,
|
|
72 #endif
|
|
73 #ifdef HAVE_GL
|
|
74 &video_out_gl,
|
|
75 #endif
|
12
|
76 #ifdef HAVE_DGA
|
|
77 &video_out_dga,
|
38
|
78 &video_out_fsdga,
|
12
|
79 #endif
|
1
|
80 #ifdef HAVE_SDL
|
|
81 &video_out_sdl,
|
|
82 #endif
|
|
83 &video_out_null,
|
|
84 &video_out_odivx,
|
|
85 &video_out_pgm,
|
|
86 &video_out_md5,
|
|
87 NULL
|
|
88 };
|
|
89
|
|
90
|