2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_ASPECT_H
20 #define MPLAYER_ASPECT_H
21 /* Stuff for correct aspect scaling. */
23 extern int vo_panscan_x
;
24 extern int vo_panscan_y
;
25 extern float vo_panscan_amount
;
27 void panscan_init(void);
28 void panscan_calc(void);
29 void panscan_calc_windowed(void);
31 void aspect_save_orig(int orgw
, int orgh
);
33 void aspect_save_prescale(int prew
, int preh
);
35 void aspect_save_screenres(int scrw
, int scrh
);
37 #define A_WINZOOM 2 ///< zoom to fill window size
41 void aspect(int *srcw
, int *srch
, int zoom
);
42 void aspect_fit(int *srcw
, int *srch
, int fitw
, int fith
);
44 #endif /* MPLAYER_ASPECT_H */