69 for (i = 0; i < frame->
height; i++) {
70 for (x = 0; x < inlink->
w; x++)
75 pblack = s->
nblack * 100 / (inlink->
w * inlink->
h);
86 #define OFFSET(x) offsetof(BlackFrameContext, x)
87 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM
89 {
"amount",
"Percentage of the pixels that have to be below the threshold "
91 {
"threshold",
"threshold below which a pixel value is considered black",
122 .
name =
"blackframe",
126 .priv_class = &blackframe_class,
130 .
inputs = avfilter_vf_blackframe_inputs,
132 .
outputs = avfilter_vf_blackframe_outputs,