[FFmpeg-devel] [PATCH] eval: implement not() expression

Víctor Paesa victorpaesa at googlemail.com
Tue May 24 20:22:32 CEST 2011


Hi,

On Mon, May 23, 2011 at 16:47, Stefano Sabatini wrote:
> ---
>  doc/eval.texi    |    3 +++
>  libavutil/eval.c |    8 +++++++-
>  2 files changed, 10 insertions(+), 1 deletions(-)
>
> diff --git a/doc/eval.texi b/doc/eval.texi
> index e07267b..458d15a 100644
> --- a/doc/eval.texi
> +++ b/doc/eval.texi
> @@ -76,6 +76,9 @@ integer. For example, "trunc(-1.5)" is "-1.0".
>  @item sqrt(expr)
>  Compute the square root of @var{expr}. This is equivalent to
>  "(@var{expr})^.5".
> +
> + at item not(expr)
> +Return 1.0 if @var{expr} is zero, 0.0 otherwise.
>  @end table
>
>  Note that:

And now you may remove this paragraph in eval.texi:
"When A evaluates to either 1 or 0, that is the same as

A*B + eq(A,0)*C"

Regards,
Víctor


More information about the ffmpeg-devel mailing list