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]; \
\
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; \
}
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
◆ maskfun_inputs
Initial value:= {
{
.name = "default",
.needs_writable = 1,
},
}
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,
}
Definition at line 312 of file vf_maskfun.c.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
This structure describes decoded (raw) audio or video data.
static const AVFilterPad maskfun_outputs[]
static av_cold void uninit(AVFilterContext *ctx)
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf type
static int config_input(AVFilterLink *inlink)
static const AVFilterPad outputs[]
static const AVFilterPad maskfun_inputs[]
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#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 int filter_frame(AVFilterLink *inlink, AVFrame *frame)
static const struct @322 planes[]
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
#define flags(name, subs,...)
static int query_formats(AVFilterContext *ctx)