Go to the documentation of this file.
36 #define OFFSET(x) offsetof(FrameStepContext, x)
37 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
49 FrameStepContext *framestep =
ctx->priv;
56 framestep->frame_step,
64 FrameStepContext *framestep =
inlink->dst->priv;
66 if (!(
inlink->frame_count_out % framestep->frame_step)) {
93 .priv_size =
sizeof(FrameStepContext),
94 .priv_class = &framestep_class,
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
AVRational av_div_q(AVRational b, AVRational c)
Divide one rational by another.
The exact code depends on how similar the blocks are and how related they are to the and needs to apply these operations to the correct inlink or outlink if there are several Macros are available to factor that when no extra processing is inlink
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
This structure describes decoded (raw) audio or video data.
static int filter_frame(AVFilterLink *inlink, AVFrame *ref)
#define AV_LOG_VERBOSE
Detailed information.
const char * name
Filter name.
A link between two filters.
static int config_output_props(AVFilterLink *outlink)
A filter pad used for either input or output.
static const AVFilterPad framestep_inputs[]
static double av_q2d(AVRational a)
Convert an AVRational to a double.
AVRational frame_rate
Frame rate of the stream on the link, or 1/0 if unknown or variable; if left to 0/0,...
#define FILTER_INPUTS(array)
Describe the class of an AVClass context structure.
Rational number (pair of numerator and denominator).
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
AVFilterContext * src
source filter
static const AVFilterPad framestep_outputs[]
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
const AVFilter ff_vf_framestep
const char * name
Pad name.
AVFILTER_DEFINE_CLASS(framestep)
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
static int ref[MAX_W *MAX_W]
static const AVOption framestep_options[]
#define FILTER_OUTPUTS(array)