57 #define OFFSET(x) offsetof(DecimateContext, x)
58 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
61 {
"max",
"set the maximum number of consecutive dropped frames (positive), or the minimum interval between dropped frames (negative)",
84 int t = (w/16)*(h/16)*decimate->
frac;
88 for (y = 0; y < h-7; y += 4) {
89 for (x = 8; x < w-7; x += 4) {
92 ref+x+y*linesize, linesize);
96 if (d > decimate->
lo) {
123 for (plane = 0; ref->
data[plane] && ref->
linesize[plane]; plane++) {
124 int vsub = plane == 1 || plane == 2 ? decimate->
vsub : 0;
125 int hsub = plane == 1 || plane == 2 ? decimate->
hsub : 0;
144 if (!decimate->
avctx)
156 if (decimate->
avctx) {
208 "%s pts:%s pts_time:%s drop_count:%d\n",
227 }
while (decimate->
drop_count > 0 && ret >= 0);
252 .
name =
"mpdecimate",
257 .priv_class = &mpdecimate_class,
259 .
inputs = mpdecimate_inputs,