diff options
author | wm4 <wm4@nowhere> | 2012-12-26 21:08:54 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-13 20:04:12 +0100 |
commit | 926c6631ff35925c002d1e267abcbded38777d05 (patch) | |
tree | a345fe20bf7173e7bf086fcbf99712e8783066e4 /video/filter/vf.h | |
parent | 717d904bbc20e06e2c6c71613d59e065845ff209 (diff) | |
download | mpv-926c6631ff35925c002d1e267abcbded38777d05.tar.bz2 mpv-926c6631ff35925c002d1e267abcbded38777d05.tar.xz |
vf: add vf_rescale_dsize()
Needed because mplayer* basically tracks DAR, which makes it harder for
filters which want to keep the SAR.
The contents of this function are duplicated in a few filters, and will
be used instead of custom code as the filters are updated later.
Diffstat (limited to 'video/filter/vf.h')
-rw-r--r-- | video/filter/vf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/filter/vf.h b/video/filter/vf.h index 358b8135f5..bca9ebfff5 100644 --- a/video/filter/vf.h +++ b/video/filter/vf.h @@ -141,6 +141,9 @@ int vf_config_wrapper(struct vf_instance *vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt); +void vf_rescale_dsize(struct vf_instance *vf, int *d_width, int *d_height, + int old_w, int old_h, int new_w, int new_h); + static inline int norm_qscale(int qscale, int type) { switch (type) { |