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

Function parse_factor

libavcodec/eval.c:301–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301static AVExpr * parse_factor(Parser *p){
302 int sign, sign2;
303 AVExpr * e = parse_pow(p, &sign);
304 while(p->s[0]=='^'){
305 p->s++;
306 e= new_eval_expr(e_pow, 1, e, parse_pow(p, &sign2));
307 if (!e)
308 return NULL;
309 if (e->param[1]) e->param[1]->value *= (sign2|1);
310 }
311 if (e) e->value *= (sign|1);
312 return e;
313}
314
315static AVExpr * parse_term(Parser *p){
316 AVExpr * e = parse_factor(p);

Callers 1

parse_termFunction · 0.85

Calls 2

parse_powFunction · 0.85
new_eval_exprFunction · 0.85

Tested by

no test coverage detected