#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 "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 60 of file vf_overlay.c.
#define B 2 |
Definition at line 59 of file vf_overlay.c.
#define FAST_DIV255 | ( | x | ) | ((((x) + 128) * 257) >> 16) |
#define G 1 |
Definition at line 58 of file vf_overlay.c.
#define MAIN 0 |
Definition at line 54 of file vf_overlay.c.
Referenced by config_input_overlay(), config_output(), Faac_encode_init(), query_formats(), and start_frame().
#define OFFSET | ( | x | ) | offsetof(OverlayContext, x) |
Definition at line 87 of file vf_overlay.c.
#define OVERLAY 1 |
Definition at line 55 of file vf_overlay.c.
Referenced by avfilter_register_all(), config_input_overlay(), config_output(), query_formats(), start_frame(), and start_frame_overlay().
#define R 0 |
Definition at line 57 of file vf_overlay.c.
#define U 1 |
Definition at line 63 of file vf_overlay.c.
#define V 2 |
Definition at line 64 of file vf_overlay.c.
#define Y 0 |
Definition at line 62 of file vf_overlay.c.
enum var_name |
Definition at line 46 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 340 of file vf_overlay.c.
Referenced by draw_slice().
static int config_input_main | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 193 of file vf_overlay.c.
static int config_input_overlay | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 209 of file vf_overlay.c.
static int config_output | ( | AVFilterLink * | outlink | ) | [static] |
Definition at line 272 of file vf_overlay.c.
static void draw_slice | ( | AVFilterLink * | inlink, | |
int | y, | |||
int | h, | |||
int | slice_dir | |||
) | [static] |
Definition at line 470 of file vf_overlay.c.
static void end_frame | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 487 of file vf_overlay.c.
static AVFilterBufferRef* get_video_buffer | ( | AVFilterLink * | link, | |
int | perms, | |||
int | w, | |||
int | h | |||
) | [static] |
Definition at line 297 of file vf_overlay.c.
static av_cold int init | ( | AVFilterContext * | ctx, | |
const char * | args, | |||
void * | opaque | |||
) | [static] |
Definition at line 107 of file vf_overlay.c.
static void null_draw_slice | ( | AVFilterLink * | inlink, | |
int | y, | |||
int | h, | |||
int | slice_dir | |||
) | [static] |
Definition at line 493 of file vf_overlay.c.
static void null_end_frame | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 495 of file vf_overlay.c.
static const char* overlay_get_name | ( | void * | ctx | ) | [static] |
Definition at line 96 of file vf_overlay.c.
static int query_formats | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 151 of file vf_overlay.c.
static void start_frame | ( | AVFilterLink * | inlink, | |
AVFilterBufferRef * | inpicref | |||
) | [static] |
Definition at line 302 of file vf_overlay.c.
static void start_frame_overlay | ( | AVFilterLink * | inlink, | |
AVFilterBufferRef * | inpicref | |||
) | [static] |
Definition at line 326 of file vf_overlay.c.
static av_cold void uninit | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 140 of file vf_overlay.c.
enum PixelFormat alpha_pix_fmts[] [static] |
Initial value:
Definition at line 188 of file vf_overlay.c.
Definition at line 497 of file vf_overlay.c.
const AVClass overlay_class [static] |
Initial value:
{ "OverlayContext", overlay_get_name, overlay_options }
Definition at line 101 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 89 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 38 of file vf_overlay.c.