#include "avfilter.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 "drawutils.h"
Go to the source code of this file.
Definition in file vf_overlay.c.
#define A 3 |
Definition at line 63 of file vf_overlay.c.
#define B 2 |
Definition at line 62 of file vf_overlay.c.
#define FAST_DIV255 | ( | x | ) | ((((x) + 128) * 257) >> 16) |
#define G 1 |
Definition at line 61 of file vf_overlay.c.
#define MAIN 0 |
Definition at line 57 of file vf_overlay.c.
Referenced by config_input_overlay(), config_output(), Faac_encode_init(), poll_frame(), query_formats(), and start_frame().
#define OFFSET | ( | x | ) | offsetof(OverlayContext, x) |
Definition at line 90 of file vf_overlay.c.
#define OVERLAY 1 |
Definition at line 58 of file vf_overlay.c.
Referenced by avfilter_register_all(), config_input_overlay(), config_output(), poll_frame(), query_formats(), start_frame(), and start_frame_overlay().
#define R 0 |
Definition at line 60 of file vf_overlay.c.
#define U 1 |
Definition at line 66 of file vf_overlay.c.
#define V 2 |
Definition at line 67 of file vf_overlay.c.
#define Y 0 |
Definition at line 65 of file vf_overlay.c.
enum var_name |
Definition at line 49 of file vf_overlay.c.
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 356 of file vf_overlay.c.
Referenced by draw_slice().
static int config_input_main | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 198 of file vf_overlay.c.
static int config_input_overlay | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 214 of file vf_overlay.c.
static int config_output | ( | AVFilterLink * | outlink | ) | [static] |
Definition at line 277 of file vf_overlay.c.
static void draw_slice | ( | AVFilterLink * | inlink, | |
int | y, | |||
int | h, | |||
int | slice_dir | |||
) | [static] |
Definition at line 486 of file vf_overlay.c.
static void end_frame | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 503 of file vf_overlay.c.
static AVFilterBufferRef* get_video_buffer | ( | AVFilterLink * | link, | |
int | perms, | |||
int | w, | |||
int | h | |||
) | [static] |
Definition at line 302 of file vf_overlay.c.
static av_cold int init | ( | AVFilterContext * | ctx, | |
const char * | args, | |||
void * | opaque | |||
) | [static] |
Definition at line 110 of file vf_overlay.c.
static void null_draw_slice | ( | AVFilterLink * | inlink, | |
int | y, | |||
int | h, | |||
int | slice_dir | |||
) | [static] |
Definition at line 509 of file vf_overlay.c.
static void null_end_frame | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 511 of file vf_overlay.c.
static const char* overlay_get_name | ( | void * | ctx | ) | [static] |
Definition at line 99 of file vf_overlay.c.
static int poll_frame | ( | AVFilterLink * | link | ) | [static] |
Definition at line 513 of file vf_overlay.c.
static int query_formats | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 156 of file vf_overlay.c.
static void start_frame | ( | AVFilterLink * | inlink, | |
AVFilterBufferRef * | inpicref | |||
) | [static] |
Definition at line 307 of file vf_overlay.c.
static void start_frame_overlay | ( | AVFilterLink * | inlink, | |
AVFilterBufferRef * | inpicref | |||
) | [static] |
Definition at line 340 of file vf_overlay.c.
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 193 of file vf_overlay.c.
Definition at line 525 of file vf_overlay.c.
const AVClass overlay_class [static] |
Initial value:
{ "OverlayContext", overlay_get_name, overlay_options }
Definition at line 104 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 }, { "y", "set the y expression", OFFSET(y_expr), AV_OPT_TYPE_STRING, {.str = "0"}, CHAR_MIN, CHAR_MAX }, {"rgb", "force packed RGB in input and output", OFFSET(allow_packed_rgb), AV_OPT_TYPE_INT, {.dbl=0}, 0, 1 }, {NULL}, }
Definition at line 92 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 41 of file vf_overlay.c.