[FFmpeg-devel] [PATCH] lavu/eval: add ifzero() and ifnonzero() expression

Stefano Sabatini stefasab at gmail.com
Mon Jan 16 00:52:43 CET 2012


On date Sunday 2012-01-15 23:08:55 +0100, Stefano Sabatini encoded:
> 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    |   19 ++++++++++++-------
>  libavutil/eval.c |    8 ++++++++
>  2 files changed, 20 insertions(+), 7 deletions(-)

Documentation re-edited with a few fixes.
-- 
FFmpeg = Fancy Faithful Mere Portentous Ephemeral Guru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-lavu-eval-add-ifzero-and-ifnonzero-expression.patch
Type: text/x-diff
Size: 3367 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120116/745fb1c4/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-doc-eval.texi-add-precisation-about-the-assumption-f.patch
Type: text/x-diff
Size: 733 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120116/745fb1c4/attachment-0001.bin>


More information about the ffmpeg-devel mailing list