FFmpeg
Data Structures | Functions
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...
 

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)
 
static int process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
 

Function Documentation

◆ query_formats()

static int query_formats ( AVFilterContext ctx)
static

Definition at line 58 of file vf_xmedian.c.

◆ init()

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 92 of file vf_xmedian.c.

◆ comparei()

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

Definition at line 114 of file vf_xmedian.c.

Referenced by median_frames16(), and median_frames8().

◆ median_frames16()

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

Definition at line 121 of file vf_xmedian.c.

Referenced by config_output().

◆ median_frames8()

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

Definition at line 166 of file vf_xmedian.c.

Referenced by config_output().

◆ process_frame()

static int process_frame ( FFFrameSync fs)
static

Definition at line 209 of file vf_xmedian.c.

Referenced by config_output().

◆ config_output()

static int config_output ( AVFilterLink outlink)
static

Definition at line 243 of file vf_xmedian.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 312 of file vf_xmedian.c.

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 323 of file vf_xmedian.c.

◆ process_command()

static int process_command ( AVFilterContext ctx,
const char *  cmd,
const char *  args,
char *  res,
int  res_len,
int  flags 
)
static

Definition at line 329 of file vf_xmedian.c.