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)) {
95 .priv_size =
sizeof(FrameStepContext),
96 .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.
static const AVFilterPad outputs[]
AVRational frame_rate
Frame rate of the stream on the link, or 1/0 if unknown or variable; if left to 0/0,...
Describe the class of an AVClass context structure.
Rational number (pair of numerator and denominator).
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
#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 char * name
Pad name.
AVFILTER_DEFINE_CLASS(framestep)
static int ref[MAX_W *MAX_W]
static const AVOption framestep_options[]
#define flags(name, subs,...)