diff options
author | wm4 <wm4@nowhere> | 2016-05-27 17:01:36 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-05-27 17:03:00 +0200 |
commit | 9f42760538f02699945803f4a98b4dd8c4202774 (patch) | |
tree | c8cb4c04f42b17bf63e37f77871eac3fc2687715 /video/filter/vf_vavpp.c | |
parent | f8df0528b5b43bb148ceeb16732c96254e48c43e (diff) | |
download | mpv-9f42760538f02699945803f4a98b4dd8c4202774.tar.bz2 mpv-9f42760538f02699945803f4a98b4dd8c4202774.tar.xz |
vf_vdpaupp: use refqueue helper
This makes vf_vdpaupp use the deinterlacer helper code already used by
vf_vavpp. I nice side-effect is that this also removes some traces of
code originating from vo_vdpau.c, so we can switch it to LGPL.
Extend the refqueue helper with a deint setting. If not set,
mp_refqueue_should_deint() always returns false, which slightly
simplifies vf_vdpaupp. It's of no consequence to vf_vavpp (other than it
has to set it to get expected behavior).
Diffstat (limited to 'video/filter/vf_vavpp.c')
-rw-r--r-- | video/filter/vf_vavpp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/filter/vf_vavpp.c b/video/filter/vf_vavpp.c index b3adec0402..0365b55fb3 100644 --- a/video/filter/vf_vavpp.c +++ b/video/filter/vf_vavpp.c @@ -137,6 +137,7 @@ static void update_pipeline(struct vf_instance *vf) mp_refqueue_set_refs(p->queue, caps.num_backward_references, caps.num_forward_references); mp_refqueue_set_mode(p->queue, + (p->do_deint ? MP_MODE_DEINT : 0) | (p->deint_type >= 2 ? MP_MODE_OUTPUT_FIELDS : 0) | (p->interlaced_only ? MP_MODE_INTERLACED_ONLY : 0)); return; |