FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vf_maskedclamp.c File Reference
#include "libavutil/imgutils.h"
#include "libavutil/pixdesc.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
#include "framesync.h"

Go to the source code of this file.

Data Structures

struct  ThreadData
 Used for passing data between threads. More...
 
struct  MaskedClampContext
 

Macros

#define OFFSET(x)   offsetof(MaskedClampContext, x)
 
#define FLAGS   AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
 

Functions

 AVFILTER_DEFINE_CLASS (maskedclamp)
 
static int query_formats (AVFilterContext *ctx)
 
static int process_frame (FFFrameSync *fs)
 
static int maskedclamp8 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int maskedclamp16 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int config_input (AVFilterLink *inlink)
 
static int config_output (AVFilterLink *outlink)
 
static int activate (AVFilterContext *ctx)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVOption maskedclamp_options []
 
static const AVFilterPad maskedclamp_inputs []
 
static const AVFilterPad maskedclamp_outputs []
 
AVFilter ff_vf_maskedclamp
 

Macro Definition Documentation

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

Definition at line 30 of file vf_maskedclamp.c.

Definition at line 31 of file vf_maskedclamp.c.

Function Documentation

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

Definition at line 62 of file vf_maskedclamp.c.

static int process_frame ( FFFrameSync fs)
static

Definition at line 88 of file vf_maskedclamp.c.

Referenced by config_output().

static int maskedclamp8 ( AVFilterContext ctx,
void arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 126 of file vf_maskedclamp.c.

Referenced by config_input().

static int maskedclamp16 ( AVFilterContext ctx,
void arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 175 of file vf_maskedclamp.c.

Referenced by config_input().

static int config_input ( AVFilterLink inlink)
static

Definition at line 224 of file vf_maskedclamp.c.

static int config_output ( AVFilterLink outlink)
static

Definition at line 253 of file vf_maskedclamp.c.

static int activate ( AVFilterContext ctx)
static

Definition at line 308 of file vf_maskedclamp.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 314 of file vf_maskedclamp.c.

Variable Documentation

const AVOption maskedclamp_options[]
static
Initial value:
= {
{ "undershoot", "set undershoot", OFFSET(undershoot), AV_OPT_TYPE_INT, {.i64=0}, 0, UINT16_MAX, FLAGS },
{ "overshoot", "set overshoot", OFFSET(overshoot), AV_OPT_TYPE_INT, {.i64=0}, 0, UINT16_MAX, FLAGS },
{ "planes", "set planes", OFFSET(planes), AV_OPT_TYPE_INT, {.i64=0xF}, 0, 0xF, FLAGS },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define FLAGS
#define OFFSET(x)
static const struct @304 planes[]

Definition at line 53 of file vf_maskedclamp.c.

const AVFilterPad maskedclamp_inputs[]
static
Initial value:
= {
{
.name = "base",
.config_props = config_input,
},
{
.name = "dark",
},
{
.name = "bright",
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int config_input(AVFilterLink *inlink)

Definition at line 321 of file vf_maskedclamp.c.

const AVFilterPad maskedclamp_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_output,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int config_output(AVFilterLink *outlink)

Definition at line 338 of file vf_maskedclamp.c.

AVFilter ff_vf_maskedclamp
Initial value:
= {
.name = "maskedclamp",
.description = NULL_IF_CONFIG_SMALL("Clamp first stream with second stream and third stream."),
.priv_size = sizeof(MaskedClampContext),
.priv_class = &maskedclamp_class,
}
static const AVFilterPad maskedclamp_outputs[]
static const AVFilterPad maskedclamp_inputs[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
Definition: avfilter.h:116
static av_cold void uninit(AVFilterContext *ctx)
static const AVFilterPad inputs[]
Definition: af_acontrast.c:193
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
static int query_formats(AVFilterContext *ctx)
#define AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will have its filter_frame() c...
Definition: avfilter.h:133
#define flags(name, subs,...)
Definition: cbs_av1.c:596
static int activate(AVFilterContext *ctx)

Definition at line 347 of file vf_maskedclamp.c.