54 #define OFFSET(x) offsetof(DecimateContext, x)
55 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
58 {
"max",
"set the maximum number of consecutive dropped frames (positive), or the minimum interval between dropped frames (negative)",
80 int t = (w/16)*(h/16)*decimate->
frac;
83 for (y = 0; y < h-7; y += 4) {
84 for (x = 8; x < w-7; x += 4) {
85 d = decimate->
sad(cur + y*cur_linesize + x, cur_linesize,
86 ref + y*ref_linesize + x, ref_linesize);
89 if (d > decimate->
lo) {
116 for (plane = 0; ref->
data[plane] && ref->
linesize[plane]; plane++) {
117 int vsub = plane == 1 || plane == 2 ? decimate->
vsub : 0;
118 int hsub = plane == 1 || plane == 2 ? decimate->
hsub : 0;
196 "%s pts:%s pts_time:%s drop_count:%d\n",
215 }
while (decimate->
drop_count > 0 && ret >= 0);
240 .
name =
"mpdecimate",
245 .priv_class = &mpdecimate_class,
247 .
inputs = mpdecimate_inputs,