annotate eval.h @ 3907:5f5525341673 libavcodec

Original Commit: r108 | ods15 | 2006-10-01 18:46:06 +0200 (Sun, 01 Oct 2006) | 2 lines prevent division/modulo
author ods15
date Mon, 02 Oct 2006 06:09:39 +0000
parents 7b289e4ae034
children c8c591fe26f8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3790
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
1 /*
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
2 * simple arithmetic expression evaluator
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
3 *
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
4 * Copyright (c) 2002 Michael Niedermayer <michaelni@gmx.at>
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
5 *
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
6 * This library is free software; you can redistribute it and/or
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
7 * modify it under the terms of the GNU Lesser General Public
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
8 * License as published by the Free Software Foundation; either
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
9 * version 2 of the License, or (at your option) any later version.
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
10 *
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
11 * This library is distributed in the hope that it will be useful,
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
14 * Lesser General Public License for more details.
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
15 *
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
16 * You should have received a copy of the GNU Lesser General Public
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
17 * License along with this library; if not, write to the Free Software
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
19 */
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
20
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
21 /**
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
22 * @file eval.h
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
23 * eval header.
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
24 */
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
25
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
26 #ifndef AVCODEC_EVAL_H
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
27 #define AVCODEC_EVAL_H
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
28
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
29 #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
30 double ff_eval(char *s, double *const_value, const char **const_name,
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
31 double (**func1)(void *, double), const char **func1_name,
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
32 double (**func2)(void *, double, double), char **func2_name,
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
33 void *opaque);
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
34 #endif
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
35 double ff_eval2(char *s, double *const_value, const char **const_name,
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
36 double (**func1)(void *, double), const char **func1_name,
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
37 double (**func2)(void *, double, double), char **func2_name,
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
38 void *opaque, char **error);
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
39
7b289e4ae034 Add forgotten eval.h...
takis
parents:
diff changeset
40 #endif /* AVCODEC_EVAL_H */