FFmpeg
|
#include "avfilter.h"
#include "formats.h"
#include "libavutil/common.h"
#include "libavutil/eval.h"
#include "libavutil/avstring.h"
#include "libavutil/pixdesc.h"
#include "libavutil/imgutils.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavutil/timestamp.h"
#include "internal.h"
#include "drawutils.h"
#include "framesync.h"
#include "video.h"
#include "vf_overlay.h"
Go to the source code of this file.
Data Structures | |
struct | ThreadData |
Used for passing data between threads. More... | |
Macros | |
#define | MAIN 0 |
#define | OVERLAY 1 |
#define | R 0 |
#define | G 1 |
#define | B 2 |
#define | A 3 |
#define | Y 0 |
#define | U 1 |
#define | V 2 |
#define | FAST_DIV255(x) ((((x) + 128) * 257) >> 16) |
#define | UNPREMULTIPLY_ALPHA(x, y) ((((x) << 16) - ((x) << 9) + (x)) / ((((x) + (y)) << 8) - ((x) + (y)) - (y) * (x))) |
#define | DEFINE_BLEND_PLANE(depth, nbits) |
#define | DEFINE_ALPHA_COMPOSITE(depth, nbits) |
#define | DEFINE_BLEND_SLICE_YUV(depth, nbits) |
#define | OFFSET(x) offsetof(OverlayContext, x) |
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Variables | |
static const char *const | var_names [] |
static enum AVPixelFormat | alpha_pix_fmts [] |
static const AVOption | overlay_options [] |
static const AVFilterPad | avfilter_vf_overlay_inputs [] |
static const AVFilterPad | avfilter_vf_overlay_outputs [] |
const AVFilter | ff_vf_overlay |
overlay one video on top of another
Definition in file vf_overlay.c.
#define MAIN 0 |
Definition at line 63 of file vf_overlay.c.
#define OVERLAY 1 |
Definition at line 64 of file vf_overlay.c.
#define R 0 |
Definition at line 66 of file vf_overlay.c.
#define G 1 |
Definition at line 67 of file vf_overlay.c.
#define B 2 |
Definition at line 68 of file vf_overlay.c.
#define A 3 |
Definition at line 69 of file vf_overlay.c.
#define Y 0 |
Definition at line 71 of file vf_overlay.c.
#define U 1 |
Definition at line 72 of file vf_overlay.c.
#define V 2 |
Definition at line 73 of file vf_overlay.c.
#define FAST_DIV255 | ( | x | ) | ((((x) + 128) * 257) >> 16) |
Definition at line 337 of file vf_overlay.c.
#define UNPREMULTIPLY_ALPHA | ( | x, | |
y | |||
) | ((((x) << 16) - ((x) << 9) + (x)) / ((((x) + (y)) << 8) - ((x) + (y)) - (y) * (x))) |
Definition at line 343 of file vf_overlay.c.
#define DEFINE_BLEND_PLANE | ( | depth, | |
nbits | |||
) |
Definition at line 436 of file vf_overlay.c.
#define DEFINE_ALPHA_COMPOSITE | ( | depth, | |
nbits | |||
) |
Definition at line 564 of file vf_overlay.c.
#define DEFINE_BLEND_SLICE_YUV | ( | depth, | |
nbits | |||
) |
Definition at line 617 of file vf_overlay.c.
#define OFFSET | ( | x | ) | offsetof(OverlayContext, x) |
Definition at line 1055 of file vf_overlay.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 1056 of file vf_overlay.c.
enum EvalMode |
Definition at line 75 of file vf_overlay.c.
|
static |
Definition at line 81 of file vf_overlay.c.
Definition at line 90 of file vf_overlay.c.
Referenced by eval_expr().
|
static |
Definition at line 97 of file vf_overlay.c.
Referenced by config_input_overlay(), do_blend(), and process_command().
|
static |
Definition at line 109 of file vf_overlay.c.
Referenced by config_input_overlay(), and process_command().
|
static |
Definition at line 130 of file vf_overlay.c.
|
static |
Definition at line 162 of file vf_overlay.c.
|
static |
Definition at line 272 of file vf_overlay.c.
|
static |
Definition at line 319 of file vf_overlay.c.
|
static |
Blend image in src to destination buffer dst at position (x, y).
< the amount of overlay to blend on to main
Definition at line 349 of file vf_overlay.c.
Referenced by blend_slice_rgb(), blend_slice_rgb_pm(), blend_slice_rgba(), and blend_slice_rgba_pm().
|
static |
Definition at line 649 of file vf_overlay.c.
Referenced by blend_slice_gbrap(), blend_slice_gbrap_pm(), blend_slice_gbrp(), and blend_slice_gbrp_pm().
|
static |
Definition at line 678 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 686 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 694 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 702 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 710 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 718 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 726 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 734 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 742 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 750 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 758 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 766 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 774 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 782 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 790 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 798 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 806 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 814 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 822 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 830 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 838 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 846 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 854 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 862 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 870 of file vf_overlay.c.
|
static |
Definition at line 995 of file vf_overlay.c.
Referenced by init().
|
static |
Definition at line 1041 of file vf_overlay.c.
|
static |
Definition at line 1049 of file vf_overlay.c.
FRAMESYNC_DEFINE_CLASS | ( | overlay | , |
OverlayContext | , | ||
fs | |||
) |
|
static |
Definition at line 48 of file vf_overlay.c.
Referenced by set_expr().
|
static |
Definition at line 155 of file vf_overlay.c.
Referenced by config_input_main(), config_input_overlay(), and query_formats().
|
static |
Definition at line 1058 of file vf_overlay.c.
|
static |
Definition at line 1089 of file vf_overlay.c.
|
static |
Definition at line 1102 of file vf_overlay.c.
const AVFilter ff_vf_overlay |
Definition at line 1110 of file vf_overlay.c.