All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vf_vidstabtransform.c File Reference
#include <vid.stab/libvidstab.h>
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "libavutil/imgutils.h"
#include "avfilter.h"
#include "internal.h"
#include "vidstabutils.h"

Go to the source code of this file.

Data Structures

struct  TransformContext


#define DEFAULT_INPUT_NAME   "transforms.trf"
#define OFFSET(x)   offsetof(TransformContext, x)
#define OFFSETC(x)   (offsetof(TransformContext, conf)+offsetof(VSTransformConfig, x))


 AVFILTER_DEFINE_CLASS (vidstabtransform)
static av_cold int init (AVFilterContext *ctx)
static av_cold void uninit (AVFilterContext *ctx)
static int query_formats (AVFilterContext *ctx)
static int config_input (AVFilterLink *inlink)
static int filter_frame (AVFilterLink *inlink, AVFrame *in)


static const AVOption vidstabtransform_options []
static const AVFilterPad avfilter_vf_vidstabtransform_inputs []
static const AVFilterPad avfilter_vf_vidstabtransform_outputs []
AVFilter ff_vf_vidstabtransform

Macro Definition Documentation

#define DEFAULT_INPUT_NAME   "transforms.trf"

Definition at line 21 of file vf_vidstabtransform.c.

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

Definition at line 45 of file vf_vidstabtransform.c.

#define OFFSETC (   x)    (offsetof(TransformContext, conf)+offsetof(VSTransformConfig, x))

Definition at line 46 of file vf_vidstabtransform.c.

Definition at line 47 of file vf_vidstabtransform.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( vidstabtransform  )
static av_cold int init ( AVFilterContext ctx)

Definition at line 107 of file vf_vidstabtransform.c.

static av_cold void uninit ( AVFilterContext ctx)

Definition at line 116 of file vf_vidstabtransform.c.

static int query_formats ( AVFilterContext ctx)

Definition at line 124 of file vf_vidstabtransform.c.

static int config_input ( AVFilterLink inlink)

Definition at line 142 of file vf_vidstabtransform.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 

Definition at line 243 of file vf_vidstabtransform.c.

Variable Documentation

const AVOption vidstabtransform_options[]

Definition at line 49 of file vf_vidstabtransform.c.

const AVFilterPad avfilter_vf_vidstabtransform_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)
static int filter_frame(AVFilterLink *inlink, AVFrame *in)

Definition at line 292 of file vf_vidstabtransform.c.

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

Definition at line 302 of file vf_vidstabtransform.c.

AVFilter ff_vf_vidstabtransform
Initial value:
= {
.name = "vidstabtransform",
.description = NULL_IF_CONFIG_SMALL("Transform the frames, "
"pass 2 of 2 for stabilization "
"(see vidstabdetect for pass 1)."),
.priv_size = sizeof(TransformContext),
.init = init,
.priv_class = &vidstabtransform_class,
static const AVFilterPad avfilter_vf_vidstabtransform_outputs[]
static const AVFilterPad avfilter_vf_vidstabtransform_inputs[]
static int query_formats(AVFilterContext *ctx)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static av_cold void uninit(AVFilterContext *ctx)
static const AVFilterPad outputs[]
Definition: af_afftfilt.c:385
static const AVFilterPad inputs[]
Definition: af_afftfilt.c:375
static av_cold int init(AVFilterContext *ctx)

Definition at line 310 of file vf_vidstabtransform.c.