FFmpeg
Data Structures | Macros | Functions | Variables
vf_xmedian.c File Reference
#include "libavutil/avstring.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/qsort.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "framesync.h"
#include "video.h"

Go to the source code of this file.

Data Structures

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

Macros

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

Functions

static int query_formats (AVFilterContext *ctx)
 
static av_cold int init (AVFilterContext *ctx)
 
static int comparei (const void *p1, const void *p2)
 
static int median_frames16 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int median_frames8 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int process_frame (FFFrameSync *fs)
 
static int config_output (AVFilterLink *outlink)
 
static av_cold void uninit (AVFilterContext *ctx)
 
static int activate (AVFilterContext *ctx)
 

Variables

static const AVOption xmedian_options []
 
static const AVFilterPad outputs []
 

Macro Definition Documentation

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

Definition at line 347 of file vf_xmedian.c.

Definition at line 348 of file vf_xmedian.c.

Function Documentation

static int query_formats ( AVFilterContext ctx)
static

Definition at line 58 of file vf_xmedian.c.

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 95 of file vf_xmedian.c.

static int comparei ( const void p1,
const void p2 
)
static

Definition at line 137 of file vf_xmedian.c.

Referenced by median_frames16(), and median_frames8().

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

Definition at line 144 of file vf_xmedian.c.

Referenced by config_output().

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

Definition at line 189 of file vf_xmedian.c.

Referenced by config_output().

static int process_frame ( FFFrameSync fs)
static

Definition at line 232 of file vf_xmedian.c.

Referenced by config_output().

static int config_output ( AVFilterLink outlink)
static

Definition at line 259 of file vf_xmedian.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 328 of file vf_xmedian.c.

static int activate ( AVFilterContext ctx)
static

Definition at line 341 of file vf_xmedian.c.

Variable Documentation

const AVOption xmedian_options[]
static
Initial value:
= {
{ "inputs", "set number of inputs", OFFSET(nb_inputs), AV_OPT_TYPE_INT, {.i64=3}, 3, 255, .flags = FLAGS },
{ "planes", "set planes to filter", OFFSET(planes), AV_OPT_TYPE_INT, {.i64=15}, 0, 15, .flags = FLAGS },
{ "percentile", "set percentile", OFFSET(percentile),AV_OPT_TYPE_FLOAT,{.dbl=0.5}, 0, 1, .flags = FLAGS },
{ NULL },
}
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: vf_xmedian.c:347
static const struct @315 planes[]
#define FLAGS
Definition: vf_xmedian.c:348

Definition at line 350 of file vf_xmedian.c.

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

Definition at line 357 of file vf_xmedian.c.