#include "avfilter.h"
#include "formats.h"
#include "libavutil/common.h"
#include "libavutil/eval.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/imgutils.h"
#include "libavutil/mathematics.h"
#include "libavutil/timestamp.h"
#include "internal.h"
#include "bufferqueue.h"
#include "drawutils.h"
#include "video.h"
Go to the source code of this file.
Definition in file vf_overlay.c.
#define A 3 |
Definition at line 67 of file vf_overlay.c.
#define B 2 |
Definition at line 66 of file vf_overlay.c.
#define FAST_DIV255 | ( | x | ) | ((((x) + 128) * 257) >> 16) |
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 99 of file vf_overlay.c.
#define G 1 |
Definition at line 65 of file vf_overlay.c.
#define MAIN 0 |
Definition at line 61 of file vf_overlay.c.
Referenced by config_input_overlay(), config_output(), Faac_encode_init(), query_formats(), request_frame(), and start_frame_main().
#define OFFSET | ( | x | ) | offsetof(OverlayContext, x) |
Definition at line 98 of file vf_overlay.c.
#define OVERLAY 1 |
Definition at line 62 of file vf_overlay.c.
Referenced by avfilter_register_all(), config_input_overlay(), config_output(), end_frame_over(), query_formats(), and request_frame().
#define R 0 |
Definition at line 64 of file vf_overlay.c.
#define U 1 |
Definition at line 70 of file vf_overlay.c.
#define V 2 |
Definition at line 71 of file vf_overlay.c.
#define Y 0 |
Definition at line 69 of file vf_overlay.c.
enum var_name |
Definition at line 53 of file vf_overlay.c.
AVFILTER_DEFINE_CLASS | ( | overlay | ) |
static void blend_slice | ( | AVFilterContext * | ctx, | |
AVFilterBufferRef * | dst, | |||
AVFilterBufferRef * | src, | |||
int | x, | |||
int | y, | |||
int | w, | |||
int | h, | |||
int | slice_y, | |||
int | slice_w, | |||
int | slice_h | |||
) | [static] |
< the amount of overlay to blend on to main
Definition at line 310 of file vf_overlay.c.
Referenced by draw_slice_main(), and try_push_frame().
static int config_input_main | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 197 of file vf_overlay.c.
static int config_input_overlay | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 213 of file vf_overlay.c.
static int config_output | ( | AVFilterLink * | outlink | ) | [static] |
Definition at line 276 of file vf_overlay.c.
static int draw_slice_main | ( | AVFilterLink * | inlink, | |
int | y, | |||
int | h, | |||
int | slice_dir | |||
) | [static] |
Definition at line 540 of file vf_overlay.c.
static int end_frame_main | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 558 of file vf_overlay.c.
static int end_frame_over | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 575 of file vf_overlay.c.
static int flush_frames | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 512 of file vf_overlay.c.
Referenced by end_frame_main(), end_frame_over(), and start_frame_main().
static AVFilterBufferRef* get_video_buffer | ( | AVFilterLink * | link, | |
int | perms, | |||
int | w, | |||
int | h | |||
) | [static] |
Definition at line 301 of file vf_overlay.c.
static av_cold int init | ( | AVFilterContext * | ctx, | |
const char * | args | |||
) | [static] |
Definition at line 110 of file vf_overlay.c.
static int null_draw_slice | ( | AVFilterLink * | inlink, | |
int | y, | |||
int | h, | |||
int | slice_dir | |||
) | [static] |
Definition at line 621 of file vf_overlay.c.
static int query_formats | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 155 of file vf_overlay.c.
static int request_frame | ( | AVFilterLink * | outlink | ) | [static] |
Definition at line 593 of file vf_overlay.c.
static int start_frame_main | ( | AVFilterLink * | inlink, | |
AVFilterBufferRef * | inpicref | |||
) | [static] |
Definition at line 520 of file vf_overlay.c.
static int start_frame_over | ( | AVFilterLink * | inlink, | |
AVFilterBufferRef * | inpicref | |||
) | [static] |
Definition at line 570 of file vf_overlay.c.
static int try_push_frame | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 492 of file vf_overlay.c.
Referenced by end_frame_over(), flush_frames(), and request_frame().
static int try_start_frame | ( | AVFilterContext * | ctx, | |
AVFilterBufferRef * | mainpic | |||
) | [static] |
Definition at line 440 of file vf_overlay.c.
Referenced by start_frame_main(), and try_start_next_frame().
static int try_start_next_frame | ( | AVFilterContext * | ctx | ) | [static] |
static av_cold void uninit | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 143 of file vf_overlay.c.
enum PixelFormat alpha_pix_fmts[] [static] |
Initial value:
Definition at line 192 of file vf_overlay.c.
Definition at line 626 of file vf_overlay.c.
const AVOption overlay_options[] [static] |
Initial value:
{ { "x", "set the x expression", OFFSET(x_expr), AV_OPT_TYPE_STRING, {.str = "0"}, CHAR_MIN, CHAR_MAX, FLAGS }, { "y", "set the y expression", OFFSET(y_expr), AV_OPT_TYPE_STRING, {.str = "0"}, CHAR_MIN, CHAR_MAX, FLAGS }, {"rgb", "force packed RGB in input and output", OFFSET(allow_packed_rgb), AV_OPT_TYPE_INT, {.i64=0}, 0, 1, FLAGS }, {NULL}, }
Definition at line 101 of file vf_overlay.c.
const char* const var_names[] [static] |
Initial value:
{ "main_w", "W", "main_h", "H", "overlay_w", "w", "overlay_h", "h", NULL }
Definition at line 45 of file vf_overlay.c.