Lines Matching refs:AVExpr
119 struct AVExpr {
135 struct AVExpr *param[2];
138 static double eval_expr(Parser *p, AVExpr *e)
183 static int parse_expr(AVExpr **e, Parser *p);
185 void av_expr_free(AVExpr *e)
193 static int parse_primary(AVExpr **e, Parser *p)
195 AVExpr *d = av_mallocz(sizeof(AVExpr));
280 else if (strmatch(next, "lte" )) { AVExpr *tmp = d->param[1]; d->param[1] = d->param[0]; d->param[0] = tmp; d->type = e_gte; }
281 else if (strmatch(next, "lt" )) { AVExpr *tmp = d->param[1]; d->param[1] = d->param[0]; d->param[0] = tmp; d->type = e_gt; }
319 static AVExpr *new_eval_expr(int type, int value, AVExpr *p0, AVExpr *p1)
321 AVExpr *e = av_mallocz(sizeof(AVExpr));
331 static int parse_pow(AVExpr **e, Parser *p, int *sign)
338 static int parse_factor(AVExpr **e, Parser *p)
341 AVExpr *e0, *e1, *e2;
365 static int parse_term(AVExpr **e, Parser *p)
368 AVExpr *e0, *e1, *e2;
389 static int parse_subexpr(AVExpr **e, Parser *p)
392 AVExpr *e0, *e1, *e2;
413 static int parse_expr(AVExpr **e, Parser *p)
416 AVExpr *e0, *e1, *e2;
443 static int verify_expr(AVExpr *e)
465 int av_expr_parse(AVExpr **expr, const char *s,
472 AVExpr *e = NULL;
515 double av_expr_eval(AVExpr *e, const double *const_values, void *opaque)
530 AVExpr *e = NULL;