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

Function main

libavcodec/eval.c:439–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437 0
438};
439int main(void){
440 int i;
441 printf("%f == 12.7\n", ff_parse_and_eval_expr("1+(5-2)^(3-1)+1/2+sin(PI)-max(-2.2,-3.1)", const_values, const_names, NULL, NULL, NULL, NULL, NULL, NULL));
442 printf("%f == 0.931322575\n", ff_parse_and_eval_expr("80G/80Gi", const_values, const_names, NULL, NULL, NULL, NULL, NULL, NULL));
443
444 for(i=0; i<1050; i++){
445 START_TIMER
446 ff_parse_and_eval_expr("1+(5-2)^(3-1)+1/2+sin(PI)-max(-2.2,-3.1)", const_values, const_names, NULL, NULL, NULL, NULL, NULL, NULL);
447 STOP_TIMER("ff_parse_and_eval_expr")
448 }
449 return 0;
450}
451#endif

Callers

nothing calls this directly

Calls 1

ff_parse_and_eval_exprFunction · 0.85

Tested by

no test coverage detected