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.
27 /* default zoom state 0 off, 1 on */
30 extern float monitor_aspect
;
37 int main(int argc
, char *argv
[]) {
39 //printf("argc: %d\n",argc);
44 monitor_aspect
= (float)atoi(argv
[7])/(float)atoi(argv
[8]);
46 aspect_save_prescale(atoi(argv
[5]),atoi(argv
[6]));
47 printf("prescale size: %sx%s\n",argv
[5],argv
[6]);
49 aspect_save_screenres(atoi(argv
[1]),atoi(argv
[2]));
50 printf("screenres: %sx%s\n",argv
[1],argv
[2]);
51 aspect_save_orig(atoi(argv
[3]),atoi(argv
[4]));
52 printf("original size: %sx%s\n",argv
[3],argv
[4]);
53 w
=atoi(argv
[3]); h
=atoi(argv
[4]);
56 printf("USAGE: %s <screenw> <screenh> <origw> <origh>\n[<prescalew> "
57 "<prescaleh>] [<screenaspectw> <screenaspecth>] [<zoom 0/1>]\n",
61 printf("monitor_aspect: %f\n",monitor_aspect
);
63 printf("new size: %dx%d\n",w
,h
);