FFmpeg
Data Structures | Macros | Functions | Variables
vf_epx.c File Reference
#include "libavutil/opt.h"
#include "libavutil/avassert.h"
#include "libavutil/pixdesc.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

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

Macros

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

Functions

 AVFILTER_DEFINE_CLASS (epx)
 
static int epx2_slice (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int epx3_slice (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 
static int config_output (AVFilterLink *outlink)
 
static int query_formats (AVFilterContext *ctx)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 

Variables

static const AVOption epx_options []
 
static const AVFilterPad inputs []
 
static const AVFilterPad outputs []
 
AVFilter ff_vf_epx
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 36 of file vf_epx.c.

◆ FLAGS

Definition at line 37 of file vf_epx.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( epx  )

◆ epx2_slice()

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

Definition at line 45 of file vf_epx.c.

Referenced by config_output().

◆ epx3_slice()

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

Definition at line 112 of file vf_epx.c.

Referenced by config_output().

◆ config_output()

static int config_output ( AVFilterLink outlink)
static

Definition at line 199 of file vf_epx.c.

◆ query_formats()

static int query_formats ( AVFilterContext ctx)
static

Definition at line 225 of file vf_epx.c.

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 238 of file vf_epx.c.

Variable Documentation

◆ epx_options

const AVOption epx_options[]
static
Initial value:
= {
{ "n", "set scale factor", OFFSET(n), AV_OPT_TYPE_INT, {.i64 = 3}, 2, 3, .flags = FLAGS },
{ NULL }
}

Definition at line 38 of file vf_epx.c.

◆ inputs

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

Definition at line 260 of file vf_epx.c.

◆ outputs

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

Definition at line 269 of file vf_epx.c.

◆ ff_vf_epx

AVFilter ff_vf_epx
Initial value:
= {
.name = "epx",
.description = NULL_IF_CONFIG_SMALL("Scale the input using EPX algorithm."),
.inputs = inputs,
.outputs = outputs,
.query_formats = query_formats,
.priv_size = sizeof(EPXContext),
.priv_class = &epx_class,
}

Definition at line 278 of file vf_epx.c.

filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_epx.c:238
outputs
static const AVFilterPad outputs[]
Definition: vf_epx.c:269
query_formats
static int query_formats(AVFilterContext *ctx)
Definition: vf_epx.c:225
NULL
#define NULL
Definition: coverity.c:32
EPXContext
Definition: vf_epx.c:24
OFFSET
#define OFFSET(x)
Definition: vf_epx.c:36
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:117
config_output
static int config_output(AVFilterLink *outlink)
Definition: vf_epx.c:199
inputs
static const AVFilterPad inputs[]
Definition: vf_epx.c:260
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:225
AVFILTER_FLAG_SLICE_THREADS
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
Definition: avfilter.h:117
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
FLAGS
#define FLAGS
Definition: vf_epx.c:37
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561