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;
135 static const char *shorthand[] = {
"max",
"hi",
"lo",
"frac",
NULL };
138 decimate->
class = &decimate_class;
148 if (!decimate->
avctx)
210 "%s pts:%s pts_time:%s drop_count:%d\n",
229 }
while (decimate->
drop_count > 0 && ret >= 0);
263 .
inputs = decimate_inputs,
265 .priv_class = &decimate_class,