Reimar Döffinger
efa7f42020
Use the avstring.h locale-independent character type functions
...
Make sure the behavior does not change with the locale.
Signed-off-by: Martin Storsjö <martin@martin.st>
2013-03-07 15:16:36 +02:00
Justin Ruggles
5312268b34
eval: treat dB as decibels instead of decibytes
2012-12-05 11:23:36 -05:00
Anton Khirnov
cb45553f57
Remove pointless #undefs of previously forbidden functions.
2012-12-04 21:40:22 +01:00
Mans Rullgard
74c39bc682
eval-test: make table static const
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-10-13 11:39:25 +01:00
Martin Storsjö
1d9c2dc89a
Don't include common.h from avutil.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-08-15 22:32:06 +03:00
Ronald S. Bultje
02ac28229a
eval: fix printing of NaN in eval fate test.
...
This fixes "make fate-eval" on MSVC builds. Without this, the test outputs
"-1.#NaN" instead of "nan" on MSVS 2010.
2012-07-26 15:56:32 -07:00
Janne Grunau
2d497c141d
eval: add gt(), gte(), lt() and lte() fate tests
2012-07-14 13:43:10 +02:00
Max Lazarov
caac3ab6ef
eval: fix swapping of lt() and lte()
...
CC: libav-stable@libav.org
2012-07-14 13:33:25 +02:00
Martin Storsjö
143f1e9203
eval: Add the isinf() function and tests for it
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-07-04 15:10:56 +03:00
Martin Storsjö
3893feeccd
opt/eval: Include mathematics.h for NAN/INFINITY
...
These files use NAN/INFINITY but didn't include mathematics.h to get
the fallback definitions if the system lacks the macros.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-07-01 19:20:11 +03:00
Alex Converse
b0f29db5c2
Mark mutable static data const where appropriate.
2012-02-21 09:47:07 -08:00
Anton Khirnov
775af761a0
eval: test isnan(sqrt(-1)) instead of just sqrt(-1)
...
sqrt(-1) returns "some NaN", it's not specified which exactly.
2011-09-22 08:13:55 +02:00
Stefano Sabatini
8cee38a298
eval: implement not() expression
2011-09-19 12:38:34 +02:00
Stefano Sabatini
9bc393908a
eval: add sqrt function for computing the square root
2011-09-19 12:38:14 +02:00
Ronald S. Bultje
dfd8116986
eval: add missing comma to tests.
2011-07-05 18:18:11 -07:00
Ronald S. Bultje
fe277b16f0
eval: fix memleak.
2011-07-05 18:18:10 -07:00
Mans Rullgard
94350ab986
eval: clear Parser instances before using
...
This prevents random values from the stack being used as
"variables" in expressions.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-07-04 12:31:47 +01:00
Mans Rullgard
6da812e4ee
eval: make timing optional in test program
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-07-04 10:26:21 +01:00
Mans Rullgard
abc78a5a7c
Do not include log.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-07-03 21:42:07 +01:00
Diego Biurrun
dc25d79f49
Drop unnecessary directory prefixes from #include directives.
2011-06-07 10:31:26 +02:00
Anton Khirnov
516fb5e40c
lavu: remove FF_API_OLD_EVAL_NAMES cruft
2011-04-19 19:03:44 +02:00
Stefano Sabatini
5ae4251c3b
eval: add support for trunc, ceil, and floor functions
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-04-10 09:24:21 +02:00
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-03-19 13:33:20 +00:00
Stefano Sabatini
d2af7205a1
Use hierarchic names convention (prefix them with av_expr) for the
...
eval API.
More grep-friendly and more consistent with the rest of the FFmpeg
API.
Originally committed as revision 25708 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-08 14:06:49 +00:00
Stefano Sabatini
20fcd0797e
Implement isnan() function evaluation.
...
Originally committed as revision 25666 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-03 19:44:00 +00:00
Stefano Sabatini
4cabef0a9d
Make strmatch() return 1 only if the string compared against the
...
prefix does not contain other characters which may belong to an
identifier.
This allows to distinguish for example to have different constants
with the same prefix (e.g. "foo" and "foobar").
Originally committed as revision 25626 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-01 09:34:21 +00:00
Stefano Sabatini
2b59fbe9b1
Add st, ld, while examples/tests.
...
Originally committed as revision 25625 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-01 09:34:18 +00:00
Stefano Sabatini
8bb12e71af
Add examples of unary operators.
...
Originally committed as revision 25624 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-01 09:34:15 +00:00
Stefano Sabatini
63b1630356
Fix evaluation of expressions of the form: E1;E2.
...
The pointer to the char ';' has to be increased before to evaluate
";E2".
Originally committed as revision 25623 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-01 09:34:12 +00:00
Stefano Sabatini
eb928286de
Add more tests to eval, help detecting some of the more apparent
...
errors, far from being a complete test system.
Originally committed as revision 23635 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-16 22:36:52 +00:00
Stefano Sabatini
7ec9b9beca
Make av_parse_expr() fail if there are trailing chars at the end of
...
the provided expression.
Allow detection of mistyped expressions.
Originally committed as revision 23629 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-16 18:27:55 +00:00
Stefano Sabatini
2f62224bc0
Improve av_parse_eval() error reporting.
...
Originally committed as revision 23627 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-16 18:27:46 +00:00
Stefano Sabatini
0b99215c0e
Move eval.c and eval.h from libavcodec to libavutil, and make the eval
...
API public.
Originally committed as revision 23485 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-05 12:01:28 +00:00