2 * test app for aspect.[ch] by Atmos
4 * This file is part of MPlayer.
6 * MPlayer is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * MPlayer is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 /* default zoom state 0 off, 1 on */
29 extern float monitor_aspect
;
33 int main(int argc
, char *argv
[]) {
35 //printf("argc: %d\n",argc);
40 monitor_aspect
= (float)atoi(argv
[7])/(float)atoi(argv
[8]);
42 aspect_save_prescale(atoi(argv
[5]),atoi(argv
[6]));
43 printf("prescale size: %sx%s\n",argv
[5],argv
[6]);
45 aspect_save_screenres(atoi(argv
[1]),atoi(argv
[2]));
46 printf("screenres: %sx%s\n",argv
[1],argv
[2]);
47 aspect_save_orig(atoi(argv
[3]),atoi(argv
[4]));
48 printf("original size: %sx%s\n",argv
[3],argv
[4]);
49 w
=atoi(argv
[3]); h
=atoi(argv
[4]);
52 printf("USAGE: %s <screenw> <screenh> <origw> <origh>\n[<prescalew> "
53 "<prescaleh>] [<screenaspectw> <screenaspecth>] [<zoom 0/1>]\n",
57 printf("monitor_aspect: %f\n",monitor_aspect
);
59 printf("new size: %dx%d\n",w
,h
);