FFmpeg
|
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/eval.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "drawutils.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
Go to the source code of this file.
Data Structures | |
struct | FadeContext |
Macros | |
#define | R 0 |
#define | G 1 |
#define | B 2 |
#define | A 3 |
#define | Y 0 |
#define | U 1 |
#define | V 2 |
#define | FADE_IN 0 |
#define | FADE_OUT 1 |
#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) |
#define | OFFSET(x) offsetof(FadeContext, x) |
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Functions | |
static av_cold int | init (AVFilterContext *ctx) |
static int | query_formats (AVFilterContext *ctx) |
static int | config_props (AVFilterLink *inlink) |
static av_always_inline void | filter_rgb (FadeContext *s, const AVFrame *frame, int slice_start, int slice_end, int do_alpha, int step) |
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_chroma (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_frame (AVFilterLink *inlink, AVFrame *frame) |
AVFILTER_DEFINE_CLASS (fade) | |
Variables | |
const static enum AVPixelFormat | studio_level_pix_fmts [] |
static const AVOption | fade_options [] |
static const AVFilterPad | avfilter_vf_fade_inputs [] |
static const AVFilterPad | avfilter_vf_fade_outputs [] |
AVFilter | ff_vf_fade |
video fade filter based heavily on vf_negate.c by Bobby Bingham
Definition in file vf_fade.c.
#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) |
#define OFFSET | ( | x | ) | offsetof(FadeContext, x) |
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
|
static |
|
static |
|
static |
|
static |
Definition at line 177 of file vf_fade.c.
Referenced by filter_slice_rgb().
|
static |
Definition at line 202 of file vf_fade.c.
Referenced by filter_frame().
|
static |
Definition at line 218 of file vf_fade.c.
Referenced by filter_frame().
|
static |
Definition at line 241 of file vf_fade.c.
Referenced by filter_frame().
|
static |
Definition at line 268 of file vf_fade.c.
Referenced by filter_frame().
|
static |
AVFILTER_DEFINE_CLASS | ( | fade | ) |
|
static |
|
static |
|
static |
|
static |
AVFilter ff_vf_fade |