diff options
author | Philip Langdale <philipl@overt.org> | 2023-03-04 14:33:39 -0800 |
---|---|---|
committer | Philip Langdale <github.philipl@overt.org> | 2023-05-28 15:46:05 -0700 |
commit | 642dae1a6e0d8c09d09c49878275a026b5e2c6a9 (patch) | |
tree | 34f94141d2d509489dd67977032b3483ede1711d /filters | |
parent | 45a2d8c6702f999260834aab12b840814fb28f76 (diff) | |
download | mpv-642dae1a6e0d8c09d09c49878275a026b5e2c6a9.tar.bz2 mpv-642dae1a6e0d8c09d09c49878275a026b5e2c6a9.tar.xz |
hwdec_vulkan: use bwdif_vulkan as deinterlacing auto filter
This is currently the only vulkan deinterlacing filter in ffmpeg and
it's a very high quality algorithm.
Diffstat (limited to 'filters')
-rw-r--r-- | filters/f_auto_filters.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/filters/f_auto_filters.c b/filters/f_auto_filters.c index cbd2769490..c8b31f60fb 100644 --- a/filters/f_auto_filters.c +++ b/filters/f_auto_filters.c @@ -82,6 +82,12 @@ static void deint_process(struct mp_filter *f) char *args[] = {"mode", "send_field", NULL}; p->sub.filter = mp_create_user_filter(f, MP_OUTPUT_CHAIN_VIDEO, "yadif_cuda", args); +#if HAVE_VULKAN_INTEROP + } else if (img->imgfmt == IMGFMT_VULKAN) { + char *args[] = {"mode", "send_field", NULL}; + p->sub.filter = + mp_create_user_filter(f, MP_OUTPUT_CHAIN_VIDEO, "bwdif_vulkan", args); +#endif } else if (img->imgfmt == IMGFMT_VAAPI) { char *args[] = {"deint", "motion-adaptive", "interlaced-only", "yes", NULL}; |