sync with en/mplayer.1 rev. 30677
[mplayer/glamo.git] / libvo / aspect.h
blob0654d86c9f59f2f729d9906ea8681c0d1e646ede
1 /*
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
38 #define A_ZOOM 1
39 #define A_NOZOOM 0
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 */