[MPlayer-dev-eng] Adding an alternate option syntax to vf_expand

Romain Dolbeau dolbeau at irisa.fr
Mon May 3 17:24:48 CEST 2004


Hello all,

I'am trying to add an alternate to vf_expand. Right
no, one has to use "expand=W:H:X:Y:O", hardwiring
the size values. I'd like to use something like
"expand=N/D:O", with N and D representing the
numerator and denominator of the requested aspect
ratio, and expand computing the required size
on the fly. Handy to put in a config file, so
that when foing fullscreen OSD is in the black bars...

Unfortunately, despite the apparent option parsing
in open() (with a sscanf()), it seems it's done
in m_option.c, where it fails requesting an integer
for W (well, 4/3 is no integer, that's true).

So, what's the "right" way to do this in mplayer ?

-- 
Romain Dolbeau




More information about the MPlayer-dev-eng mailing list