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 563 of file vf_overlay.c.
#define DEFINE_BLEND_SLICE_YUV | ( | depth, | |
nbits | |||
) |
Definition at line 616 of file vf_overlay.c.
#define OFFSET | ( | x | ) | offsetof(OverlayContext, x) |
Definition at line 1053 of file vf_overlay.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 1054 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 648 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 677 of file vf_overlay.c.
Referenced by config_input_main().
|
static |
Definition at line 685 of file vf_overlay.c.
Referenced by config_input_main().
|
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.
|
static |
Definition at line 993 of file vf_overlay.c.
Referenced by init().
|
static |
Definition at line 1039 of file vf_overlay.c.
|
static |
Definition at line 1047 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 1056 of file vf_overlay.c.
|
static |
Definition at line 1087 of file vf_overlay.c.
|
static |
Definition at line 1100 of file vf_overlay.c.
const AVFilter ff_vf_overlay |
Definition at line 1108 of file vf_overlay.c.