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 65 of file vf_overlay.c.
#define OVERLAY 1 |
Definition at line 66 of file vf_overlay.c.
#define R 0 |
Definition at line 68 of file vf_overlay.c.
#define G 1 |
Definition at line 69 of file vf_overlay.c.
#define B 2 |
Definition at line 70 of file vf_overlay.c.
#define A 3 |
Definition at line 71 of file vf_overlay.c.
#define Y 0 |
Definition at line 73 of file vf_overlay.c.
#define U 1 |
Definition at line 74 of file vf_overlay.c.
#define V 2 |
Definition at line 75 of file vf_overlay.c.
#define FAST_DIV255 | ( | x | ) | ((((x) + 128) * 257) >> 16) |
Definition at line 352 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 358 of file vf_overlay.c.
#define DEFINE_BLEND_PLANE | ( | depth, | |
nbits | |||
) |
Definition at line 451 of file vf_overlay.c.
#define DEFINE_ALPHA_COMPOSITE | ( | depth, | |
nbits | |||
) |
Definition at line 579 of file vf_overlay.c.
#define DEFINE_BLEND_SLICE_YUV | ( | depth, | |
nbits | |||
) |
Definition at line 632 of file vf_overlay.c.
#define OFFSET | ( | x | ) | offsetof(OverlayContext, x) |
Definition at line 1098 of file vf_overlay.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 1099 of file vf_overlay.c.
enum EvalMode |
Definition at line 77 of file vf_overlay.c.
|
static |
Definition at line 83 of file vf_overlay.c.
Definition at line 92 of file vf_overlay.c.
Referenced by eval_expr().
|
static |
Definition at line 99 of file vf_overlay.c.
Referenced by config_input_overlay(), do_blend(), and process_command().
|
static |
Definition at line 111 of file vf_overlay.c.
Referenced by config_input_overlay(), and process_command().
|
static |
Definition at line 132 of file vf_overlay.c.
|
static |
Definition at line 164 of file vf_overlay.c.
|
static |
Definition at line 285 of file vf_overlay.c.
|
static |
Definition at line 334 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 364 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 664 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 693 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 701 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 709 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 725 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 733 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 741 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 749 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 765 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 773 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 781 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 789 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 797 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 805 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 813 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 821 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 829 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 837 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 845 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 853 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 861 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 869 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 877 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 885 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 893 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 901 of file vf_overlay.c.
|
static |
Definition at line 1032 of file vf_overlay.c.
Referenced by init().
|
static |
Definition at line 1084 of file vf_overlay.c.
|
static |
Definition at line 1092 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 157 of file vf_overlay.c.
Referenced by config_input_main(), config_input_overlay(), and query_formats().
|
static |
Definition at line 1101 of file vf_overlay.c.
|
static |
Definition at line 1133 of file vf_overlay.c.
|
static |
Definition at line 1146 of file vf_overlay.c.
const AVFilter ff_vf_overlay |
Definition at line 1154 of file vf_overlay.c.