[MPlayer-dev-eng] [PATCH] mga_vid scaler limits

Ville Syrjälä syrjala at sci.fi
Sat Dec 16 16:00:05 CET 2006


On Sat, Dec 16, 2006 at 01:38:02PM +0200, Kalev Soikonen wrote:
> Hello
> 
> Disappointed that -vo xmga would refuse 1280x720 even when scaling was unnecessary,
> I went abit poking at my matrox and the mga_vid. It appears G550 can scale larger
> frames too, provided filtering is disabled (blockiness or jaggedy edges may result,
> but it works).  As long as the short dimension needs no scaling, it looks great.

I noticed the same thing when hacking the DirectFB matrox driver. 
Disabling vertical filtering allows source widths up to 2048. Note that 
this only applies to G450/G550. G200 and G400 can't handle it.

> diff -ur trunk/drivers/mga_vid.c main/drivers/mga_vid.c
> --- trunk/drivers/mga_vid.c	2006-06-05 13:29:08.000000000 +0000
> +++ main/drivers/mga_vid.c	2006-12-14 07:58:29.000000000 +0000
> @@ -799,6 +799,12 @@
>  	return -1;
>  }
>  
> +	// hardware limitation?
> +	if(sw > 1023)
> +		card->regs.besctl &= ~(1<<11);
> +	if(sh > 1023)
> +		card->regs.besctl &= ~(1<<10);

Shouldn't these be 1024?

Did you actually try height > 1024 too? IIRC I didn't get it working 
with the DirectFB driver.

-- 
Ville Syrjälä
syrjala at sci.fi
http://www.sci.fi/~syrjala/



More information about the MPlayer-dev-eng mailing list