Go to the source code of this file.
◆ OFFSET
◆ VF
◆ GETSUM
Value:{ \
MaskFunContext *
s =
ctx->priv; \
uint64_t sum = 0; \
for (p = 0; p < s->nb_planes; p++) { \
const
int linesize =
out->linesize[
p] / div; \
const
int w = s->width[
p]; \
const
int h = s->height[
p]; \
type *dst = (
type *)
out->data[p]; \
\
if (!((1 << p) & s->planes)) \
for (
int y = 0; y <
h; y++) { \
for (
int x = 0; x <
w; x++) \
sum += dst[x]; \
if (sum >= s->max_sum) \
return 1; \
dst += linesize; \
} \
} \
\
return 0; \
}
This structure describes decoded (raw) audio or video data.
Definition at line 114 of file vf_maskfun.c.
◆ MASKFUN
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
maskfun |
| ) |
|
◆ query_formats()
◆ filter_frame()
◆ config_input()
◆ uninit()
◆ maskfun_options
Initial value:= {
}
static const struct @315 planes[]
Definition at line 52 of file vf_maskfun.c.
◆ maskfun_inputs
Initial value:= {
{
.name = "default",
.needs_writable = 1,
},
}
static int config_input(AVFilterLink *inlink)
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition at line 258 of file vf_maskfun.c.
◆ maskfun_outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 269 of file vf_maskfun.c.
◆ ff_vf_maskfun
Initial value:= {
.name = "maskfun",
.priv_class = &maskfun_class,
}
static av_cold void uninit(AVFilterContext *ctx)
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
static const AVFilterPad maskfun_inputs[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
static int query_formats(AVFilterContext *ctx)
static const AVFilterPad inputs[]
static const AVFilterPad outputs[]
#define flags(name, subs,...)
static const AVFilterPad maskfun_outputs[]
Definition at line 277 of file vf_maskfun.c.