61 #define OFFSET(x) offsetof(FPSContext, x) 
   62 #define V AV_OPT_FLAG_VIDEO_PARAM 
   63 #define F AV_OPT_FLAG_FILTERING_PARAM 
  186                 first_pts = 
FFMIN(
FFMAX(first_pts, INT64_MIN), INT64_MAX);
 
  227     for (i = 0; i < 
delta; i++) {
 
  292     .priv_class  = &fps_class,
 
  293     .
inputs      = avfilter_vf_fps_inputs,
 
  294     .
outputs     = avfilter_vf_fps_outputs,
 
int frames_out
number of frames on output 
AVFifoBuffer * fifo
store frames until we get two successive timestamps 
static const AVOption fps_options[]
This structure describes decoded (raw) audio or video data. 
#define AV_LOG_WARNING
Something somehow does not look correct. 
Main libavfilter public API header. 
int h
agreed upon image height 
int drop
number of framed dropped 
int64_t first_pts
pts of the first frame that arrived on this filter 
int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int(*func)(void *, void *, int))
Feed data from a user-supplied callback to an AVFifoBuffer. 
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 int64_t start_time
int frames_in
number of frames on input 
int64_t pts
Presentation timestamp in time_base units (time when frame should be shown to user). 
int av_fifo_space(const AVFifoBuffer *f)
Return the amount of space in bytes in the AVFifoBuffer, that is the amount of data you can write int...
#define AVERROR_EOF
End of file. 
static av_cold int init(AVFilterContext *ctx)
#define AV_LOG_VERBOSE
Detailed information. 
A filter pad used for either input or output. 
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq)
Rescale a 64-bit integer by 2 rational numbers. 
A link between two filters. 
int dup
number of frames duplicated 
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. 
static av_cold void uninit(AVFilterContext *ctx)
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 
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers. 
int av_fifo_generic_read(AVFifoBuffer *f, void *dest, int buf_size, void(*func)(void *, void *, int))
Feed data from an AVFifoBuffer to a user-supplied callback. 
static const AVFilterPad avfilter_vf_fps_inputs[]
AVRational time_base
Define the time base used by the PTS of the frames/samples which will pass through this link...
Round to nearest and halfway cases away from zero. 
static int request_frame(AVFilterLink *outlink)
static const AVFilterPad avfilter_vf_fps_outputs[]
int w
agreed upon image width 
#define AV_TIME_BASE
Internal time base represented as integer. 
static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
AVFilterContext * src
source filter 
static const AVFilterPad outputs[]
AVFrame * av_frame_clone(const AVFrame *src)
Create a new frame that references the same data as src. 
static const AVFilterPad inputs[]
int av_fifo_size(const AVFifoBuffer *f)
Return the amount of data in bytes in the AVFifoBuffer, that is the amount of data you can read from ...
#define AV_TIME_BASE_Q
Internal time base represented as fractional value. 
int av_fifo_realloc2(AVFifoBuffer *f, unsigned int new_size)
Resize an AVFifoBuffer. 
a very simple circular buffer FIFO implementation 
Describe the class of an AVClass context structure. 
Rational number (pair of numerator and denominator). 
offset must point to AVRational 
const char * name
Filter name. 
AVFilterLink ** outputs
array of pointers to output links 
AVFifoBuffer * av_fifo_alloc_array(size_t nmemb, size_t size)
Initialize an AVFifoBuffer. 
AVFILTER_DEFINE_CLASS(fps)
static av_always_inline AVRational av_inv_q(AVRational q)
Invert a rational. 
common internal and external API header 
AVRational framerate
target framerate 
int rounding
AVRounding method for timestamps. 
static int config_props(AVFilterLink *link)
static int write_to_fifo(AVFifoBuffer *fifo, AVFrame *buf)
AVFilterContext * dst
dest filter 
void av_fifo_freep(AVFifoBuffer **f)
Free an AVFifoBuffer and reset pointer to NULL. 
int64_t av_rescale_q_rnd(int64_t a, AVRational bq, AVRational cq, enum AVRounding rnd)
Rescale a 64-bit integer by 2 rational numbers with specified rounding. 
int ff_request_frame(AVFilterLink *link)
Request an input frame from the filter at the other end of the link. 
static void flush_fifo(AVFifoBuffer *fifo)
double start_time
pts, in seconds, of the expected first frame 
#define AV_NOPTS_VALUE
Undefined timestamp value.