FFmpeg
|
overlay one video on top of another More...
#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 | 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 [] |
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.
Referenced by config_input_overlay(), config_output(), and query_formats().
#define OVERLAY 1 |
Definition at line 64 of file vf_overlay.c.
Referenced by config_input_overlay(), and query_formats().
#define R 0 |
Definition at line 66 of file vf_overlay.c.
Referenced by blend_slice_packed_rgb().
#define G 1 |
Definition at line 67 of file vf_overlay.c.
Referenced by blend_slice_packed_rgb().
#define B 2 |
Definition at line 68 of file vf_overlay.c.
Referenced by blend_slice_packed_rgb().
#define A 3 |
Definition at line 69 of file vf_overlay.c.
Referenced by blend_slice_packed_rgb().
#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 345 of file vf_overlay.c.
Referenced by alpha_composite(), blend_plane(), and blend_slice_packed_rgb().
#define UNPREMULTIPLY_ALPHA | ( | x, | |
y | |||
) | ((((x) << 16) - ((x) << 9) + (x)) / ((((x) + (y)) << 8) - ((x) + (y)) - (y) * (x))) |
Definition at line 351 of file vf_overlay.c.
Referenced by alpha_composite(), blend_plane(), and blend_slice_packed_rgb().
#define OFFSET | ( | x | ) | offsetof(OverlayContext, x) |
Definition at line 990 of file vf_overlay.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 991 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 161 of file vf_overlay.c.
|
static |
Definition at line 280 of file vf_overlay.c.
|
static |
Definition at line 327 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 357 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 444 of file vf_overlay.c.
Referenced by blend_slice_planar_rgb(), and blend_slice_yuv().
|
inlinestatic |
< the amount of overlay to blend on to main
Definition at line 553 of file vf_overlay.c.
Referenced by blend_slice_planar_rgb(), and blend_slice_yuv().
|
static |
Definition at line 601 of file vf_overlay.c.
Referenced by blend_slice_yuv420(), blend_slice_yuv420_pm(), blend_slice_yuv422(), blend_slice_yuv422_pm(), blend_slice_yuv444(), blend_slice_yuv444_pm(), blend_slice_yuva420(), blend_slice_yuva420_pm(), blend_slice_yuva422(), blend_slice_yuva422_pm(), blend_slice_yuva444(), and blend_slice_yuva444_pm().
|
static |
Definition at line 629 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 658 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 666 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 674 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 682 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 690 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 698 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 706 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 714 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 722 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 730 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 738 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 746 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 754 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 762 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 770 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 778 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 786 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 794 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 802 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 810 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 818 of file vf_overlay.c.
|
static |
Definition at line 930 of file vf_overlay.c.
Referenced by init().
|
static |
Definition at line 976 of file vf_overlay.c.
|
static |
Definition at line 984 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 993 of file vf_overlay.c.
|
static |
Definition at line 1022 of file vf_overlay.c.
|
static |
Definition at line 1036 of file vf_overlay.c.
AVFilter ff_vf_overlay |
Definition at line 1045 of file vf_overlay.c.