summaryrefslogtreecommitdiffstats
path: root/libavutil/eval.c
Commit message (Collapse)AuthorAgeFilesLines
* eval: Explicitly ignore return value of strtod() in parse_db()Diego Biurrun2013-07-271-1/+2
| | | | | The return value is not needed. This fixes the warning: libavutil/eval.c:353:15: warning: ignoring return value of ‘strtod’
* Use the avstring.h locale-independent character type functionsReimar Döffinger2013-03-071-1/+2
| | | | | | Make sure the behavior does not change with the locale. Signed-off-by: Martin Storsjö <martin@martin.st>
* eval: treat dB as decibels instead of decibytesJustin Ruggles2012-12-051-3/+24
|
* Remove pointless #undefs of previously forbidden functions.Anton Khirnov2012-12-041-1/+0
|
* eval-test: make table static constMans Rullgard2012-10-131-1/+2
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Don't include common.h from avutil.hMartin Storsjö2012-08-151-0/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* eval: fix printing of NaN in eval fate test.Ronald S. Bultje2012-07-261-1/+4
| | | | | This fixes "make fate-eval" on MSVC builds. Without this, the test outputs "-1.#NaN" instead of "nan" on MSVS 2010.
* eval: add gt(), gte(), lt() and lte() fate testsJanne Grunau2012-07-141-0/+8
|
* eval: fix swapping of lt() and lte()Max Lazarov2012-07-141-2/+2
| | | | CC: libav-stable@libav.org
* eval: Add the isinf() function and tests for itMartin Storsjö2012-07-041-1/+8
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* opt/eval: Include mathematics.h for NAN/INFINITYMartin Storsjö2012-07-011-0/+1
| | | | | | | 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>
* Mark mutable static data const where appropriate.Alex Converse2012-02-211-2/+2
|
* eval: test isnan(sqrt(-1)) instead of just sqrt(-1)Anton Khirnov2011-09-221-1/+1
| | | | sqrt(-1) returns "some NaN", it's not specified which exactly.
* eval: implement not() expressionStefano Sabatini2011-09-191-1/+7
|
* eval: add sqrt function for computing the square rootStefano Sabatini2011-09-191-0/+6
|
* eval: add missing comma to tests.Ronald S. Bultje2011-07-051-1/+1
|
* eval: fix memleak.Ronald S. Bultje2011-07-051-0/+1
|
* eval: clear Parser instances before usingMans Rullgard2011-07-041-2/+2
| | | | | | | This prevents random values from the stack being used as "variables" in expressions. Signed-off-by: Mans Rullgard <mans@mansr.com>
* eval: make timing optional in test programMans Rullgard2011-07-041-4/+9
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Do not include log.h in avutil.hMans Rullgard2011-07-031-0/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Drop unnecessary directory prefixes from #include directives.Diego Biurrun2011-06-071-1/+1
|
* lavu: remove FF_API_OLD_EVAL_NAMES cruftAnton Khirnov2011-04-191-32/+0
|
* eval: add support for trunc, ceil, and floor functionsStefano Sabatini2011-04-101-2/+19
| | | | | Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Use hierarchic names convention (prefix them with av_expr) for theStefano Sabatini2010-11-081-32/+64
| | | | | | | | | 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
* Implement isnan() function evaluation.Stefano Sabatini2010-11-031-2/+7
| | | | Originally committed as revision 25666 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make strmatch() return 1 only if the string compared against theStefano Sabatini2010-11-011-1/+4
| | | | | | | | | | 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
* Add st, ld, while examples/tests.Stefano Sabatini2010-11-011-0/+8
| | | | Originally committed as revision 25625 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add examples of unary operators.Stefano Sabatini2010-11-011-0/+3
| | | | Originally committed as revision 25624 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix evaluation of expressions of the form: E1;E2.Stefano Sabatini2010-11-011-1/+2
| | | | | | | 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
* Add more tests to eval, help detecting some of the more apparentStefano Sabatini2010-06-161-0/+38
| | | | | | errors, far from being a complete test system. Originally committed as revision 23635 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make av_parse_expr() fail if there are trailing chars at the end ofStefano Sabatini2010-06-161-0/+6
| | | | | | | | the provided expression. Allow detection of mistyped expressions. Originally committed as revision 23629 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Improve av_parse_eval() error reporting.Stefano Sabatini2010-06-161-5/+5
| | | | Originally committed as revision 23627 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move eval.c and eval.h from libavcodec to libavutil, and make the evalStefano Sabatini2010-06-051-0/+547
API public. Originally committed as revision 23485 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud