diff options
author | wm4 <wm4@nowhere> | 2013-09-26 16:05:46 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-26 16:09:08 +0200 |
commit | f5bf6c0fb33fb6ff11f3250de708eb6e658772c9 (patch) | |
tree | 45b1cd109f782182b058dc2f45b2b5b406512a5c /video/filter/vf.h | |
parent | 7eb13c4028f2eb9174f2f65d1cfc15e5186bfbbc (diff) | |
download | mpv-f5bf6c0fb33fb6ff11f3250de708eb6e658772c9.tar.bz2 mpv-f5bf6c0fb33fb6ff11f3250de708eb6e658772c9.tar.xz |
vd: move aspect calculation to a function
This function would probably be useful in other places too.
I'm not sure why vd.c doesn't apply the aspect if it changes size by
less than 4 pixels. Maybe it's supposed to avoid ugly results with bad
scalers if the difference is too small to be noticed normally.
Diffstat (limited to 'video/filter/vf.h')
-rw-r--r-- | video/filter/vf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/filter/vf.h b/video/filter/vf.h index ea1246da17..f61bb8be80 100644 --- a/video/filter/vf.h +++ b/video/filter/vf.h @@ -150,6 +150,7 @@ void vf_print_filter_chain(int msglevel, struct vf_instance *vf); void vf_rescale_dsize(int *d_width, int *d_height, int old_w, int old_h, int new_w, int new_h); +void vf_set_dar(int *d_width, int *d_height, int w, int h, double dar); static inline int norm_qscale(int qscale, int type) { |