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

Go to the source code of this file.

Data Structures

struct  PPFilterContext
 

Macros

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

Functions

 AVFILTER_DEFINE_CLASS (pp)
 
static av_cold int pp_init (AVFilterContext *ctx)
 
static int pp_process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
 
static int pp_query_formats (AVFilterContext *ctx)
 
static int pp_config_props (AVFilterLink *inlink)
 
static int pp_filter_frame (AVFilterLink *inlink, AVFrame *inbuf)
 
static av_cold void pp_uninit (AVFilterContext *ctx)
 

Variables

static const AVOption pp_options []
 
static const AVFilterPad pp_inputs []
 
static const AVFilterPad pp_outputs []
 
AVFilter ff_vf_pp
 

Detailed Description

libpostproc filter, ported from MPlayer.

Definition in file vf_pp.c.

Macro Definition Documentation

◆ OFFSET

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

Definition at line 41 of file vf_pp.c.

◆ FLAGS

Definition at line 42 of file vf_pp.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( pp  )

◆ pp_init()

static av_cold int pp_init ( AVFilterContext ctx)
static

Definition at line 50 of file vf_pp.c.

◆ pp_process_command()

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

Definition at line 64 of file vf_pp.c.

◆ pp_query_formats()

static int pp_query_formats ( AVFilterContext ctx)
static

Definition at line 76 of file vf_pp.c.

◆ pp_config_props()

static int pp_config_props ( AVFilterLink inlink)
static

Definition at line 95 of file vf_pp.c.

◆ pp_filter_frame()

static int pp_filter_frame ( AVFilterLink inlink,
AVFrame inbuf 
)
static

Definition at line 121 of file vf_pp.c.

◆ pp_uninit()

static av_cold void pp_uninit ( AVFilterContext ctx)
static

Definition at line 155 of file vf_pp.c.

Variable Documentation

◆ pp_options

const AVOption pp_options[]
static
Initial value:
= {
{ "subfilters", "set postprocess subfilters", OFFSET(subfilters), AV_OPT_TYPE_STRING, {.str="de"}, .flags = FLAGS },
{ NULL }
}

Definition at line 43 of file vf_pp.c.

◆ pp_inputs

const AVFilterPad pp_inputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = pp_config_props,
.filter_frame = pp_filter_frame,
},
{ NULL }
}

Definition at line 166 of file vf_pp.c.

◆ pp_outputs

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

Definition at line 176 of file vf_pp.c.

◆ ff_vf_pp

AVFilter ff_vf_pp
Initial value:
= {
.name = "pp",
.description = NULL_IF_CONFIG_SMALL("Filter video using libpostproc."),
.priv_size = sizeof(PPFilterContext),
.priv_class = &pp_class,
}

Definition at line 184 of file vf_pp.c.

pp_config_props
static int pp_config_props(AVFilterLink *inlink)
Definition: vf_pp.c:95
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
pp_outputs
static const AVFilterPad pp_outputs[]
Definition: vf_pp.c:176
outputs
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
pp_inputs
static const AVFilterPad pp_inputs[]
Definition: vf_pp.c:166
pp_init
static av_cold int pp_init(AVFilterContext *ctx)
Definition: vf_pp.c:50
pp_query_formats
static int pp_query_formats(AVFilterContext *ctx)
Definition: vf_pp.c:76
NULL
#define NULL
Definition: coverity.c:32
inputs
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
Definition: filter_design.txt:243
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:188
FLAGS
#define FLAGS
Definition: vf_pp.c:42
AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:125
process_command
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
Definition: af_afftdn.c:1373
OFFSET
#define OFFSET(x)
Definition: vf_pp.c:41
PPFilterContext
Definition: vf_pp.c:33
pp_process_command
static int pp_process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
Definition: vf_pp.c:64
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
pp_uninit
static av_cold void pp_uninit(AVFilterContext *ctx)
Definition: vf_pp.c:155
query_formats
static int query_formats(AVFilterContext *ctx)
Definition: aeval.c:244
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:565
pp_filter_frame
static int pp_filter_frame(AVFilterLink *inlink, AVFrame *inbuf)
Definition: vf_pp.c:121
uninit
static av_cold int uninit(AVCodecContext *avctx)
Definition: crystalhd.c:279
AV_OPT_TYPE_STRING
@ AV_OPT_TYPE_STRING
Definition: opt.h:227