[FFmpeg-cvslog] avfilter/vf_idet: use exp2()

Pascal Massimino pascal.massimino at gmail.com
Tue Nov 4 08:01:27 CET 2014


On Mon, Nov 3, 2014 at 8:33 AM, Michael Niedermayer <git at videolan.org>
wrote:

> ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon
> Nov  3 17:22:33 2014 +0100| [898635ad9ec9cadc3c45b61fba97a471f2be7d27] |
> committer: Michael Niedermayer
>
> avfilter/vf_idet: use exp2()
>

lgtm


>
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
>
> >
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=898635ad9ec9cadc3c45b61fba97a471f2be7d27
> ---
>
>  libavfilter/vf_idet.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
> index a059565..40b2616 100644
> --- a/libavfilter/vf_idet.c
> +++ b/libavfilter/vf_idet.c
> @@ -324,7 +324,7 @@ static av_cold int init(AVFilterContext *ctx)
>      memset(idet->history, UNDETERMINED, HIST_SIZE);
>
>      if( idet->half_life > 0 )
> -        idet->decay_coefficient = (uint64_t) round( PRECISION *
> pow(2.0,-1.0 / idet->half_life) );
> +        idet->decay_coefficient = (uint64_t) round( PRECISION * exp2(-1.0
> / idet->half_life) );
>      else
>          idet->decay_coefficient = PRECISION;
>
>
> _______________________________________________
> ffmpeg-cvslog mailing list
> ffmpeg-cvslog at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
>


More information about the ffmpeg-cvslog mailing list