FFmpeg
Loading...
Searching...
No Matches
vf_framestep.c File Reference
#include "libavutil/opt.h"
#include "avfilter.h"
#include "filters.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  FrameStepContext
 

Macros

#define OFFSET(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 []
 
const FFFilter ff_vf_framestep
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET ( x)
Value:

Definition at line 36 of file vf_framestep.c.

◆ FLAGS

Definition at line 37 of file vf_framestep.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( framestep )

◆ config_output_props()

static int config_output_props ( AVFilterLink * outlink)
static

Definition at line 46 of file vf_framestep.c.

◆ filter_frame()

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

Definition at line 64 of file vf_framestep.c.

Variable Documentation

◆ framestep_options

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 },
}
#define FLAGS
Definition cmdutils.c:598
#define NULL
Definition coverity.c:32
#define OFFSET(x)
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition opt.h:258

Definition at line 39 of file vf_framestep.c.

◆ framestep_inputs

const AVFilterPad framestep_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
}
static int filter_frame(DBEDecodeContext *s, AVFrame *frame)
Definition dolby_e.c:1067
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200

Definition at line 77 of file vf_framestep.c.

◆ framestep_outputs

const AVFilterPad framestep_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_output_props,
},
}
static int config_output_props(AVFilterLink *outlink)
Definition settb.c:72

Definition at line 85 of file vf_framestep.c.

◆ ff_vf_framestep

const FFFilter ff_vf_framestep
Initial value:
= {
.p.name = "framestep",
.p.description = NULL_IF_CONFIG_SMALL("Select one frame every N frames."),
.p.priv_class = &framestep_class,
.priv_size = sizeof(FrameStepContext),
}
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition avfilter.h:196
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
Definition avfilter.h:182
#define FILTER_INPUTS(array)
Definition filters.h:264
#define FILTER_OUTPUTS(array)
Definition filters.h:265
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static const AVFilterPad framestep_inputs[]
static const AVFilterPad framestep_outputs[]

Definition at line 93 of file vf_framestep.c.