summaryrefslogtreecommitdiff
path: root/libavutil/eval.c
Commit message (Collapse)AuthorAge
* build: Split test programs off into separate filesDiego Biurrun2016-04-07
| | | | | This avoids spurious library rebuilds when only the test program code is changed and simplifies the build system.
* cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-15
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avutil: remove timer.h include from internal.hJanne Grunau2014-01-25
| | | | Added libavutil/timer.h include to all files with {START,STOP}_TIMER.
* eval: Explicitly ignore return value of strtod() in parse_db()Diego Biurrun2013-07-27
| | | | | 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-07
| | | | | | 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-05
|
* Remove pointless #undefs of previously forbidden functions.Anton Khirnov2012-12-04
|
* eval-test: make table static constMans Rullgard2012-10-13
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Don't include common.h from avutil.hMartin Storsjö2012-08-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* eval: fix printing of NaN in eval fate test.Ronald S. Bultje2012-07-26
| | | | | 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-14
|
* eval: fix swapping of lt() and lte()Max Lazarov2012-07-14
| | | | CC: libav-stable@libav.org
* eval: Add the isinf() function and tests for itMartin Storsjö2012-07-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* opt/eval: Include mathematics.h for NAN/INFINITYMartin Storsjö2012-07-01
| | | | | | | 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-21
|
* eval: test isnan(sqrt(-1)) instead of just sqrt(-1)Anton Khirnov2011-09-22
| | | | sqrt(-1) returns "some NaN", it's not specified which exactly.
* eval: implement not() expressionStefano Sabatini2011-09-19
|
* eval: add sqrt function for computing the square rootStefano Sabatini2011-09-19
|
* eval: add missing comma to tests.Ronald S. Bultje2011-07-05
|
* eval: fix memleak.Ronald S. Bultje2011-07-05
|
* eval: clear Parser instances before usingMans Rullgard2011-07-04
| | | | | | | 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-04
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Do not include log.h in avutil.hMans Rullgard2011-07-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Drop unnecessary directory prefixes from #include directives.Diego Biurrun2011-06-07
|
* lavu: remove FF_API_OLD_EVAL_NAMES cruftAnton Khirnov2011-04-19
|
* eval: add support for trunc, ceil, and floor functionsStefano Sabatini2011-04-10
| | | | | 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-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Use hierarchic names convention (prefix them with av_expr) for theStefano Sabatini2010-11-08
| | | | | | | | | 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-03
| | | | 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-01
| | | | | | | | | | 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-01
| | | | Originally committed as revision 25625 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add examples of unary operators.Stefano Sabatini2010-11-01
| | | | Originally committed as revision 25624 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix evaluation of expressions of the form: E1;E2.Stefano Sabatini2010-11-01
| | | | | | | 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-16
| | | | | | 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-16
| | | | | | | | 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-16
| | | | 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-05
API public. Originally committed as revision 23485 to svn://svn.ffmpeg.org/ffmpeg/trunk