99 #define D2TS(d) (isnan(d) ? AV_NOPTS_VALUE : (int64_t)(d))
100 #define TS2D(ts) ((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts))
120 "n:%"PRId64
" interlaced:%d pos:%"PRId64
" pts:%"PRId64
" t:%f -> pts:%"PRId64
" t:%f\n",
AVFilterBufferRefVideoProps * video
video buffer specific properties
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 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. ...
static const char * var_names[]
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,...)
AVFilterContext * src
source filter
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
A reference to an AVFilterBuffer.
void av_expr_free(AVExpr *e)
Free a parsed expression previously created with av_expr_parse().
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
AVFilterBufferRef * avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask)
Add a new reference to a buffer.
void avfilter_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
Notify the next filter of the start of a frame.
const char * name
filter name
AVFilterBufferRef * avfilter_null_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
get_video_buffer() handler for filters which simply pass video along
AVFilterLink ** outputs
array of pointers to output links
int interlaced
is frame interlaced
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)
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
simple arithmetic expression evaluator