58 #define OFFSET(x) offsetof(IDETContext, x)
59 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
72 case TFF :
return "Top Field First ";
73 case BFF :
return "Bottom Field First";
86 int v = (*a++ + *c++) - 2 * *b++;
99 int v = (*a++ + *c++) - 2 * *b++;
110 int64_t
alpha[2]={0};
112 Type type, best_type;
125 for (y = 2; y < h - 2; y++) {
129 alpha[ y &1] += idet->
filter_line(cur-refs, prev, cur+refs, w);
130 alpha[(y^1)&1] += idet->
filter_line(cur-refs, next, cur+refs, w);
131 delta += idet->
filter_line(cur-refs, cur, cur+refs, w);
153 if(idet->
history[i] == best_type) {
219 }
while (!idet->
cur);
228 av_log(ctx,
AV_LOG_INFO,
"Single frame detection: TFF:%d BFF:%d Progressive:%d Undetermined:%d\n",
234 av_log(ctx,
AV_LOG_INFO,
"Multi frame detection: TFF:%d BFF:%d Progressive:%d Undetermined:%d\n",
279 static const char *shorthand[] = {
"intl_thres",
"prog_thres",
NULL };
282 idet->
class = &idet_class;
327 .priv_class = &idet_class,