A very simple tv station logo remover Ported from MPlayer libmpcodecs/vf_delogo.c. More...
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
Go to the source code of this file.
Data Structures | |
struct | DelogoContext |
Macros | |
#define | OFFSET(x) offsetof(DelogoContext, x) |
#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. | |
static const char * | delogo_get_name (void *ctx) |
static int | query_formats (AVFilterContext *ctx) |
static av_cold int | init (AVFilterContext *ctx, const char *args, void *opaque) |
static void | start_frame (AVFilterLink *inlink, AVFilterBufferRef *inpicref) |
static void | null_draw_slice (AVFilterLink *link, int y, int h, int slice_dir) |
static void | end_frame (AVFilterLink *inlink) |
Variables | |
static const AVOption | delogo_options [] |
static const AVClass | delogo_class |
AVFilter | avfilter_vf_delogo |
A very simple tv station logo remover Ported from MPlayer libmpcodecs/vf_delogo.c.
Definition in file vf_delogo.c.
#define CHECK_UNSET_OPT | ( | opt | ) |
Referenced by init().
#define OFFSET | ( | x | ) | offsetof(DelogoContext, x) |
Definition at line 134 of file vf_delogo.c.
|
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.
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 51 of file vf_delogo.c.
Referenced by end_frame().
|
static |
Definition at line 147 of file vf_delogo.c.
|
static |
Definition at line 234 of file vf_delogo.c.
|
static |
Definition at line 171 of file vf_delogo.c.
|
static |
Definition at line 232 of file vf_delogo.c.
|
static |
Definition at line 158 of file vf_delogo.c.
|
static |
Definition at line 214 of file vf_delogo.c.
AVFilter avfilter_vf_delogo |
Definition at line 265 of file vf_delogo.c.
|
static |
Definition at line 152 of file vf_delogo.c.
Referenced by init().
|
static |
Definition at line 136 of file vf_delogo.c.