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


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


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


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 39 of file vf_qp.c.

Definition at line 40 of file vf_qp.c.

Function Documentation

static int config_input ( AVFilterLink inlink)

Definition at line 49 of file vf_qp.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 

Definition at line 87 of file vf_qp.c.

Variable Documentation

const AVOption qp_options[]
Initial value:
= {
{ "qp", "set qp expression", OFFSET(qp_expr_str), AV_OPT_TYPE_STRING, {.str=NULL}, 0, 0, FLAGS },
{ NULL }
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: vf_qp.c:40
#define OFFSET(x)
Definition: vf_qp.c:39

Definition at line 42 of file vf_qp.c.

const AVFilterPad qp_inputs[]
Initial value:
= {
.name = "default",
.filter_frame = filter_frame,
.config_props = config_input,
{ NULL }
#define NULL
Definition: coverity.c:32
static int config_input(AVFilterLink *inlink)
Definition: vf_qp.c:49
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_qp.c:87

Definition at line 157 of file vf_qp.c.

const AVFilterPad qp_outputs[]
Initial value:
= {
.name = "default",
{ NULL }
#define NULL
Definition: coverity.c:32

Definition at line 167 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,
static const AVFilterPad qp_outputs[]
Definition: vf_qp.c:167
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static const AVFilterPad qp_inputs[]
Definition: vf_qp.c:157
static const AVFilterPad outputs[]
Definition: af_agate.c:222
Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will have its filter_frame() c...
Definition: avfilter.h:130
static int flags
Definition: cpu.c:47
static const AVFilterPad inputs[]
Definition: af_agate.c:212

Definition at line 175 of file vf_qp.c.