[FFmpeg-devel] [PATCH] eval: add support for a round function

Stefano Sabatini stefano.sabatini-lala at poste.it
Mon Apr 4 23:36:12 CEST 2011


On date Wednesday 2011-03-30 23:49:03 +0200, Michael Niedermayer encoded:
> On Wed, Mar 30, 2011 at 10:42:05PM +0200, Stefano Sabatini wrote:
> > ---
> >  doc/eval.texi    |    9 +++++++++
> >  libavutil/eval.c |   23 +++++++++++++++++++++--
> >  2 files changed, 30 insertions(+), 2 deletions(-)
> > 
> > diff --git a/doc/eval.texi b/doc/eval.texi
> > index 99cd034..b29e61d 100644
> > --- a/doc/eval.texi
> > +++ b/doc/eval.texi
> > @@ -60,6 +60,15 @@ The function returns the loaded value.
> >  Evaluate expression @var{expr} while the expression @var{cond} is
> >  non-zero, and returns the value of the last @var{expr} evaluation, or
> >  NAN if @var{cond} was always false.
> > +
> > + at item round(expr1, expr2)
> > +Round the value of expression @var{expr1} to a multiple of
> > + at var{expr2}.
> 
> i think round() should be C round() or we will all become very
> confused

Updated, round() dropped in favor of ceil/trunc/floor.
-- 
FFmpeg = Fabulous and Fiendish MultiPurpose Elastic Gymnast
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-eval-add-support-for-trunc-ceil-and-floor-functions.patch
Type: text/x-diff
Size: 3610 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110404/7d3a4074/attachment.bin>


More information about the ffmpeg-devel mailing list