lavu/eval: add if() and ifnot() eval functions
authorStefano Sabatini <stefasab@gmail.com>
Sun, 15 Jan 2012 21:59:42 +0000 (22:59 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Tue, 17 Jan 2012 11:03:30 +0000 (12:03 +0100)
commit999495734b9de597f59590708979902f28ebce61
tree5d7bf9d6735a8aea4b5d93f8ed481eed738fc950
parenta798c20a76196d76db27f7446ab90f8062f3c4eb
lavu/eval: add if() and ifnot() eval functions

They allow to implement the if/then/else logic, which cannot be
implemented otherwise.

For example the expression:
A*B + not(A)*C

always evaluates to NaN if B is NaN, even in the case where A is 0.
doc/eval.texi
libavutil/avutil.h
libavutil/eval.c
tests/ref/fate/eval