[FFmpeg-devel] [PATCH] avfilter/vf_libplacebo: add bwdif option (PR #20303)

Niklas Haas code at ffmpeg.org
Thu Aug 21 14:05:42 EEST 2025


PR #20303 opened by Niklas Haas (haasn)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20303
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20303.patch

See-Also: https://code.videolan.org/videolan/libplacebo/-/merge_requests/737


From 20d6f1fdbdd95df75e4f3025e6cdc1cd92c2dda1 Mon Sep 17 00:00:00 2001
From: Niklas Haas <git at haasn.dev>
Date: Thu, 21 Aug 2025 13:03:56 +0200
Subject: [PATCH] avfilter/vf_libplacebo: add bwdif option

See-Also: https://code.videolan.org/videolan/libplacebo/-/merge_requests/737
---
 libavfilter/vf_libplacebo.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c
index af18a05258..c35473a44c 100644
--- a/libavfilter/vf_libplacebo.c
+++ b/libavfilter/vf_libplacebo.c
@@ -1609,6 +1609,9 @@ static const AVOption libplacebo_options[] = {
         { "weave", "Weave fields together (no-op)",    0, AV_OPT_TYPE_CONST, {.i64 = PL_DEINTERLACE_WEAVE}, 0, 0, STATIC, .unit = "deinterlace" },
         { "bob",   "Naive bob deinterlacing",          0, AV_OPT_TYPE_CONST, {.i64 = PL_DEINTERLACE_BOB},   0, 0, STATIC, .unit = "deinterlace" },
         { "yadif", "Yet another deinterlacing filter", 0, AV_OPT_TYPE_CONST, {.i64 = PL_DEINTERLACE_YADIF}, 0, 0, STATIC, .unit = "deinterlace" },
+#if PL_API_VER >= 353
+        { "bwdif", "Bob weaver deinterlacing filter",  0, AV_OPT_TYPE_CONST, {.i64 = PL_DEINTERLACE_BWDIF}, 0, 0, STATIC, .unit = "deinterlace" },
+#endif
     { "skip_spatial_check", "Skip yadif spatial check", OFFSET(skip_spatial_check), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DYNAMIC },
     { "send_fields", "Output a frame for each field", OFFSET(send_fields), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DYNAMIC },
 
-- 
2.49.1



More information about the ffmpeg-devel mailing list