Make -fixed-vo the default
[mplayer/glamo.git] / libvo / aspect.h
blob89839e2c94252c36861fd7481522282d92fbc7b0
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 struct vo;
24 void panscan_init(struct vo *vo);
25 void panscan_calc(struct vo *vo);
27 void aspect_save_orig(struct vo *vo, int orgw, int orgh);
29 void aspect_save_prescale(struct vo *vo, int prew, int preh);
31 void aspect_save_screenres(struct vo *vo, int scrw, int scrh);
33 #define A_ZOOM 1
34 #define A_NOZOOM 0
36 void aspect(struct vo *vo, int *srcw, int *srch, int zoom);
37 void aspect_fit(struct vo *vo, int *srcw, int *srch, int fitw, int fith);
40 #ifdef IS_OLD_VO
41 #define vo_panscan_x global_vo->panscan_x
42 #define vo_panscan_y global_vo->panscan_y
43 #define vo_panscan_amount global_vo->panscan_amount
44 #define monitor_aspect global_vo->monitor_aspect
46 #define panscan_init() panscan_init(global_vo)
47 #define panscan_calc() panscan_calc(global_vo)
48 #define aspect_save_orig(...) aspect_save_orig(global_vo, __VA_ARGS__)
49 #define aspect_save_prescale(...) aspect_save_prescale(global_vo, __VA_ARGS__)
50 #define aspect_save_screenres(...) aspect_save_screenres(global_vo, __VA_ARGS__)
51 #define aspect(...) aspect(global_vo, __VA_ARGS__)
52 #endif
54 #endif /* MPLAYER_ASPECT_H */