MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / new_eval_expr

Function new_eval_expr

libavcodec/eval.c:284–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284static AVExpr * new_eval_expr(int type, int value, AVExpr *p0, AVExpr *p1){
285 AVExpr * e = av_mallocz(sizeof(AVExpr));
286 if (!e)
287 return NULL;
288 e->type =type ;
289 e->value =value ;
290 e->param[0] =p0 ;
291 e->param[1] =p1 ;
292 return e;
293}
294
295static AVExpr * parse_pow(Parser *p, int *sign){
296 *sign= (*p->s == '+') - (*p->s == '-');

Callers 4

parse_factorFunction · 0.85
parse_termFunction · 0.85
parse_subexprFunction · 0.85
parse_exprFunction · 0.85

Calls 1

av_malloczFunction · 0.85

Tested by

no test coverage detected