From: Philip Langdale <philipl@overt.org> To: ffmpeg-devel@ffmpeg.org Cc: Thomas Mundt <tmundt75@gmail.com>, Philip Langdale <philipl@overt.org> Subject: [FFmpeg-devel] [PATCH] avfilter/vf_bwdif: Remove undesireable spatial preference logic Date: Fri, 24 Mar 2023 15:20:58 -0700 Message-ID: <20230324222058.148659-1-philipl@overt.org> (raw) bwdif inherited this check from yadif, which was originally supposed to prefer the spatial predictor if the temporal predictor was too far off. However, the core bwdif algorithm already accounts for the spatial predictor, so this additional check actually ends up preferring a worse value, reducing the overall quality. This was found by cyanreg while writing bwdif_vulkan, and the visual improvement is pretty dramatic in some samples. If we agree that this change is desirable, we should update all implementations. Signed-off-by: Philip Langdale <philipl@overt.org> --- libavfilter/vf_bwdif.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libavfilter/vf_bwdif.c b/libavfilter/vf_bwdif.c index 65c617ebb3..441bb11e7b 100644 --- a/libavfilter/vf_bwdif.c +++ b/libavfilter/vf_bwdif.c @@ -106,11 +106,6 @@ typedef struct ThreadData { interpol = (c + e) >> 1; #define FILTER2() \ - if (interpol > d + diff) \ - interpol = d + diff; \ - else if (interpol < d - diff) \ - interpol = d - diff; \ - \ dst[0] = av_clip(interpol, 0, clip_max); \ } \ \ -- 2.37.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next reply other threads:[~2023-03-24 22:21 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-03-24 22:20 Philip Langdale [this message] 2023-03-24 23:02 ` Thomas Mundt 2023-06-11 2:53 ` Philip Langdale 2023-06-11 18:11 ` Lynne 2023-06-14 22:34 ` Thomas Mundt
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230324222058.148659-1-philipl@overt.org \ --to=philipl@overt.org \ --cc=ffmpeg-devel@ffmpeg.org \ --cc=tmundt75@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git