FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vf_qp.c File Reference
#include <math.h>
#include "libavutil/eval.h"
#include "libavutil/imgutils.h"
#include "libavutil/pixdesc.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  QPContext
 

Macros

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

Functions

 AVFILTER_DEFINE_CLASS (qp)
 
static int config_input (AVFilterLink *inlink)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 

Variables

static const AVOption qp_options []
 
static const AVFilterPad qp_inputs []
 
static const AVFilterPad qp_outputs []
 
AVFilter ff_vf_qp
 

Macro Definition Documentation

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

Definition at line 38 of file vf_qp.c.

Definition at line 39 of file vf_qp.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( qp  )
static int config_input ( AVFilterLink inlink)
static

Definition at line 48 of file vf_qp.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 77 of file vf_qp.c.

Variable Documentation

const AVOption qp_options[]
static
Initial value:
= {
{ "qp", "set qp expression", OFFSET(qp_expr_str), AV_OPT_TYPE_STRING, {.str=NULL}, 0, 0, FLAGS },
{ NULL }
}

Definition at line 41 of file vf_qp.c.

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

Definition at line 127 of file vf_qp.c.

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

Definition at line 137 of file vf_qp.c.

AVFilter ff_vf_qp
Initial value:
= {
.name = "qp",
.description = NULL_IF_CONFIG_SMALL("Change video quantization parameters."),
.priv_size = sizeof(QPContext),
.priv_class = &qp_class,
}

Definition at line 145 of file vf_qp.c.