61 sscanf(args,
"%d:%d:%255[^:]", &priv->
w, &priv->
h, priv->
tb_expr);
63 if (priv->
w <= 0 || priv->
h <= 0) {
90 if (tb.
num <= 0 || tb.
den <= 0) {
92 "Invalid non-positive value for the timebase %d/%d.\n",
static const char * var_names[]
int h
agreed upon image height
static int init(AVFilterContext *ctx, const char *args, void *opaque)
static double av_q2d(AVRational a)
Convert rational to double.
A filter pad used for either input or output.
A link between two filters.
int av_expr_parse_and_eval(double *d, const char *s, const char *const *const_names, const double *const_values, const char *const *func1_names, double(*const *funcs1)(void *, double), const char *const *func2_names, double(*const *funcs2)(void *, double, double), void *opaque, int log_offset, void *log_ctx)
Parse and evaluate an expression.
AVFilter avfilter_vsrc_nullsrc
#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,...)
size_t av_strlcpy(char *dst, const char *src, size_t size)
Copy the string src to dst, but no more than size - 1 bytes, and null-terminate dst.
int w
agreed upon image width
AVRational av_d2q(double d, int max)
Convert a double precision floating point number to a rational.
static int config_props(AVFilterLink *outlink)
AVFilterContext * src
source filter
double var_values[VAR_VARS_NB]
#define AV_TIME_BASE_Q
Internal time base represented as fractional value.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
rational number numerator/denominator
const char * name
filter name
static int request_frame(AVFilterLink *link)
simple arithmetic expression evaluator