FFmpeg
|
A very simple tv station logo remover Ported from MPlayer libmpcodecs/vf_delogo.c. More...
#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
Go to the source code of this file.
Data Structures | |
struct | DelogoContext |
Macros | |
#define | OFFSET(x) offsetof(DelogoContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
#define | CHECK_UNSET_OPT(opt) |
Functions | |
static void | apply_delogo (uint8_t *dst, int dst_linesize, uint8_t *src, int src_linesize, int w, int h, int logo_x, int logo_y, int logo_w, int logo_h, int band, int show, int direct) |
Apply a simple delogo algorithm to the image in dst and put the result in src. More... | |
AVFILTER_DEFINE_CLASS (delogo) | |
static int | query_formats (AVFilterContext *ctx) |
static av_cold int | init (AVFilterContext *ctx) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
Variables | |
static const AVOption | delogo_options [] |
static const AVFilterPad | avfilter_vf_delogo_inputs [] |
static const AVFilterPad | avfilter_vf_delogo_outputs [] |
AVFilter | avfilter_vf_delogo |
Detailed Description
A very simple tv station logo remover Ported from MPlayer libmpcodecs/vf_delogo.c.
Definition in file vf_delogo.c.
Macro Definition Documentation
#define CHECK_UNSET_OPT | ( | opt | ) |
Referenced by init().
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 143 of file vf_delogo.c.
#define OFFSET | ( | x | ) | offsetof(DelogoContext, x) |
Definition at line 142 of file vf_delogo.c.
Function Documentation
|
static |
Apply a simple delogo algorithm to the image in dst and put the result in src.
The algorithm is only applied to the region specified by the logo parameters.
- Parameters
-
w width of the input image h height of the input image logo_x x coordinate of the top left corner of the logo region logo_y y coordinate of the top left corner of the logo region logo_w width of the logo logo_h height of the logo band the size of the band around the processed area show show a rectangle around the processed area, useful for parameters tweaking direct if non-zero perform in-place processing
Definition at line 55 of file vf_delogo.c.
Referenced by filter_frame().
AVFILTER_DEFINE_CLASS | ( | delogo | ) |
|
static |
Definition at line 201 of file vf_delogo.c.
|
static |
Definition at line 171 of file vf_delogo.c.
|
static |
Definition at line 158 of file vf_delogo.c.
Variable Documentation
AVFilter avfilter_vf_delogo |
Definition at line 262 of file vf_delogo.c.
|
static |
Definition at line 244 of file vf_delogo.c.
|
static |
Definition at line 254 of file vf_delogo.c.
|
static |
Definition at line 145 of file vf_delogo.c.
Generated on Mon Nov 18 2024 06:52:10 for FFmpeg by 1.8.11