FFmpeg
Data Structures | Macros | Functions | Variables
vf_epx.c File Reference
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "filters.h"
#include "video.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 filter_frame (AVFilterLink *inlink, AVFrame *in)
 

Variables

static const AVOption epx_options []
 
static enum AVPixelFormat pix_fmts []
 
static const AVFilterPad inputs []
 
static const AVFilterPad outputs []
 
const AVFilter ff_vf_epx
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 37 of file vf_epx.c.

◆ FLAGS

Definition at line 38 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 46 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 113 of file vf_epx.c.

Referenced by config_output().

◆ config_output()

static int config_output ( AVFilterLink outlink)
static

Definition at line 200 of file vf_epx.c.

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 231 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 39 of file vf_epx.c.

◆ pix_fmts

enum AVPixelFormat pix_fmts[]
static
Initial value:

Definition at line 226 of file vf_epx.c.

◆ inputs

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

Definition at line 254 of file vf_epx.c.

◆ outputs

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

Definition at line 262 of file vf_epx.c.

◆ ff_vf_epx

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

Definition at line 270 of file vf_epx.c.

FILTER_PIXFMTS_ARRAY
#define FILTER_PIXFMTS_ARRAY(array)
Definition: filters.h:242
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_epx.c:231
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: filters.h:262
AV_PIX_FMT_BGRA
@ AV_PIX_FMT_BGRA
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
Definition: pixfmt.h:102
outputs
static const AVFilterPad outputs[]
Definition: vf_epx.c:262
pix_fmts
static enum AVPixelFormat pix_fmts[]
Definition: vf_epx.c:226
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: filters.h:263
AV_PIX_FMT_RGBA
@ AV_PIX_FMT_RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:100
NULL
#define NULL
Definition: coverity.c:32
EPXContext
Definition: vf_epx.c:25
OFFSET
#define OFFSET(x)
Definition: vf_epx.c:37
AV_PIX_FMT_ABGR
@ AV_PIX_FMT_ABGR
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
Definition: pixfmt.h:101
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:94
config_output
static int config_output(AVFilterLink *outlink)
Definition: vf_epx.c:200
AV_PIX_FMT_ARGB
@ AV_PIX_FMT_ARGB
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
Definition: pixfmt.h:99
inputs
static const AVFilterPad inputs[]
Definition: vf_epx.c:254
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:72
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition: opt.h:259
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:152
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
FLAGS
#define FLAGS
Definition: vf_epx.c:38
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:482