Go to the source code of this file.
|
static av_cold int | init (AVFilterContext *ctx) |
|
static int | query_formats (AVFilterContext *ctx) |
|
static av_always_inline void | filter_rgb (FadeContext *s, const AVFrame *frame, int slice_start, int slice_end, int do_alpha, int step) |
|
static av_always_inline void | filter_rgb_planar (FadeContext *s, const AVFrame *frame, int slice_start, int slice_end, int do_alpha) |
|
static int | filter_slice_rgb (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | filter_slice_luma (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | filter_slice_luma16 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | filter_slice_chroma (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | filter_slice_chroma16 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | filter_slice_alpha (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | filter_slice_alpha16 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | config_input (AVFilterLink *inlink) |
|
static int | filter_frame (AVFilterLink *inlink, AVFrame *frame) |
|
| AVFILTER_DEFINE_CLASS (fade) |
|
video fade filter based heavily on vf_negate.c by Bobby Bingham
Definition in file vf_fade.c.
◆ FADE_IN
◆ FADE_OUT
◆ INTERP
#define INTERP |
( |
|
c_name, |
|
|
|
c_idx |
|
) |
| av_clip_uint8(((c[c_idx]<<16) + ((int)p[c_name] - (int)c[c_idx]) * s->factor + (1<<15)) >> 16) |
◆ INTERPP
#define INTERPP |
( |
|
c_name, |
|
|
|
c_idx |
|
) |
| av_clip_uint8(((c[c_idx]<<16) + ((int)c_name - (int)c[c_idx]) * s->factor + (1<<15)) >> 16) |
◆ OFFSET
◆ FLAGS
◆ init()
◆ query_formats()
◆ filter_rgb()
◆ filter_rgb_planar()
◆ filter_slice_rgb()
static int filter_slice_rgb |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ filter_slice_luma()
static int filter_slice_luma |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ filter_slice_luma16()
static int filter_slice_luma16 |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ filter_slice_chroma()
static int filter_slice_chroma |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ filter_slice_chroma16()
static int filter_slice_chroma16 |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ filter_slice_alpha()
static int filter_slice_alpha |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ filter_slice_alpha16()
static int filter_slice_alpha16 |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ config_input()
◆ filter_frame()
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
fade |
| ) |
|
◆ studio_level_pix_fmts
◆ fade_options
Initial value:= {
{ "start_frame", "Number of the first frame to which to apply the effect.",
{ "s", "Number of the first frame to which to apply the effect.",
{ "nb_frames", "Number of frames to which the effect should be applied.",
{ "n", "Number of frames to which the effect should be applied.",
{ "start_time", "Number of seconds of the beginning of the effect.",
{ "st", "Number of seconds of the beginning of the effect.",
{ "duration", "Duration of the effect in seconds.",
{ "d", "Duration of the effect in seconds.",
}
Definition at line 522 of file vf_fade.c.
◆ avfilter_vf_fade_inputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 551 of file vf_fade.c.
◆ ff_vf_fade
Initial value:= {
.name = "fade",
.priv_class = &fade_class,
}
Definition at line 561 of file vf_fade.c.
#define AV_PIX_FMT_YUVA422P16
static av_cold int init(AVFilterContext *ctx)
static int query_formats(AVFilterContext *ctx)
#define AV_PIX_FMT_YUVA422P9
#define FILTER_INPUTS(array)
#define AV_PIX_FMT_YUVA420P16
#define AV_PIX_FMT_YUVA420P10
@ AV_OPT_TYPE_DURATION
Underlying C type is int64_t.
#define AV_PIX_FMT_YUV420P10
@ AV_PIX_FMT_YUV440P
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
#define AV_PIX_FMT_YUVA422P10
#define AV_PIX_FMT_YUVA420P9
#define AV_PIX_FMT_YUVA444P16
#define AV_PIX_FMT_YUV422P9
static const AVFilterPad avfilter_vf_fade_inputs[]
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
#define AV_PIX_FMT_YUV444P10
#define AV_PIX_FMT_YUV422P16
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
#define AV_PIX_FMT_YUV444P16
#define AV_PIX_FMT_YUVA444P12
#define AV_PIX_FMT_YUV420P9
#define AV_PIX_FMT_YUV420P16
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define FILTER_OUTPUTS(array)
@ AV_OPT_TYPE_COLOR
Underlying C type is uint8_t[4].
#define AV_PIX_FMT_YUV422P10
#define AVFILTERPAD_FLAG_NEEDS_WRITABLE
The filter expects writable frames from its input link, duplicating data buffers if needed.
static int config_input(AVFilterLink *inlink)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int64_t start_time
#define AV_PIX_FMT_YUV422P12
#define AV_PIX_FMT_YUV444P12
#define AV_PIX_FMT_YUVA444P10
#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 AV_PIX_FMT_YUV444P9
#define AV_PIX_FMT_YUVA444P9
#define AV_PIX_FMT_YUV420P12
#define AV_PIX_FMT_YUV422P14
#define AV_PIX_FMT_YUVA422P12
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
static const int16_t alpha[]
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
@ AV_PIX_FMT_YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
#define AV_PIX_FMT_YUV440P12
#define AV_PIX_FMT_YUV444P14
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
#define FILTER_QUERY_FUNC(func)
#define AV_PIX_FMT_YUV420P14