Browse Source

avfilter/vf_mpdecimate: add comment about 8x8 SAD

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Peter Cordes Michael Niedermayer 10 years ago
parent
commit
3ad3529b56
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavfilter/vf_mpdecimate.c

+ 5
- 0
libavfilter/vf_mpdecimate.c View File

@@ -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,


Loading…
Cancel
Save