55 #define OFFSET(x) offsetof(DecimateContext, x)
56 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
59 {
"max",
"set the maximum number of consecutive dropped frames (positive), or the minimum interval between dropped frames (negative)",
81 int t = (w/16)*(h/16)*decimate->
frac;
85 for (y = 0; y < h-7; y += 4) {
86 for (x = 8; x < w-7; x += 4) {
89 ref+x+y*linesize, linesize);
93 if (d > decimate->
lo) {
120 for (plane = 0; ref->
data[plane] && ref->
linesize[plane]; plane++) {
121 int vsub = plane == 1 || plane == 2 ? decimate->
vsub : 0;
122 int hsub = plane == 1 || plane == 2 ? decimate->
hsub : 0;
141 if (!decimate->
avctx)
152 if (decimate->
avctx) {
204 "%s pts:%s pts_time:%s drop_count:%d\n",
223 }
while (decimate->
drop_count > 0 && ret >= 0);
248 .
name =
"mpdecimate",
253 .priv_class = &mpdecimate_class,
255 .
inputs = mpdecimate_inputs,