summaryrefslogtreecommitdiffstats
path: root/libvo/vo_mga.c
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-07-28 20:20:17 +0200
committerwm4 <wm4@mplayer2.org>2012-07-28 20:44:59 +0200
commit16145ff43fd92947cb8fe301ebce46e7be52a9fb (patch)
tree5a5ade633d922f416d3b1c7c68e8aff878da9a8f /libvo/vo_mga.c
parentf03eed6469e34a5bff975ed43292016a621296ea (diff)
downloadmpv-16145ff43fd92947cb8fe301ebce46e7be52a9fb.tar.bz2
mpv-16145ff43fd92947cb8fe301ebce46e7be52a9fb.tar.xz
libvo, libao: remove useless video and audio output drivers
Some of these have only limited use, and some of these have no use at all. Remove them. They make maintainance harder and nobody needs them. It's possible that many of the removed drivers were very useful a dozen of years ago, but now it's 2012. Note that some of these could be added back, in case they were more useful than I thought. But right now, they are just a burden. Reason for removal for each module: vo_3dfx, vo_dfbmga, vo_dxr3, vo_ivtv, vo_mga, vo_s3fb, vo_tdfxfb, vo_xmga, vo_tdfx_vid: All of these are for very specific and outdated hardware. Some of them require non-standard kernel drivers or do direct HW access. vo_dga: the most crappy and ancient way to get fast output on X. vo_aa: there's vo_caca for the same purpose. vo_ggi: this never lived, and is entirely useless. vo_mpegpes: for DVB cards, I can't test this and it's crappy. vo_fbdev, vo_fbdev2: there's vo_directfb2 vo_bl: what is this even? But it's neither important, nor alive. vo_svga, vo_vesa: you want to use this? You can't be serious. vo_wii: I can't test this, and who the hell uses this? vo_xvr100: some Sun thing. vo_xover: only useful in connection with xvr100. ao_nas: still alive, but I doubt it has any meaning today. ao_sun: Sun. ao_win32: use ao_dsound or ao_portaudio instead. ao_ivtv: removed along vo_ivtv. Also get rid of anything SDL related. SDL 1.x is total crap for video output, and will be replaced with SDL 2.x soon (perhaps), so if you want to use SDL, write output drivers for SDL 2.x. Additionally, I accidentally damaged Sun support, which made me completely remove Sun/Solaris support. Nobody cares about this anyway. Some left overs from previous commits removing modules were cleaned up.
Diffstat (limited to 'libvo/vo_mga.c')
-rw-r--r--libvo/vo_mga.c117
1 files changed, 0 insertions, 117 deletions
diff --git a/libvo/vo_mga.c b/libvo/vo_mga.c
deleted file mode 100644
index df99251847..0000000000
--- a/libvo/vo_mga.c
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * video output through mga_vid kernel driver
- *
- * This file is part of MPlayer.
- *
- * MPlayer is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * MPlayer is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with MPlayer; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "config.h"
-#include "mp_msg.h"
-#include "video_out.h"
-#include "video_out_internal.h"
-
-#include <sys/ioctl.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <sys/mman.h>
-#include <linux/fb.h>
-
-#include "drivers/mga_vid.h"
-#include "sub/sub.h"
-#include "aspect.h"
-
-static const vo_info_t info =
-{
- "Matrox G200/G4x0/G550 overlay (/dev/mga_vid)",
- "mga",
- "A'rpi",
- "Based on some code by Aaron Holtzman <aholtzma@ess.engr.uvic.ca>"
-};
-
-const LIBVO_EXTERN(mga)
-
-#include "mga_template.c"
-
-#define FBDEV "/dev/fb0"
-
-static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format)
-{
-
-// if (f >= 0) mga_uninit();
- if(!vo_screenwidth || !vo_screenheight) {
- int fd;
- struct fb_var_screeninfo fbinfo;
-
- if(-1 != (fd = open(FBDEV, O_RDONLY))) {
- if(0 == ioctl(fd, FBIOGET_VSCREENINFO, &fbinfo)) {
- if(!vo_screenwidth) vo_screenwidth = fbinfo.xres;
- if(!vo_screenheight) vo_screenheight = fbinfo.yres;
- } else {
- perror("FBIOGET_VSCREENINFO");
- }
- close(fd);
- } else {
- perror(FBDEV);
- }
- }
-
- if(vo_screenwidth && vo_screenheight){
- aspect_save_orig(width,height);
- aspect_save_prescale(d_width,d_height);
- aspect_save_screenres(vo_screenwidth,vo_screenheight);
-
- if(flags&VOFLAG_FULLSCREEN) { /* -fs */
- aspect(&d_width,&d_height,A_ZOOM);
- vo_fs = VO_TRUE;
- } else {
- aspect(&d_width,&d_height,A_NOZOOM);
- vo_fs = VO_FALSE;
- }
- mp_tmsg(MSGT_VO,MSGL_INFO, "[VO_MGA] aspect(): resized to %dx%d.\n",d_width,d_height);
- }
-
- vo_dwidth=d_width; vo_dheight=d_height;
- mga_vid_config.dest_width = d_width;
- mga_vid_config.dest_height= d_height;
- mga_vid_config.x_org= 0; // (720-mga_vid_config.dest_width)/2;
- mga_vid_config.y_org= 0; // (576-mga_vid_config.dest_height)/2;
- if(vo_screenwidth && vo_screenheight){
- mga_vid_config.x_org=(vo_screenwidth-d_width)/2;
- mga_vid_config.y_org=(vo_screenheight-d_height)/2;
- }
-
- return mga_init(width,height,format);
-}
-
-static void uninit(void)
-{
- mp_tmsg(MSGT_VO,MSGL_INFO, "[VO] uninit!\n");
- mga_uninit();
-}
-
-static void flip_page(void)
-{
- vo_mga_flip_page();
-}
-
-
-static void check_events(void)
-{
-}