FFmpeg
 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
 

Macros

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

Functions

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

Variables

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

AVFILTER_DEFINE_CLASS ( framestep  )
static int config_output_props ( AVFilterLink outlink)
static

Definition at line 46 of file vf_framestep.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame ref 
)
static

Definition at line 63 of file vf_framestep.c.

Variable Documentation

const AVOption framestep_options[]
static
Initial value:
= {
{ "step", "set frame step", OFFSET(frame_step), AV_OPT_TYPE_INT, {.i64=1}, 1, INT_MAX, FLAGS},
{ NULL },
}

Definition at line 39 of file vf_framestep.c.

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

Definition at line 75 of file vf_framestep.c.

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

Definition at line 84 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,
}

Definition at line 93 of file vf_framestep.c.