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

◆ OFFSET

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

Definition at line 56 of file vf_bilateral.c.

◆ FLAGS

Definition at line 57 of file vf_bilateral.c.

◆ BILATERAL

#define BILATERAL (   type,
  name 
)

Definition at line 136 of file vf_bilateral.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( bilateral  )

◆ query_formats()

static int query_formats ( AVFilterContext ctx)
static

Definition at line 68 of file vf_bilateral.c.

◆ config_input()

static int config_input ( AVFilterLink inlink)
static

Definition at line 94 of file vf_bilateral.c.

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 292 of file vf_bilateral.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 328 of file vf_bilateral.c.

Variable Documentation

◆ bilateral_options

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 }
}

Definition at line 59 of file vf_bilateral.c.

◆ bilateral_inputs

const AVFilterPad bilateral_inputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_input,
.filter_frame = filter_frame,
},
{ NULL }
}

Definition at line 342 of file vf_bilateral.c.

◆ bilateral_outputs

const AVFilterPad bilateral_outputs[]
static
Initial value:
= {
{
.name = "default",
},
{ NULL }
}

Definition at line 352 of file vf_bilateral.c.

◆ ff_vf_bilateral

AVFilter ff_vf_bilateral
Initial value:
= {
.name = "bilateral",
.description = NULL_IF_CONFIG_SMALL("Apply Bilateral filter."),
.priv_size = sizeof(BilateralContext),
.priv_class = &bilateral_class,
}

Definition at line 360 of file vf_bilateral.c.

FLAGS
#define FLAGS
Definition: vf_bilateral.c:57
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_bilateral.c:328
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_bilateral.c:292
config_input
static int config_input(AVFilterLink *inlink)
Definition: vf_bilateral.c:94
outputs
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
OFFSET
#define OFFSET(x)
Definition: vf_bilateral.c:56
NULL
#define NULL
Definition: coverity.c:32
inputs
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
Definition: filter_design.txt:243
bilateral_inputs
static const AVFilterPad bilateral_inputs[]
Definition: vf_bilateral.c:342
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:188
AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
#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
AV_OPT_TYPE_FLOAT
@ AV_OPT_TYPE_FLOAT
Definition: opt.h:226
planes
static const struct @315 planes[]
bilateral_outputs
static const AVFilterPad bilateral_outputs[]
Definition: vf_bilateral.c:352
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:223
BilateralContext
Definition: vf_bilateral.c:32
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:565
query_formats
static int query_formats(AVFilterContext *ctx)
Definition: vf_bilateral.c:68