102 #define D2TS(d) (isnan(d) ? AV_NOPTS_VALUE : (int64_t)(d))
103 #define TS2D(ts) ((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts))
108 int64_t in_pts = frame->
pts;
123 "n:%"PRId64
" interlaced:%d pos:%"PRId64
" pts:%"PRId64
" t:%f -> pts:%"PRId64
" t:%f\n",
171 .
inputs = avfilter_vf_setpts_inputs,
172 .
outputs = avfilter_vf_setpts_outputs,
static const char *const var_names[]
AVFilterBufferRefVideoProps * video
video buffer specific properties
static const AVFilterPad outputs[]
int ff_filter_frame(AVFilterLink *link, AVFilterBufferRef *frame)
Send a frame of data to the next filter.
static av_cold void uninit(AVFilterContext *ctx)
double var_values[VAR_VARS_NB]
int av_expr_parse(AVExpr **expr, const char *s, const char *const *const_names, const char *const *func1_names, double(*const *funcs1)(void *, double), const char *const *func2_names, double(*const *funcs2)(void *, double, double), int log_offset, void *log_ctx)
Parse an expression.
static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *frame)
const char * name
Pad name.
static av_always_inline av_const int isnan(float x)
static double av_q2d(AVRational a)
Convert rational to double.
int64_t pts
presentation timestamp.
static int config_input(AVFilterLink *inlink)
A filter pad used for either input or output.
A link between two filters.
AVFilter avfilter_vf_setpts
#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
AVRational time_base
Define the time base used by the PTS of the frames/samples which will pass through this link...
void av_log(void *avcl, int level, const char *fmt,...)
common internal API header
AVFilterContext * src
source filter
A reference to an AVFilterBuffer.
void av_expr_free(AVExpr *e)
Free a parsed expression previously created with av_expr_parse().
static const AVFilterPad inputs[]
const char * name
filter name
AVFilterLink ** outputs
array of pointers to output links
static const AVFilterPad avfilter_vf_setpts_inputs[]
int interlaced
is frame interlaced
static const AVFilterPad avfilter_vf_setpts_outputs[]
int64_t pos
byte position in stream, -1 if unknown
double av_expr_eval(AVExpr *e, const double *const_values, void *opaque)
Evaluate a previously parsed expression.
AVFilterContext * dst
dest filter
AVFilterBufferRef * ff_null_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
simple arithmetic expression evaluator
static av_cold int init(AVFilterContext *ctx, const char *args)