FFmpeg
Data Structures | Macros | Functions | Variables
vf_bilateral.c File Reference
#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  BilateralContext
 

Macros

#define OFFSET(x)   offsetof(BilateralContext, x)
 
#define FLAGS   AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 
#define BILATERAL(type, name)
 

Functions

 AVFILTER_DEFINE_CLASS (bilateral)
 
static int query_formats (AVFilterContext *ctx)
 
static int config_input (AVFilterLink *inlink)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVOption bilateral_options []
 
static const AVFilterPad bilateral_inputs []
 
static const AVFilterPad bilateral_outputs []
 
AVFilter ff_vf_bilateral
 

Macro Definition Documentation

#define OFFSET (   x)    offsetof(BilateralContext, x)

Definition at line 56 of file vf_bilateral.c.

Definition at line 57 of file vf_bilateral.c.

#define BILATERAL (   type,
  name 
)

Definition at line 136 of file vf_bilateral.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( bilateral  )
static int query_formats ( AVFilterContext ctx)
static

Definition at line 68 of file vf_bilateral.c.

static int config_input ( AVFilterLink inlink)
static

Definition at line 94 of file vf_bilateral.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 292 of file vf_bilateral.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 328 of file vf_bilateral.c.

Variable Documentation

const AVOption bilateral_options[]
static
Initial value:
= {
{ "sigmaS", "set spatial sigma", OFFSET(sigmaS), AV_OPT_TYPE_FLOAT, {.dbl=0.1}, 0.0, 10, FLAGS },
{ "sigmaR", "set range sigma", OFFSET(sigmaR), AV_OPT_TYPE_FLOAT, {.dbl=0.1}, 0.0, 1, FLAGS },
{ "planes", "set planes to filter", OFFSET(planes), AV_OPT_TYPE_INT, {.i64=1}, 0, 0xF, FLAGS },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: vf_bilateral.c:57
#define OFFSET(x)
Definition: vf_bilateral.c:56
static const struct @315 planes[]

Definition at line 59 of file vf_bilateral.c.

const AVFilterPad bilateral_inputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_input,
.filter_frame = filter_frame,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int config_input(AVFilterLink *inlink)
Definition: vf_bilateral.c:94
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_bilateral.c:292

Definition at line 342 of file vf_bilateral.c.

const AVFilterPad bilateral_outputs[]
static
Initial value:
= {
{
.name = "default",
},
{ NULL }
}
#define NULL
Definition: coverity.c:32

Definition at line 352 of file vf_bilateral.c.

AVFilter ff_vf_bilateral
Initial value:
= {
.name = "bilateral",
.description = NULL_IF_CONFIG_SMALL("Apply Bilateral filter."),
.priv_size = sizeof(BilateralContext),
.priv_class = &bilateral_class,
}
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:125
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_bilateral.c:328
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static const AVFilterPad bilateral_inputs[]
Definition: vf_bilateral.c:342
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
#define flags(name, subs,...)
Definition: cbs_av1.c:564
static const AVFilterPad bilateral_outputs[]
Definition: vf_bilateral.c:352
static int query_formats(AVFilterContext *ctx)
Definition: vf_bilateral.c:68

Definition at line 360 of file vf_bilateral.c.