<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 28, 2017 at 10:25 PM, chen <span dir="ltr"><<a href="mailto:chenm003@163.com" target="_blank">chenm003@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>From 360c25c6198e7aaa3a9f0ad611d99f<wbr>94a1ea6347 Mon Sep 17 00:00:00 2001</div><div>From: Min Chen <<a href="mailto:chenm003@163.com" target="_blank">chenm003@163.com</a>></div><div>Date: Wed, 28 Jun 2017 11:54:05 -0500</div><div>Subject: [PATCH] fix build error on VS2008 ( ambiguous on pow() )</div></div></blockquote><div><br></div><div>Pushed into default branch.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div><br></div><div>---</div><div> source/encoder/slicetype.cpp |    3 ++-</div><div> 1 files changed, 2 insertions(+), 1 deletions(-)</div><div><br></div><div>diff --git a/source/encoder/slicetype.cpp b/source/encoder/slicetype.cpp</div><div>index b013335..d7638a4 100644</div><div>--- a/source/encoder/slicetype.cpp</div><div>+++ b/source/encoder/slicetype.cpp</div><div>@@ -1819,7 +1819,8 @@ void Lookahead::<wbr>calcMotionAdaptiveQuantFrame(<wbr>Lowres **frames, int p0, int p1, in</div><div>                     MV *mvs = frames[b]->lowresMvs[list][<wbr>listDist[list]];</div><div>                     int32_t x = mvs[cuIndex].x;</div><div>                     int32_t y = mvs[cuIndex].y;</div><div>-                    displacement += sqrt(pow(abs(x), 2) + pow(abs(y), 2));</div><div>+                    // NOTE: the dynamic range of abs(x) and abs(y) is 15-bits</div><div>+                    displacement += sqrt((double)(abs(x) * abs(x)) + (double)(abs(y) * abs(y)));</div><div>                 }</div><div>                 else</div><div>                     displacement += 0.0;</div><span class="HOEnZb"><font color="#888888"><div>-- </div><div>1.7.9.msysgit.0</div><div><br></div></font></span></div><br>______________________________<wbr>_________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/<wbr>listinfo/x265-devel</a><br>
<br></blockquote></div><br></div></div>