hvirtual/quicktime/ffmpeg/libavcodec/eval.c File Reference

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

Include dependency graph for eval.c:

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)


Detailed Description

simple arithmetic expression evaluator.

see http://joe.hotchkiss.com/programming/eval/eval.html

Definition in file eval.c.


Define Documentation

#define NAN   0

Definition at line 38 of file eval.c.

Referenced by evalExpression(), and evalPrimary().


Function Documentation

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().

Here is the call graph for this function:

static double evalFactor ( Parser p  )  [static]

Definition at line 151 of file eval.c.

References evalPow(), and Parser::s.

Referenced by evalTerm().

Here is the call graph for this function:

static double evalPow ( Parser p  )  [static]

Definition at line 145 of file eval.c.

References evalPrimary(), and Parser::s.

Referenced by evalFactor().

Here is the call graph for this function:

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().

Here is the call graph for this function:

static double evalTerm ( Parser p  )  [static]

Definition at line 160 of file eval.c.

References evalFactor(), and Parser::s.

Referenced by evalExpression().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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

Definition at line 59 of file eval.c.

Referenced by evalPrimary().


Generated on Mon Apr 28 14:03:55 2008 for Cinelerra by  doxygen 1.5.5