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

Stefano Sabatini stefano.sabatini-lala at poste.it
Wed May 25 12:57:34 CEST 2011


On date Tuesday 2011-05-24 20:22:32 +0200, Víctor Paesa encoded:
> 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"

Yes, pushed with that change.
-- 
FFmpeg = Fancy and Faithful Martial Perennial Energized God


More information about the ffmpeg-devel mailing list