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"
Go to the source code of this file.
Data Structures | |
struct | OverlayContext |
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 73 of file vf_overlay.c.
Referenced by config_input_overlay(), config_output(), and query_formats().
#define OVERLAY 1 |
Definition at line 74 of file vf_overlay.c.
Referenced by config_input_overlay(), and query_formats().
#define R 0 |
Definition at line 76 of file vf_overlay.c.
Referenced by blend_image_packed_rgb().
#define G 1 |
Definition at line 77 of file vf_overlay.c.
Referenced by blend_image_packed_rgb().
#define B 2 |
Definition at line 78 of file vf_overlay.c.
Referenced by blend_image_packed_rgb().
#define A 3 |
Definition at line 79 of file vf_overlay.c.
Referenced by blend_image_packed_rgb().
#define Y 0 |
Definition at line 81 of file vf_overlay.c.
#define U 1 |
Definition at line 82 of file vf_overlay.c.
#define V 2 |
Definition at line 83 of file vf_overlay.c.
#define FAST_DIV255 | ( | x | ) | ((((x) + 128) * 257) >> 16) |
Definition at line 394 of file vf_overlay.c.
Referenced by alpha_composite(), blend_image_packed_rgb(), and blend_plane().
#define UNPREMULTIPLY_ALPHA | ( | x, | |
y | |||
) | ((((x) << 16) - ((x) << 9) + (x)) / ((((x) + (y)) << 8) - ((x) + (y)) - (y) * (x))) |
Definition at line 400 of file vf_overlay.c.
Referenced by alpha_composite(), blend_image_packed_rgb(), and blend_plane().
#define OFFSET | ( | x | ) | offsetof(OverlayContext, x) |
Definition at line 927 of file vf_overlay.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 928 of file vf_overlay.c.
enum var_name |
Definition at line 58 of file vf_overlay.c.
enum EvalMode |
Definition at line 85 of file vf_overlay.c.
enum OverlayFormat |
Enumerator | |
---|---|
OVERLAY_FORMAT_YUV420 | |
OVERLAY_FORMAT_YUV422 | |
OVERLAY_FORMAT_YUV444 | |
OVERLAY_FORMAT_RGB | |
OVERLAY_FORMAT_GBRP | |
OVERLAY_FORMAT_AUTO | |
OVERLAY_FORMAT_NB |
Definition at line 91 of file vf_overlay.c.
|
static |
Definition at line 130 of file vf_overlay.c.
Definition at line 139 of file vf_overlay.c.
Referenced by eval_expr().
|
static |
Definition at line 146 of file vf_overlay.c.
Referenced by config_input_overlay(), do_blend(), and process_command().
|
static |
Definition at line 158 of file vf_overlay.c.
Referenced by config_input_overlay(), and process_command().
|
static |
Definition at line 179 of file vf_overlay.c.
|
static |
Definition at line 210 of file vf_overlay.c.
|
static |
Definition at line 329 of file vf_overlay.c.
|
static |
Definition at line 376 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 406 of file vf_overlay.c.
Referenced by blend_image_rgb(), blend_image_rgb_pm(), blend_image_rgba(), and blend_image_rgba_pm().
|
static |
Definition at line 487 of file vf_overlay.c.
Referenced by blend_image_planar_rgb(), and blend_image_yuv().
|
inlinestatic |
< the amount of overlay to blend on to main
Definition at line 577 of file vf_overlay.c.
Referenced by blend_image_planar_rgb(), and blend_image_yuv().
|
static |
Definition at line 619 of file vf_overlay.c.
Referenced by blend_image_yuv420(), blend_image_yuv420_pm(), blend_image_yuv422(), blend_image_yuv422_pm(), blend_image_yuv444(), blend_image_yuv444_pm(), blend_image_yuva420(), blend_image_yuva420_pm(), blend_image_yuva422(), blend_image_yuva422_pm(), blend_image_yuva444(), and blend_image_yuva444_pm().
|
static |
Definition at line 643 of file vf_overlay.c.
Referenced by blend_image_gbrap(), blend_image_gbrap_pm(), blend_image_gbrp(), and blend_image_gbrp_pm().
|
static |
Definition at line 667 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 672 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 677 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 687 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 692 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 697 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 707 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 712 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 717 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 727 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 732 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 737 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 747 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 752 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 757 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 767 of file vf_overlay.c.
|
static |
Definition at line 873 of file vf_overlay.c.
Referenced by init().
|
static |
Definition at line 913 of file vf_overlay.c.
|
static |
Definition at line 921 of file vf_overlay.c.
FRAMESYNC_DEFINE_CLASS | ( | overlay | , |
OverlayContext | , | ||
fs | |||
) |
|
static |
Definition at line 43 of file vf_overlay.c.
Referenced by set_expr().
|
static |
Definition at line 204 of file vf_overlay.c.
Referenced by config_input_main(), config_input_overlay(), and query_formats().
|
static |
Definition at line 930 of file vf_overlay.c.
|
static |
Definition at line 959 of file vf_overlay.c.
|
static |
Definition at line 973 of file vf_overlay.c.
AVFilter ff_vf_overlay |
Definition at line 982 of file vf_overlay.c.