diff options
author | Philip Langdale <philipl@overt.org> | 2018-10-28 09:30:33 -0700 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-11-19 00:02:41 +0200 |
commit | ce2253b358c5023c18a0e12bfed8b44b3a05325b (patch) | |
tree | 987cd984e22fb5ec525bbd7aa7d174aceda20a0a /filters | |
parent | 721bec7dde976c128a6dd9dff111ab2cf5101c31 (diff) | |
download | mpv-ce2253b358c5023c18a0e12bfed8b44b3a05325b.tar.bz2 mpv-ce2253b358c5023c18a0e12bfed8b44b3a05325b.tar.xz |
filters: Add cuda/nvdec deinterlacing auto-filter using vf_yadif_cuda
Historically, there's been no way to offer deinterlacing with nvdec,
and for cuviddec, it required a command line flag, with no way to
toggle while playing.
Now that we have a cuda deinterlacing filter in ffmpeg, we can hook
it up hook it up as the cuda auto-deinterlacer. In practice, this
isn't going to be present very often, due to the licensing mess with
the cuda sdk, but we can support it when it is there.
Diffstat (limited to 'filters')
-rw-r--r-- | filters/f_auto_filters.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/filters/f_auto_filters.c b/filters/f_auto_filters.c index 3d4b650dd6..026eec6c3e 100644 --- a/filters/f_auto_filters.c +++ b/filters/f_auto_filters.c @@ -75,6 +75,10 @@ static void deint_process(struct mp_filter *f) } else if (img->imgfmt == IMGFMT_D3D11) { p->sub.filter = mp_create_user_filter(f, MP_OUTPUT_CHAIN_VIDEO, "d3d11vpp", NULL); + } else if (img->imgfmt == IMGFMT_CUDA) { + char *args[] = {"mode", "send_field", NULL}; + p->sub.filter = + mp_create_user_filter(f, MP_OUTPUT_CHAIN_VIDEO, "yadif_cuda", args); } else if (mp_sws_supports_input(img->imgfmt)) { char *args[] = {"mode", "send_field", NULL}; p->sub.filter = |