From d_werner at gmx.net Fri Dec 16 18:00:47 2011 From: d_werner at gmx.net (Dieter Werner) Date: Fri, 16 Dec 2011 18:00:47 +0100 Subject: [MPlayer-matrox] [PATCH] mga_vid scaler limits G450 Message-ID: <4EEB793F.6000303@gmx.net> Hello, I encountered the problem that mplayer with -vo xmga and current mga_vid can not display videos with x-resolution >1024 with a Matrox G450. I found the patch in the thread http://lists-archives.org/mplayer-dev-eng/14367-mga_vid-scaler-limits.html which enables this and found that in the current version of mga_vid this is included for G550. As according to the commentary it should also work with the G450 I modified the source so that it also works for my G450 - which is recognised as G400. It should still work with a G550 and not work with a G200, as before. With a real G400 it will also allow the setting - I do not know which effect this can have on the card. I also did not want to dive deeper in to properly distinguish between G400 and G450. At least for owners of a G450 here is the patch for the current version of mga_vid.c (Revision 272 from svn://svn.mplayerhq.hu/mga_vid/mga_vid/trunk) diff -ur mga_vid.c_272 mga_vid.c --- mga_vid.c_272 2011-12-15 18:23:43.988676246 +0100 +++ mga_vid.c 2011-12-16 16:50:06.440854695 +0100 @@ -572,8 +572,8 @@ } // disable BES vertical filter if width is greater than 1024 - // and if we have a G550 - if (sw > 1024 && card->card_type == MGA_G550) + // and if we have a G550 or G450 (recognised as G400), i.e. !=G200 + if (sw > 1024 && card->card_type != MGA_G200 ) card->regs.besctl &= ~(1 << 11); // setting black&white mode @@ -710,7 +710,7 @@ } if ((card->config.src_width > 1024 || card->config.src_height > 1024) - && (card->card_type != MGA_G550 && card->config.src_height > 1024)) { + && (card->card_type == MGA_G200 && card->config.src_height > 1024)) { // G400 can be a G450 which can handle it like G550, only G200 definitlely can not printk(KERN_ERR "mga_vid: overlay sizes bigger than 1024x1024 are not supported with this card type, rescale the picture in software\n"); result = -EFAULT; Kind regards, Dieter