Go to the source code of this file.
◆ OFFSET
◆ VFT
◆ 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]; \
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()
◆ fill_frame()
◆ set_max_sum()
◆ config_input()
◆ process_command()
static int process_command |
( |
AVFilterContext * |
ctx, |
|
|
const char * |
cmd, |
|
|
const char * |
args, |
|
|
char * |
res, |
|
|
int |
res_len, |
|
|
int |
flags |
|
) |
| |
|
static |
◆ uninit()
◆ maskfun_options
Initial value:= {
}
static const struct @322 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 293 of file vf_maskfun.c.
◆ maskfun_outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 304 of file vf_maskfun.c.
◆ ff_vf_maskfun
Initial value:= {
.name = "maskfun",
.priv_class = &maskfun_class,
}
static const AVFilterPad inputs[]
static const AVFilterPad outputs[]
#define flags(name, subs,...)
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static const AVFilterPad maskfun_outputs[]
static int query_formats(AVFilterContext *ctx)
static const AVFilterPad maskfun_inputs[]
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
static av_cold void uninit(AVFilterContext *ctx)
Definition at line 312 of file vf_maskfun.c.