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/refqueue.h | |
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/refqueue.h')
-rw-r--r-- | video/filter/refqueue.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/video/filter/refqueue.h b/video/filter/refqueue.h index 52ecc10953..62c0d4fecb 100644 --- a/video/filter/refqueue.h +++ b/video/filter/refqueue.h @@ -20,8 +20,9 @@ void mp_refqueue_next_field(struct mp_refqueue *q); struct mp_image *mp_refqueue_get(struct mp_refqueue *q, int pos); enum { - MP_MODE_OUTPUT_FIELDS = (1 << 0), // output fields separately - MP_MODE_INTERLACED_ONLY = (1 << 1), // only deinterlace marked frames + MP_MODE_DEINT = (1 << 0), // deinterlacing enabled + MP_MODE_OUTPUT_FIELDS = (1 << 1), // output fields separately + MP_MODE_INTERLACED_ONLY = (1 << 2), // only deinterlace marked frames }; void mp_refqueue_set_mode(struct mp_refqueue *q, int flags); @@ -29,5 +30,6 @@ bool mp_refqueue_should_deint(struct mp_refqueue *q); bool mp_refqueue_is_interlaced(struct mp_refqueue *q); bool mp_refqueue_is_top_field(struct mp_refqueue *q); bool mp_refqueue_top_field_first(struct mp_refqueue *q); +struct mp_image *mp_refqueue_get_field(struct mp_refqueue *q, int pos); #endif |