[FFmpeg-devel] [PATCH] Box-Muller gaussian generator
Stefano Sabatini
stefano.sabatini-lala
Sat Dec 12 15:01:44 CET 2009
On date Friday 2009-12-11 22:09:20 +0100, Michael Niedermayer encoded:
> On Fri, Dec 11, 2009 at 08:38:35PM +0100, Stefano Sabatini wrote:
[...]
> > Updated patch.
> [...]
>
>
> > +#undef printf
> > +
> [...]
> > }
> > av_log(NULL, AV_LOG_ERROR, "final value:%X\n", x);
> [...]
> > + printf("%f\n%f\n",
>
> please dont do this
Fixed.
> [...]
> > Index: libavfilter-soc/ffmpeg/libavutil/lfg.h
> > ===================================================================
> > --- libavfilter-soc.orig/ffmpeg/libavutil/lfg.h 2009-12-11 20:28:37.000000000 +0100
> > +++ libavfilter-soc/ffmpeg/libavutil/lfg.h 2009-12-11 20:35:26.000000000 +0100
> > @@ -51,4 +51,12 @@
> > return c->state[c->index++ & 63] = 2*a*b+a+b;
> > }
> >
> > +/**
> > + * Returns the next number generated by a Box-Muller generator using
> > + * the random number issued by lfg.
> > + *
> > + * @param out[2] array where are placed the two generated numbers
>
> I think you should mention something about gaussian distributions
Done.
Regards.
--
FFmpeg = Freak & Faboulous Moronic Philosophical Entertaining Geek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implement-bmg.patch
Type: text/x-diff
Size: 1913 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091212/8830c0f4/attachment.patch>
More information about the ffmpeg-devel
mailing list