All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vf_framestep.c File Reference
#include "libavutil/opt.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  FrameStepContext


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


static int config_output_props (AVFilterLink *outlink)
static int filter_frame (AVFilterLink *inlink, AVFrame *ref)


static const AVOption framestep_options []
static const AVFilterPad framestep_inputs []
static const AVFilterPad framestep_outputs []
AVFilter ff_vf_framestep

Macro Definition Documentation

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

Definition at line 36 of file vf_framestep.c.

Definition at line 37 of file vf_framestep.c.

Function Documentation

static int config_output_props ( AVFilterLink outlink)

Definition at line 46 of file vf_framestep.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame ref 

Definition at line 62 of file vf_framestep.c.

Variable Documentation

const AVOption framestep_options[]
Initial value:
= {
{ "step", "set frame step", OFFSET(frame_step), AV_OPT_TYPE_INT, {.i64=1}, 1, INT_MAX, FLAGS},
{ NULL },
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: vf_framestep.c:37
#define OFFSET(x)
Definition: vf_framestep.c:36

Definition at line 39 of file vf_framestep.c.

const AVFilterPad framestep_inputs[]
Initial value:
= {
.name = "default",
.filter_frame = filter_frame,
{ NULL }
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *ref)
Definition: vf_framestep.c:62

Definition at line 74 of file vf_framestep.c.

const AVFilterPad framestep_outputs[]
Initial value:
= {
.name = "default",
.config_props = config_output_props,
{ NULL }
#define NULL
Definition: coverity.c:32
static int config_output_props(AVFilterLink *outlink)
Definition: vf_framestep.c:46

Definition at line 83 of file vf_framestep.c.

AVFilter ff_vf_framestep
Initial value:
= {
.name = "framestep",
.description = NULL_IF_CONFIG_SMALL("Select one frame every N frames."),
.priv_size = sizeof(FrameStepContext),
.priv_class = &framestep_class,
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:122
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static const AVFilterPad framestep_inputs[]
Definition: vf_framestep.c:74
static const AVFilterPad framestep_outputs[]
Definition: vf_framestep.c:83
static const AVFilterPad outputs[]
Definition: af_agate.c:222
static int flags
Definition: cpu.c:47
static const AVFilterPad inputs[]
Definition: af_agate.c:212

Definition at line 92 of file vf_framestep.c.