projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4bbd8f0
)
avfilter/vf_idet: use exp2()
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 3 Nov 2014 16:22:33 +0000
(17:22 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 3 Nov 2014 16:22:33 +0000
(17:22 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_idet.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_idet.c
b/libavfilter/vf_idet.c
index
a059565
..
40b2616
100644
(file)
--- 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;