Makefile: Don't use "install -d" on existing directories
[mplayer.git] / libvo / aspect.h
blob5fa313d7ff0ee7374a54b91d5d9cbd337299c8a1
1 #ifndef MPLAYER_ASPECT_H
2 #define MPLAYER_ASPECT_H
3 /* Stuff for correct aspect scaling. */
5 struct vo;
6 void panscan_init(struct vo *vo);
7 void panscan_calc(struct vo *vo);
9 void aspect_save_orig(struct vo *vo, int orgw, int orgh);
11 void aspect_save_prescale(struct vo *vo, int prew, int preh);
13 void aspect_save_screenres(struct vo *vo, int scrw, int scrh);
15 #define A_ZOOM 1
16 #define A_NOZOOM 0
18 void aspect(struct vo *vo, int *srcw, int *srch, int zoom);
19 void aspect_fit(struct vo *vo, int *srcw, int *srch, int fitw, int fith);
22 #ifdef IS_OLD_VO
23 #define vo_panscan_x global_vo->panscan_x
24 #define vo_panscan_y global_vo->panscan_y
25 #define vo_panscan_amount global_vo->panscan_amount
26 #define monitor_aspect global_vo->monitor_aspect
28 #define panscan_init() panscan_init(global_vo)
29 #define panscan_calc() panscan_calc(global_vo)
30 #define aspect_save_orig(...) aspect_save_orig(global_vo, __VA_ARGS__)
31 #define aspect_save_prescale(...) aspect_save_prescale(global_vo, __VA_ARGS__)
32 #define aspect_save_screenres(...) aspect_save_screenres(global_vo, __VA_ARGS__)
33 #define aspect(...) aspect(global_vo, __VA_ARGS__)
34 #endif
36 #endif /* MPLAYER_ASPECT_H */