31 typedef struct NullContext {
36 #define OFFSET(x) offsetof(FrameStepContext, x)
37 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
56 framestep->frame_step,
57 inlink->frame_rate.num, inlink->frame_rate.den,
av_q2d(inlink->frame_rate),
58 outlink->frame_rate.num, outlink->frame_rate.den,
av_q2d(outlink->frame_rate));
96 .priv_class = &framestep_class,
97 .
inputs = framestep_inputs,
static const AVOption framestep_options[]
AVRational av_div_q(AVRational b, AVRational c)
Divide one rational by another.
This structure describes decoded (raw) audio or video data.
static int filter_frame(AVFilterLink *inlink, AVFrame *ref)
Main libavfilter public API header.
#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.
AVFilterLink ** inputs
array of pointers to input links
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
static int config_output_props(AVFilterLink *outlink)
static double av_q2d(AVRational a)
Convert an AVRational to a double.
#define AV_LOG_VERBOSE
Detailed information.
A filter pad used for either input or output.
A link between two filters.
AVRational frame_rate
Frame rate of the stream on the link, or 1/0 if unknown or variable; if left to 0/0, will be automatically copied from the first input of the source filter if it exists.
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void * priv
private data for use by the filter
static const AVFilterPad framestep_inputs[]
static const AVFilterPad framestep_outputs[]
AVFilterContext * src
source filter
static const AVFilterPad outputs[]
static const AVFilterPad inputs[]
Describe the class of an AVClass context structure.
Rational number (pair of numerator and denominator).
const char * name
Filter name.
AVFilterLink ** outputs
array of pointers to output links
static int ref[MAX_W *MAX_W]
AVFILTER_DEFINE_CLASS(framestep)
AVFilterContext * dst
dest filter
int64_t frame_count
Number of past frames sent through the link.