<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem using ippiCrossCorrNormGetBufferSize - negative buffer size! (Ipp 8.1) in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-using-ippiCrossCorrNormGetBufferSize-negative-buffer/m-p/1038316#M23767</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;the buffer size returned by&amp;nbsp;ippiCrossCorrNormGetBufferSize is negative, if the size of the source roi is greater than ~33488896.&lt;/P&gt;

&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;Within the following ranges,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;buffer&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;size&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is calculated&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;correctly&lt;/SPAN&gt;&lt;/SPAN&gt;:&lt;/P&gt;

&lt;P&gt;if w &amp;lt;= 511 then h &amp;lt;= 65536&lt;/P&gt;

&lt;P&gt;if w &amp;lt;= 1023 then h &amp;lt;= 32768&lt;/P&gt;

&lt;P&gt;if w &amp;lt;= 2047 then h &amp;lt;= 16384&lt;/P&gt;

&lt;P&gt;if w &amp;lt;= 4095 then h &amp;lt;= 8192&lt;/P&gt;

&lt;P&gt;if w &amp;lt;= 8191 then h &amp;lt;= 4096&lt;/P&gt;

&lt;P&gt;if w &amp;lt;= 16383 then h &amp;lt;= 2048&lt;/P&gt;

&lt;P&gt;Sometimes the function "recovers" and returns positive values again. E. g. if w &amp;lt;= 2047 and h &amp;gt; 32768 it returns positives values again.&lt;/P&gt;

&lt;P&gt;Can you confirm this bug (Ipp 8.1)? Will this problem be fixed in the near future? Is there a quick workaround calculating the buffer size?&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Uta&lt;/P&gt;</description>
    <pubDate>Tue, 28 Oct 2014 09:27:04 GMT</pubDate>
    <dc:creator>Uta_M_</dc:creator>
    <dc:date>2014-10-28T09:27:04Z</dc:date>
    <item>
      <title>Problem using ippiCrossCorrNormGetBufferSize - negative buffer size! (Ipp 8.1)</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-using-ippiCrossCorrNormGetBufferSize-negative-buffer/m-p/1038316#M23767</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;the buffer size returned by&amp;nbsp;ippiCrossCorrNormGetBufferSize is negative, if the size of the source roi is greater than ~33488896.&lt;/P&gt;

&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;Within the following ranges,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;buffer&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;size&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is calculated&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;correctly&lt;/SPAN&gt;&lt;/SPAN&gt;:&lt;/P&gt;

&lt;P&gt;if w &amp;lt;= 511 then h &amp;lt;= 65536&lt;/P&gt;

&lt;P&gt;if w &amp;lt;= 1023 then h &amp;lt;= 32768&lt;/P&gt;

&lt;P&gt;if w &amp;lt;= 2047 then h &amp;lt;= 16384&lt;/P&gt;

&lt;P&gt;if w &amp;lt;= 4095 then h &amp;lt;= 8192&lt;/P&gt;

&lt;P&gt;if w &amp;lt;= 8191 then h &amp;lt;= 4096&lt;/P&gt;

&lt;P&gt;if w &amp;lt;= 16383 then h &amp;lt;= 2048&lt;/P&gt;

&lt;P&gt;Sometimes the function "recovers" and returns positive values again. E. g. if w &amp;lt;= 2047 and h &amp;gt; 32768 it returns positives values again.&lt;/P&gt;

&lt;P&gt;Can you confirm this bug (Ipp 8.1)? Will this problem be fixed in the near future? Is there a quick workaround calculating the buffer size?&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Uta&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2014 09:27:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-using-ippiCrossCorrNormGetBufferSize-negative-buffer/m-p/1038316#M23767</guid>
      <dc:creator>Uta_M_</dc:creator>
      <dc:date>2014-10-28T09:27:04Z</dc:date>
    </item>
    <item>
      <title>Hi Uta,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-using-ippiCrossCorrNormGetBufferSize-negative-buffer/m-p/1038317#M23768</link>
      <description>&lt;P&gt;Hi Uta,&lt;/P&gt;

&lt;P&gt;thank you for reporting this - this is the real bug due to int limitation...The issue has been already fixed - the fixed version will be available in the next IPP release. Anyway the "huge" sizes will not be supported - the GetSize function will track int overflow during the&amp;nbsp;buffer size calculation and return bad status in case of overflow (&lt;SPAN lang="EN-US" style="font-family: &amp;quot;Arial CYR&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;FONT color="#000000"&gt;ippStsExceededSizeErr). This is current IPP API limitation, for rather big sizes please use slices-based approach.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;quot;Arial CYR&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;FONT color="#000000"&gt;regards, Igor&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 13:08:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-using-ippiCrossCorrNormGetBufferSize-negative-buffer/m-p/1038317#M23768</guid>
      <dc:creator>Igor_A_Intel</dc:creator>
      <dc:date>2014-11-05T13:08:21Z</dc:date>
    </item>
    <item>
      <title>Hi Igor,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-using-ippiCrossCorrNormGetBufferSize-negative-buffer/m-p/1038318#M23769</link>
      <description>&lt;P&gt;Hi Igor,&lt;/P&gt;

&lt;P&gt;what is the next IPP release? 8.2 update1, 8.3 or 9?&lt;/P&gt;

&lt;P&gt;Is there a workaround for this problem?&lt;/P&gt;

&lt;P&gt;Best regards&lt;/P&gt;

&lt;P&gt;Uta&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2014 11:33:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-using-ippiCrossCorrNormGetBufferSize-negative-buffer/m-p/1038318#M23769</guid>
      <dc:creator>Uta_M_</dc:creator>
      <dc:date>2014-11-06T11:33:27Z</dc:date>
    </item>
    <item>
      <title>Hi Uta,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-using-ippiCrossCorrNormGetBufferSize-negative-buffer/m-p/1038319#M23770</link>
      <description>&lt;P&gt;Hi Uta,&lt;/P&gt;

&lt;P&gt;the buffer size calculation for this function is rather complicated and depends on many factors such as source and template size, type of correlation, type of normalization and type of method used - about 200 lines of code. My first intention was to publish here this code - but it is not enough as in this case this code requires several internal IPP headers and structures, and you know - IPP is not open source... As a workaround I can only suggest to check the sign of the buffer size and consider it erroneous if it is &amp;lt; 0... Another workaround is to use temporally "old" deprecated APIs - they will be supported till the same next IPP version where this bug&amp;nbsp;has been already fixed - IPP 9.0&amp;nbsp;(~H2'15).&lt;/P&gt;

&lt;P&gt;regards, Igor&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2014 09:06:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problem-using-ippiCrossCorrNormGetBufferSize-negative-buffer/m-p/1038319#M23770</guid>
      <dc:creator>Igor_A_Intel</dc:creator>
      <dc:date>2014-11-07T09:06:37Z</dc:date>
    </item>
  </channel>
</rss>

