On Fri, Dec 07, 2012 at 04:01:29PM -0500, Justin Ruggles wrote:
> --- a/libavutil/lfg.h
> +++ b/libavutil/lfg.h
> @@ -41,6 +43,14 @@ static inline unsigned int av_lfg_get(AVLFG *c){
>
> /**
> + * Get the next random float, in the range -0.5 to 0.5, using an ALFG.
> + */
> +static inline float av_lfg_get_flt(AVLFG *lfg)
> +{
> + return (av_lfg_get(lfg) / (float)UINT32_MAX) - 0.5f;
> +}
Please also document the parameter, we'll never get Doxygen warnings
under control otherwise..
Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel