|
FFmpeg
|
A very simple tv station logo remover Originally imported from MPlayer libmpcodecs/vf_delogo.c, the algorithm was later improved. More...
#include "libavutil/common.h"#include "libavutil/imgutils.h"#include "libavutil/opt.h"#include "libavutil/pixdesc.h"#include "libavutil/eval.h"#include "avfilter.h"#include "filters.h"#include "video.h"Go to the source code of this file.
Data Structures | |
| struct | DelogoContext |
Macros | |
| #define | OFFSET(x) |
| #define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
| #define | CHECK_UNSET_OPT(opt) |
Enumerations | |
| enum | var_name { VAR_X , VAR_Y , VAR_W , VAR_H , VAR_N , VAR_T , VAR_VARS_NB } |
Functions | |
| static int | set_expr (AVExpr **pexpr, const char *expr, const char *option, void *log_ctx) |
| static void | apply_delogo (uint8_t *dst, int dst_linesize, uint8_t *src, int src_linesize, int w, int h, AVRational sar, int logo_x, int logo_y, int logo_w, int logo_h, unsigned int band, int show, int direct) |
| Apply a simple delogo algorithm to the image in src and put the result in dst. | |
| AVFILTER_DEFINE_CLASS (delogo) | |
| static av_cold void | uninit (AVFilterContext *ctx) |
| static av_cold int | init (AVFilterContext *ctx) |
| static int | config_input (AVFilterLink *inlink) |
| static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
Variables | |
| static const char *const | var_names [] |
| static const AVOption | delogo_options [] |
| static enum AVPixelFormat | pix_fmts [] |
| static const AVFilterPad | avfilter_vf_delogo_inputs [] |
| const FFFilter | ff_vf_delogo |
A very simple tv station logo remover Originally imported from MPlayer libmpcodecs/vf_delogo.c, the algorithm was later improved.
Definition in file vf_delogo.c.
| #define OFFSET | ( | x | ) |
Definition at line 204 of file vf_delogo.c.
| #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 205 of file vf_delogo.c.
| #define CHECK_UNSET_OPT | ( | opt | ) |
| enum var_name |
| Enumerator | |
|---|---|
| VAR_X | |
| VAR_Y | |
| VAR_W | |
| VAR_H | |
| VAR_N | |
| VAR_T | |
| VAR_VARS_NB | |
Definition at line 48 of file vf_delogo.c.
|
static |
Definition at line 58 of file vf_delogo.c.
Referenced by init().
|
static |
Apply a simple delogo algorithm to the image in src and put the result in dst.
The algorithm is only applied to the region specified by the logo 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 97 of file vf_delogo.c.
Referenced by filter_frame().
| AVFILTER_DEFINE_CLASS | ( | delogo | ) |
|
static |
Definition at line 217 of file vf_delogo.c.
|
static |
Definition at line 234 of file vf_delogo.c.
|
static |
Definition at line 273 of file vf_delogo.c.
Referenced by filter_frame().
|
static |
Definition at line 288 of file vf_delogo.c.
|
static |
Definition at line 38 of file vf_delogo.c.
|
static |
Definition at line 207 of file vf_delogo.c.
|
static |
Definition at line 227 of file vf_delogo.c.
|
static |
Definition at line 377 of file vf_delogo.c.
| const FFFilter ff_vf_delogo |
Definition at line 386 of file vf_delogo.c.