<div dir="ltr"># HG changeset patch<br># User Akil Ayyappan<<a href="mailto:akil@multicorewareinc.com">akil@multicorewareinc.com</a>><br># Date 1563881631 -19800<br>#      Tue Jul 23 17:03:51 2019 +0530<br># Node ID 747a67aa9aa551d611e78e3362bffaf749d2778a<br># Parent  459d3822c608948d9c15322b770f7f9b7e2a233e<br>Fix Win VC-11 build errors<br><br>diff -r 459d3822c608 -r 747a67aa9aa5 source/encoder/slicetype.cpp<br>--- a/source/encoder/slicetype.cpp       Fri Jul 26 10:53:09 2019 +0530<br>+++ b/source/encoder/slicetype.cpp      Tue Jul 23 17:03:51 2019 +0530<br>@@ -137,16 +137,16 @@<br>     }<br> <br> #if HIGH_BIT_DEPTH //10-bit build<br>-    float_t threshold = 1023;<br>+    float threshold = 1023;<br>     pixel whitePixel = 1023;<br> #else<br>-    float_t threshold = 255;<br>+    float threshold = 255;<br>     pixel whitePixel = 255;<br> #endif<br> #define PI 3.14159265 <br> <br>-    float_t gradientH = 0, gradientV = 0, radians = 0, theta = 0;<br>-    float_t gradientMagnitude = 0;<br>+    float gradientH = 0, gradientV = 0, radians = 0, theta = 0;<br>+    float gradientMagnitude = 0;<br>     pixel blackPixel = 0;<br>     edgePic = pic1 + curFrame->m_fencPic->m_lumaMarginY * stride + curFrame->m_fencPic->m_lumaMarginX;<br>     //Applying Sobel filter on the gaussian filtered picture<br>@@ -167,12 +167,12 @@<br>                 const intptr_t rowThree = (rowNum + 1)*stride, colThree = colNum + 1;<br>                 const intptr_t index = (rowNum*stride) + colNum;<br> <br>-                gradientH = (float_t)(-3 * refPic[rowOne + colOne] + 3 * refPic[rowOne + colThree] - 10 * refPic[rowTwo + colOne] + 10 * refPic[rowTwo + colThree] - 3 * refPic[rowThree + colOne] + 3 * refPic[rowThree + colThree]);<br>-                gradientV = (float_t)(-3 * refPic[rowOne + colOne] - 10 * refPic[rowOne + colTwo] - 3 * refPic[rowOne + colThree] + 3 * refPic[rowThree + colOne] + 10 * refPic[rowThree + colTwo] + 3 * refPic[rowThree + colThree]);<br>+                gradientH = (float)(-3 * refPic[rowOne + colOne] + 3 * refPic[rowOne + colThree] - 10 * refPic[rowTwo + colOne] + 10 * refPic[rowTwo + colThree] - 3 * refPic[rowThree + colOne] + 3 * refPic[rowThree + colThree]);<br>+                gradientV = (float)(-3 * refPic[rowOne + colOne] - 10 * refPic[rowOne + colTwo] - 3 * refPic[rowOne + colThree] + 3 * refPic[rowThree + colOne] + 10 * refPic[rowThree + colTwo] + 3 * refPic[rowThree + colThree]);<br> <br>                 gradientMagnitude = sqrtf(gradientH * gradientH + gradientV * gradientV);<br>                 radians = atan2(gradientV, gradientH);<br>-                theta = (float_t)((radians * 180) / PI);<br>+                theta = (float)((radians * 180) / PI);<br>                 if (theta < 0)<br>                     theta = 180 + theta;<br>                 edgeTheta[(rowNum*stride) + colNum] = (pixel)theta;<br></div>