aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Cordes <peter@cordes.ca>2015-03-04 03:35:36 -0400
committerMichael Niedermayer <michaelni@gmx.at>2015-05-31 13:58:55 +0200
commit3ad3529b567e04a812c0ff103855ecba3efff900 (patch)
treee87a5848d80cc268c9485e181d4a4caefcf6ec5f
parent6590acf0fd0b78667487b2a1c09ca03e7868ac9f (diff)
downloadffmpeg-3ad3529b567e04a812c0ff103855ecba3efff900.tar.gz
avfilter/vf_mpdecimate: add comment about 8x8 SAD
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/vf_mpdecimate.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/vf_mpdecimate.c b/libavfilter/vf_mpdecimate.c
index cb3e69fd92..7cc32547ff 100644
--- a/libavfilter/vf_mpdecimate.c
+++ b/libavfilter/vf_mpdecimate.c
@@ -120,6 +120,11 @@ static int decimate_frame(AVFilterContext *ctx,
return 0;
for (plane = 0; ref->data[plane] && ref->linesize[plane]; plane++) {
+ /* use 8x8 SAD even on subsampled planes. The blocks won't match up with
+ * luma blocks, but hopefully nobody is depending on this to catch
+ * localized chroma changes that wouldn't exceed the thresholds when
+ * diluted by using what's effectively a larger block size.
+ */
int vsub = plane == 1 || plane == 2 ? decimate->vsub : 0;
int hsub = plane == 1 || plane == 2 ? decimate->hsub : 0;
if (diff_planes(ctx,