|
|
|
@@ -104,8 +104,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) |
|
|
|
#define OFFSET(x) offsetof(BlackFrameContext, x) |
|
|
|
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
|
|
|
static const AVOption blackframe_options[] = { |
|
|
|
{ "amount", "Percentage of the pixels that have to be below the threshold " |
|
|
|
"for the frame to be considered black.", OFFSET(bamount), AV_OPT_TYPE_INT, { .i64 = 98 }, 0, 100, FLAGS }, |
|
|
|
{ "amount", "percentage of the pixels that have to be below the threshold " |
|
|
|
"for the frame to be considered black", OFFSET(bamount), AV_OPT_TYPE_INT, { .i64 = 98 }, 0, 100, FLAGS }, |
|
|
|
{ "threshold", "threshold below which a pixel value is considered black", |
|
|
|
OFFSET(bthresh), AV_OPT_TYPE_INT, { .i64 = 32 }, 0, 255, FLAGS }, |
|
|
|
{ "thresh", "threshold below which a pixel value is considered black", |
|
|
|
|