<?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 the IPP v.8.1 manual has been in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Error-in-ippiSampleLine-Documentation-example/m-p/975654#M20952</link>
    <description>&lt;P&gt;the IPP v.8.1 manual has been changed and doesn't contain this error. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;We will update the version of manual you pointed. thanks for the issue.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Apr 2014 07:51:14 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2014-04-11T07:51:14Z</dc:date>
    <item>
      <title>Error in ippiSampleLine Documentation example</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Error-in-ippiSampleLine-Documentation-example/m-p/975651#M20949</link>
      <description>&lt;P&gt;The ippiSampleLine documentation has a significant error that left me very confused as to how this method works. I'm not sure of the appropriate place to report these errors, so I hope someone from Intel sees it here.&lt;/P&gt;

&lt;P&gt;The sample code is:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;void func_sampleline()
{
    Ipp8u pSrc[5*4] = { 0, 1, 2, 3, 4,
                        5, 6, 7, 8, 9,
                        0, 9, 8, 7, 6,
                        5, 4, 3, 2, 1 };
    IppiSize roiSize = {5, 4};
    IppiPoint pt1 = {1, 1};
    IppiPoint pt2 = {2, 3};
    Ipp8u pDst[3];
    int srcStep = 8*sizeof(Ipp8u);
		
    ippiSampleLine_8u_C1R( pSrc, srcStep, roiSize, pDst, pt1, pt2 );
}&lt;/PRE&gt;

&lt;P&gt;And the sample output is given as:&amp;nbsp;&lt;SPAN style="color: rgb(51, 51, 51); font-family: Helvetica, sans-serif; font-size: 16px; line-height: 24px;"&gt;9 3 18&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;It &amp;nbsp;shouldn't be possible to get 18 as the output, since the value 18 doesn't appear in the input pSrc data. This led me to think I didn't understand what this method was supposed to do. Eventually after running the sample myself, I discovered that this 18 is just whatever value happened to be in the pDst buffer. The reason this occurred is the&amp;nbsp;&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;srcStep&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif;"&gt;8*sizeof(Ipp8u) &lt;/SPAN&gt;is&amp;nbsp;incorrect. The step of pSrc as created is clearly 5, not 8. Changing the srcStep value to the correct value yields the intended output of: &lt;SPAN style="color: rgb(51, 51, 51); font-family: Helvetica, sans-serif; font-size: 16px; line-height: 24px;"&gt;6 9 3&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2014 16:20:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Error-in-ippiSampleLine-Documentation-example/m-p/975651#M20949</guid>
      <dc:creator>Derek_J_</dc:creator>
      <dc:date>2014-04-09T16:20:12Z</dc:date>
    </item>
    <item>
      <title>1)</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Error-in-ippiSampleLine-Documentation-example/m-p/975652#M20950</link>
      <description>&lt;P&gt;1)&lt;/P&gt;

&lt;P&gt;This forum is the good place to report the issue too or &amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;you can put your report to the IPS -&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;A href="http://software.intel.com/en-us/articles/new-intel-premier-support" target="_blank"&gt;http://software.intel.com/en-us/articles/new-intel-premier-support&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;2) the only error I see in the example from documentation --&amp;nbsp;&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; background-color: rgb(238, 238, 238); color: rgb(51, 51, 51); line-height: 14.666666030883789px;"&gt;printf("%Result: &lt;/SPAN&gt;&lt;STRONG style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; color: rgb(51, 51, 51); line-height: 14.666666030883789px;"&gt;d,&lt;/STRONG&gt;&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; background-color: rgb(238, 238, 238); color: rgb(51, 51, 51); line-height: 14.666666030883789px;"&gt; %d, %d\n", pDst[0], pDst[1], pDst[2] );&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; background-color: rgb(238, 238, 238); color: rgb(51, 51, 51); line-height: 14.666666030883789px;"&gt;this misprint would be fix.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;3) you set the incorrect src step and do you expect the correct results? in the case like you use -- 8*sizeof(Ipp8u), you will out of memory and the output results would be different ...&amp;nbsp;&lt;/P&gt;

&lt;P&gt;when &amp;nbsp;the srcstep set the correct value - all results correct.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2014 04:14:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Error-in-ippiSampleLine-Documentation-example/m-p/975652#M20950</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-04-10T04:14:03Z</dc:date>
    </item>
    <item>
      <title>Quote:Gennady Fedorov (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Error-in-ippiSampleLine-Documentation-example/m-p/975653#M20951</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Gennady Fedorov (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;2) the only error I see in the example from documentation --&amp;nbsp;printf("%Result: &lt;STRONG&gt;d,&lt;/STRONG&gt; %d, %d\n", pDst[0], pDst[1], pDst[2] );&lt;/P&gt;

&lt;P&gt;this misprint would be fix.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I was referring to the documentation at:&amp;nbsp;&lt;A href="http://software.intel.com/sites/products/documentation/hpc/ipp/ippi/ippi_ch4/functn_SampleLine.html"&gt;http://software.intel.com/sites/products/documentation/hpc/ipp/ippi/ippi_ch4/functn_SampleLine.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;which has the incorrect srcStep of 8 and corresponding incorrect results.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2014 14:47:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Error-in-ippiSampleLine-Documentation-example/m-p/975653#M20951</guid>
      <dc:creator>Derek_J_</dc:creator>
      <dc:date>2014-04-10T14:47:02Z</dc:date>
    </item>
    <item>
      <title>the IPP v.8.1 manual has been</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Error-in-ippiSampleLine-Documentation-example/m-p/975654#M20952</link>
      <description>&lt;P&gt;the IPP v.8.1 manual has been changed and doesn't contain this error. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;We will update the version of manual you pointed. thanks for the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2014 07:51:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Error-in-ippiSampleLine-Documentation-example/m-p/975654#M20952</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-04-11T07:51:14Z</dc:date>
    </item>
  </channel>
</rss>

