VO, AO: remove obsolete/problematic VO/AO drivers
[mplayer.git] / libvo / aspect.h
blobb867916112a1b58c7b1ec71e2a5ac31a5b92b168
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_windowed(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_WINZOOM 2 ///< zoom to fill window size
34 #define A_ZOOM 1
35 #define A_NOZOOM 0
37 void aspect(struct vo *vo, int *srcw, int *srch, int zoom);
38 void aspect_fit(struct vo *vo, int *srcw, int *srch, int fitw, int fith);
41 #ifdef IS_OLD_VO
42 #define vo_panscan_x global_vo->panscan_x
43 #define vo_panscan_y global_vo->panscan_y
44 #define vo_panscan_amount global_vo->panscan_amount
45 #define monitor_aspect global_vo->monitor_aspect
47 #define panscan_init() panscan_init(global_vo)
48 #define panscan_calc_windowed() panscan_calc_windowed(global_vo)
49 #define aspect_save_orig(...) aspect_save_orig(global_vo, __VA_ARGS__)
50 #define aspect_save_prescale(...) aspect_save_prescale(global_vo, __VA_ARGS__)
51 #define aspect_save_screenres(...) aspect_save_screenres(global_vo, __VA_ARGS__)
52 #define aspect(...) aspect(global_vo, __VA_ARGS__)
53 #endif
55 #endif /* MPLAYER_ASPECT_H */