summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramiro <ramiro@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-09-09 14:50:51 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:16:45 +0200
commitfdce82091e6ff3d3bf05fdbbad381882e61c7234 (patch)
treeeafbcf2bb4d49dc244a5874982bed7bea86b22e0
parent691aa62ed689d4da093cb03ec6c6e0531c22f554 (diff)
downloadmpv-fdce82091e6ff3d3bf05fdbbad381882e61c7234.tar.bz2
mpv-fdce82091e6ff3d3bf05fdbbad381882e61c7234.tar.xz
mga: disable g200 support
g200 should use the swscale interface to convert to nv12. If anyone still uses such a card and is willing to test, just let me know. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32111 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/mga_template.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libvo/mga_template.c b/libvo/mga_template.c
index fa6b52e0d6..82dd54eed1 100644
--- a/libvo/mga_template.c
+++ b/libvo/mga_template.c
@@ -19,7 +19,6 @@
#include "fastmemcpy.h"
#include "cpudetect.h"
#include "libswscale/swscale.h"
-#include "libswscale/rgb2rgb.h"
#include "libmpcodecs/vf_scale.h"
#include "mp_msg.h"
#include "old_vo_wrapper.h"
@@ -67,6 +66,7 @@ static void draw_osd(void)
}
+#if 0 // Should use libswscale's interface to NV12
static void
draw_slice_g200(uint8_t *image[], int stride[], int width,int height,int x,int y)
{
@@ -84,6 +84,7 @@ draw_slice_g200(uint8_t *image[], int stride[], int width,int height,int x,int y
width, height,
stride[1], stride[2], bespitch);
}
+#endif
static void
draw_slice_g400(uint8_t *image[], int stride[], int w,int h,int x,int y)
@@ -126,9 +127,11 @@ draw_slice(uint8_t *src[], int stride[], int w,int h,int x,int y)
w,h,x,y);
#endif
+#if 0
if (mga_vid_config.card_type == MGA_G200)
draw_slice_g200(src,stride,w,h,x,y);
else
+#endif
draw_slice_g400(src,stride,w,h,x,y);
return 0;
}
@@ -419,6 +422,10 @@ static int mga_init(int width,int height,unsigned int format){
return -1;
}
}
+ if (mga_vid_config.card_type == MGA_G200) {
+ mp_msg(MSGT_VO, MSGL_FATAL, "G200 cards support is currently broken. patches welcome.\n");
+ return -1;
+ }
mp_msg(MSGT_VO,MSGL_V,"[MGA] Using %d buffers.\n",mga_vid_config.num_frames);
@@ -453,7 +460,6 @@ static int preinit(const char *vo_subdevice)
{
uint32_t ver;
const char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid";
- sws_rgb2rgb_init(get_sws_cpuflags());
f = open(devname,O_RDWR);
if(f == -1)