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. */
24 void panscan_init(struct vo
*vo
);
25 void panscan_calc(struct vo
*vo
);
26 void panscan_calc_windowed(struct vo
*vo
);
28 void aspect_save_orig(struct vo
*vo
, int orgw
, int orgh
);
30 void aspect_save_prescale(struct vo
*vo
, int prew
, int preh
);
32 void aspect_save_screenres(struct vo
*vo
, int scrw
, int scrh
);
34 #define A_WINZOOM 2 ///< zoom to fill window size
38 void aspect(struct vo
*vo
, int *srcw
, int *srch
, int zoom
);
39 void aspect_fit(struct vo
*vo
, int *srcw
, int *srch
, int fitw
, int fith
);
43 #define vo_panscan_x global_vo->panscan_x
44 #define vo_panscan_y global_vo->panscan_y
45 #define vo_panscan_amount global_vo->panscan_amount
46 #define monitor_aspect global_vo->monitor_aspect
48 #define panscan_init() panscan_init(global_vo)
49 #define panscan_calc() panscan_calc(global_vo)
50 #define panscan_calc_windowed() panscan_calc_windowed(global_vo)
51 #define aspect_save_orig(...) aspect_save_orig(global_vo, __VA_ARGS__)
52 #define aspect_save_prescale(...) aspect_save_prescale(global_vo, __VA_ARGS__)
53 #define aspect_save_screenres(...) aspect_save_screenres(global_vo, __VA_ARGS__)
54 #define aspect(...) aspect(global_vo, __VA_ARGS__)
57 #endif /* MPLAYER_ASPECT_H */