FFmpeg
Data Structures | Macros | Functions | Variables
vf_vidstabtransform.c File Reference
#include <vid.stab/libvidstab.h>
#include "libavutil/common.h"
#include "libavutil/file_open.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "filters.h"
#include "video.h"
#include "vidstabutils.h"

Go to the source code of this file.

Data Structures

struct  TransformContext
 

Macros

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

Functions

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

Variables

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

Macro Definition Documentation

◆ DEFAULT_INPUT_NAME

#define DEFAULT_INPUT_NAME   "transforms.trf"

Definition at line 21 of file vf_vidstabtransform.c.

◆ OFFSET

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

Definition at line 47 of file vf_vidstabtransform.c.

◆ OFFSETC

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

Definition at line 48 of file vf_vidstabtransform.c.

◆ FLAGS

Definition at line 49 of file vf_vidstabtransform.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( vidstabtransform  )

◆ init()

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 109 of file vf_vidstabtransform.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 118 of file vf_vidstabtransform.c.

◆ config_input()

static int config_input ( AVFilterLink inlink)
static

Definition at line 126 of file vf_vidstabtransform.c.

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 228 of file vf_vidstabtransform.c.

Variable Documentation

◆ vidstabtransform_options

const AVOption vidstabtransform_options[]
static

Definition at line 51 of file vf_vidstabtransform.c.

◆ avfilter_vf_vidstabtransform_inputs

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

Definition at line 277 of file vf_vidstabtransform.c.

◆ ff_vf_vidstabtransform

const 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,
}

Definition at line 286 of file vf_vidstabtransform.c.

uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_vidstabtransform.c:118
FILTER_PIXFMTS_ARRAY
#define FILTER_PIXFMTS_ARRAY(array)
Definition: filters.h:242
config_input
static int config_input(AVFilterLink *inlink)
Definition: vf_vidstabtransform.c:126
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: filters.h:262
TransformContext
Definition: vf_vidstabtransform.c:35
avfilter_vf_vidstabtransform_inputs
static const AVFilterPad avfilter_vf_vidstabtransform_inputs[]
Definition: vf_vidstabtransform.c:277
init
static av_cold int init(AVFilterContext *ctx)
Definition: vf_vidstabtransform.c:109
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_vidstabtransform.c:228
ff_video_default_filterpad
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
Definition: video.c:37
ff_vidstab_pix_fmts
enum AVPixelFormat ff_vidstab_pix_fmts[]
Definition: vidstabutils.c:24
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: filters.h:263
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
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201