[MPlayer-dev-eng] [PATCH] dsize negative scale values

Oded Shimon ods15 at ods15.dyndns.org
Sat Jul 2 22:28:58 CEST 2005


On Sat, Jul 02, 2005 at 12:39:46PM -0700, RC wrote:
> Quite a while ago, Rich asked me to patch dsize to accept negative
> values like scale, so you can use hardware scaling instead of sws.
> Unfortunately, he never got around to applying it, so here it is.  
> 
> I basically just copied Reimer's code from vf_scale.c to handle
> negative values, and changed the formatting to fit with vf_dsize.c.
> 
> There seem to be a lot of people that could use this feature.  I've
> suggested it a couple times already, only to find it was never actually
> applied...

I'd like something more.
I was thinking something like:

dsize=w:h:keepaspect:round

for w,h, -1 means d_w/d_h, and 0 means original w/h

for keepaspect, 0 means nothing, 1 means force d_w/d_h aspect, by 
downscaling, 2 means the same, but upscaling, 3 and 4 mean the same, but 
with w/h aspect.

Shall I make a patch?...

- ods15




More information about the MPlayer-dev-eng mailing list