#include "avcodec.h"#include "mpegvideo.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>

Go to the source code of this file.
Data Structures | |
| struct | Parser |
Defines | |
| #define | NAN 0 |
Functions | |
| static double | evalExpression (Parser *p) |
| static int | strmatch (const char *s, const char *prefix) |
| static double | evalPrimary (Parser *p) |
| static double | evalPow (Parser *p) |
| static double | evalFactor (Parser *p) |
| static double | evalTerm (Parser *p) |
| double | ff_eval (char *s, double *const_value, const char **const_name, double(**func1)(void *, double), const char **func1_name, double(**func2)(void *, double, double), char **func2_name, void *opaque) |
see http://joe.hotchkiss.com/programming/eval/eval.html
Definition in file eval.c.
| #define NAN 0 |
| static double evalExpression | ( | Parser * | p | ) | [static] |
Definition at line 169 of file eval.c.
References evalTerm(), NAN, Parser::s, and Parser::stack_index.
Referenced by evalPrimary(), and ff_eval().

| static double evalFactor | ( | Parser * | p | ) | [static] |
Definition at line 151 of file eval.c.
References evalPow(), and Parser::s.
Referenced by evalTerm().

| static double evalPow | ( | Parser * | p | ) | [static] |
Definition at line 145 of file eval.c.
References evalPrimary(), and Parser::s.
Referenced by evalFactor().

| static double evalPrimary | ( | Parser * | p | ) | [static] |
Definition at line 67 of file eval.c.
References av_log(), AV_LOG_ERROR, Parser::const_name, Parser::const_value, evalExpression(), Parser::func1, Parser::func1_name, Parser::func2, Parser::func2_name, M_PI, NAN, NULL, Parser::opaque, Parser::s, strchr, and strmatch().
Referenced by evalPow().

| static double evalTerm | ( | Parser * | p | ) | [static] |
Definition at line 160 of file eval.c.
References evalFactor(), and Parser::s.
Referenced by evalExpression().

| double ff_eval | ( | char * | s, | |
| double * | const_value, | |||
| const char ** | const_name, | |||
| double(**)(void *, double) | func1, | |||
| const char ** | func1_name, | |||
| double(**)(void *, double, double) | func2, | |||
| char ** | func2_name, | |||
| void * | opaque | |||
| ) |
Definition at line 185 of file eval.c.
References Parser::const_name, Parser::const_value, evalExpression(), Parser::func1, Parser::func1_name, Parser::func2, Parser::func2_name, Parser::opaque, Parser::s, and Parser::stack_index.
Referenced by get_qscale().

| static int strmatch | ( | const char * | s, | |
| const char * | prefix | |||
| ) | [static] |
1.5.5