1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 23:02:37 +00:00

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.
This commit is contained in:
Philip Langdale 2023-03-04 14:33:39 -08:00 committed by Philip Langdale
parent 45a2d8c670
commit 642dae1a6e

View File

@ -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};