Mercurial > mplayer.hg
changeset 7452:b062be2c1423
This patch allows you to use fractional values for specifying a zoom.
(based on) patch by Panagiotis Issaris <takis@lumumba.luc.ac.be>
author | arpi |
---|---|
date | Fri, 20 Sep 2002 18:57:14 +0000 |
parents | 8669e56d2d98 |
children | 3f00afba3dac |
files | cfg-common.h libmpcodecs/vd.c |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/cfg-common.h Fri Sep 20 18:54:22 2002 +0000 +++ b/cfg-common.h Fri Sep 20 18:57:14 2002 +0000 @@ -131,7 +131,7 @@ {"nozoom", &softzoom, CONF_TYPE_FLAG, 0, 1, 0, NULL}, {"aspect", &movie_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 3.0, NULL}, {"noaspect", &movie_aspect, CONF_TYPE_FLAG, 0, 0, 0, NULL}, - {"xy", &screen_size_xy, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, + {"xy", &screen_size_xy, CONF_TYPE_FLOAT, CONF_RANGE, 0.001, 4096, NULL}, {"flip", &flip, CONF_TYPE_FLAG, 0, -1, 1, NULL}, {"noflip", &flip, CONF_TYPE_FLAG, 0, -1, 0, NULL}, @@ -180,7 +180,7 @@ #include "config.h" // codec/filter opts: (defiend at libmpcodecs/vd.c) -extern int screen_size_xy; +extern float screen_size_xy; extern float movie_aspect; extern int softzoom; extern int flip;
--- a/libmpcodecs/vd.c Fri Sep 20 18:54:22 2002 +0000 +++ b/libmpcodecs/vd.c Fri Sep 20 18:57:14 2002 +0000 @@ -121,7 +121,7 @@ int flip=-1; int opt_screen_size_x=0; int opt_screen_size_y=0; -int screen_size_xy=0; +float screen_size_xy=0; float movie_aspect=-1.0; int vo_flags=0; int vd_use_slices=1;