<?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 Silly ippiRGB2Gray conversion bug in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Silly-ippiRGB2Gray-conversion-bug/m-p/795335#M2709</link>
    <description>&lt;P&gt;Hi Rob, &lt;BR /&gt;&lt;BR /&gt;Which IPP version and IPP librariesare you using?&lt;BR /&gt;&lt;BR /&gt;I just try IPP\6.1.1.035\ia32\ static serial libraray. Seem it can get 255 correctly. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ying&lt;/P&gt;&lt;P&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;#include &lt;IPP.H&gt;&lt;BR /&gt;#include &lt;MATH.H&gt;&lt;/MATH.H&gt;&lt;/IPP.H&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;&lt;/P&gt;&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; ippStaticInit();&lt;BR /&gt;// Print the version of ipp being used&lt;BR /&gt; const IppLibraryVersion* lib = ippccGetLibVersion();&lt;BR /&gt; printf("%s %s %d.%d.%d.%d\n", lib-&amp;gt;Name, lib-&amp;gt;Version,lib-&amp;gt;major, lib-&amp;gt;minor, lib-&amp;gt;majorBuild, lib-&amp;gt;build);&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Ipp8u pSrc[6] ={255, 255, 255, 30, 40, 4};&lt;BR /&gt;Ipp8u pDst[6]={0};&lt;BR /&gt;int srcStep=6, dstStep=3;&lt;BR /&gt;IppiSize roiSize={2,1};&lt;/P&gt;&lt;P&gt;ippiRGBToGray_8u_C3C1R(pSrc, srcStep,pDst, dstStep, roiSize);&lt;/P&gt;&lt;P&gt;printf(" output: \n");&lt;BR /&gt;for(int n=0; n&amp;lt;2; ++n) &lt;BR /&gt;{&lt;BR /&gt;printf("%d, %d, %d\n", pDst[n*3],pDst[n*3+1],pDst[n*3+2] );}&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;output: &lt;BR /&gt;&lt;BR /&gt;ippccv8l.lib 6.1 build 137.20 6.1.137.718&lt;BR /&gt;output:&lt;BR /&gt;255, 32, 0&lt;BR /&gt;0, 0, 0&lt;BR /&gt;Press any key to continue . . .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2010 09:09:06 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2010-06-18T09:09:06Z</dc:date>
    <item>
      <title>Silly ippiRGB2Gray conversion bug</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Silly-ippiRGB2Gray-conversion-bug/m-p/795333#M2707</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I noticed that the ippiRGBToGray_8u_AC4C1R and ippiRGBToGray_8u_C3C1R translate RGB(255,255,255) to 254. A rather silly but annoying bug. I now have to rely on a non IPP function to do the conversion. Can this be repaired?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Rob Ottenhoff&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jun 2010 07:09:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Silly-ippiRGB2Gray-conversion-bug/m-p/795333#M2707</guid>
      <dc:creator>Rob_Ottenhoff</dc:creator>
      <dc:date>2010-06-18T07:09:48Z</dc:date>
    </item>
    <item>
      <title>Silly ippiRGB2Gray conversion bug</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Silly-ippiRGB2Gray-conversion-bug/m-p/795334#M2708</link>
      <description>Hi Rob,&lt;BR /&gt;&lt;BR /&gt;What version of IPP do you use? And also might be important to know what was the processor and OS you are run on. We need that info to reproduce issue.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt; Vladimir</description>
      <pubDate>Fri, 18 Jun 2010 08:58:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Silly-ippiRGB2Gray-conversion-bug/m-p/795334#M2708</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2010-06-18T08:58:34Z</dc:date>
    </item>
    <item>
      <title>Silly ippiRGB2Gray conversion bug</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Silly-ippiRGB2Gray-conversion-bug/m-p/795335#M2709</link>
      <description>&lt;P&gt;Hi Rob, &lt;BR /&gt;&lt;BR /&gt;Which IPP version and IPP librariesare you using?&lt;BR /&gt;&lt;BR /&gt;I just try IPP\6.1.1.035\ia32\ static serial libraray. Seem it can get 255 correctly. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ying&lt;/P&gt;&lt;P&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;#include &lt;IPP.H&gt;&lt;BR /&gt;#include &lt;MATH.H&gt;&lt;/MATH.H&gt;&lt;/IPP.H&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;&lt;/P&gt;&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; ippStaticInit();&lt;BR /&gt;// Print the version of ipp being used&lt;BR /&gt; const IppLibraryVersion* lib = ippccGetLibVersion();&lt;BR /&gt; printf("%s %s %d.%d.%d.%d\n", lib-&amp;gt;Name, lib-&amp;gt;Version,lib-&amp;gt;major, lib-&amp;gt;minor, lib-&amp;gt;majorBuild, lib-&amp;gt;build);&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Ipp8u pSrc[6] ={255, 255, 255, 30, 40, 4};&lt;BR /&gt;Ipp8u pDst[6]={0};&lt;BR /&gt;int srcStep=6, dstStep=3;&lt;BR /&gt;IppiSize roiSize={2,1};&lt;/P&gt;&lt;P&gt;ippiRGBToGray_8u_C3C1R(pSrc, srcStep,pDst, dstStep, roiSize);&lt;/P&gt;&lt;P&gt;printf(" output: \n");&lt;BR /&gt;for(int n=0; n&amp;lt;2; ++n) &lt;BR /&gt;{&lt;BR /&gt;printf("%d, %d, %d\n", pDst[n*3],pDst[n*3+1],pDst[n*3+2] );}&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;output: &lt;BR /&gt;&lt;BR /&gt;ippccv8l.lib 6.1 build 137.20 6.1.137.718&lt;BR /&gt;output:&lt;BR /&gt;255, 32, 0&lt;BR /&gt;0, 0, 0&lt;BR /&gt;Press any key to continue . . .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2010 09:09:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Silly-ippiRGB2Gray-conversion-bug/m-p/795335#M2709</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2010-06-18T09:09:06Z</dc:date>
    </item>
    <item>
      <title>Silly ippiRGB2Gray conversion bug</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Silly-ippiRGB2Gray-conversion-bug/m-p/795336#M2710</link>
      <description>Hi Ying,vladimir,&lt;BR /&gt;&lt;BR /&gt;I use IPP 6.1.5 (the latest). The processor is an Intel i7. The OS is windows 7 64bit. But I compile 32bit.&lt;BR /&gt;I link dynamically.&lt;BR /&gt;&lt;BR /&gt;The test code below shows the complete output buffer is filled with 254.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Rob&lt;BR /&gt;&lt;BR /&gt;Here is test code that reprocudes the issue:&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; // Print the version of ipp being used&lt;BR /&gt; const IppLibraryVersion* lib = ippccGetLibVersion();&lt;BR /&gt; printf("%s %s %d.%d.%d.%d\n", lib-&amp;gt;Name, lib-&amp;gt;Version,lib-&amp;gt;major, lib-&amp;gt;minor, lib-&amp;gt;majorBuild, lib-&amp;gt;build);&lt;BR /&gt;&lt;BR /&gt; Ipp8u pSrc[320*240*4];&lt;BR /&gt; for ( int i = 0; i &amp;lt; 240; ++i )&lt;BR /&gt; {&lt;BR /&gt; for ( int j = 0; j &amp;lt; 320; ++j )&lt;BR /&gt; {&lt;BR /&gt; pSrc[4*320*i+4*j] = 255;&lt;BR /&gt; pSrc[4*320*i+4*j+1] = 255;&lt;BR /&gt; pSrc[4*320*i+4*j+2] = 255;&lt;BR /&gt; pSrc[4*320*i+4*j+3] = 0;&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; Ipp8u pDst[320*240];&lt;BR /&gt; IppiSize roiSize={320,240};&lt;BR /&gt;&lt;BR /&gt; ippiRGBToGray_8u_AC4C1R(pSrc, 320*4, pDst, 320, roiSize);&lt;BR /&gt; // whole dst buffer is filled with 0xfe;&lt;BR /&gt; &lt;BR /&gt; int b254count = 0; &lt;BR /&gt; for ( int i = 0; i &amp;lt; 240; ++i )&lt;BR /&gt; {&lt;BR /&gt; for ( int j = 0; j &amp;lt; 320; ++j )&lt;BR /&gt; {&lt;BR /&gt; if ( pDst[i*320+j] == 254 )&lt;BR /&gt; {&lt;BR /&gt; b254count++;&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; printf("254's found : %d\n", b254count ); &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;output:&lt;BR /&gt;ippccp8-6.1.dll+ 6.1 build 137.36 6.1.137.734&lt;BR /&gt;254's found : 76800&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jun 2010 10:48:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Silly-ippiRGB2Gray-conversion-bug/m-p/795336#M2710</guid>
      <dc:creator>Rob_Ottenhoff</dc:creator>
      <dc:date>2010-06-18T10:48:33Z</dc:date>
    </item>
    <item>
      <title>Silly ippiRGB2Gray conversion bug</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Silly-ippiRGB2Gray-conversion-bug/m-p/795337#M2711</link>
      <description>Hi Rob, &lt;BR /&gt;&lt;BR /&gt;Thanks a lot. I can reproduce the problem if run on an Core i7 machine with IPP 6.x &lt;BR /&gt;&lt;BR /&gt;But i happen to IPP 7.0 beta installed on same machine. So try IPP 7.0 beta 32bit dynamic library too. &lt;BR /&gt;The result looks fine, &lt;BR /&gt;ippccp8-7.0.dll+ 7.0 beta build 183.15 7.0.183.899&lt;BR /&gt;254's found : 0.&lt;BR /&gt;&lt;BR /&gt;Would you like to try IPP 7.0 beta? here is 7.0 beta program page: &lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/intel-integrated-performance-primitives-intel-ipp-70-beta-program-homepage/"&gt;&lt;B&gt;Intel Integrated Performance Primitives 7.0 Beta Program&lt;/B&gt;&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;I will escalate the issue, hope the fix keep when 7.0 gold release. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ying</description>
      <pubDate>Thu, 08 Jul 2010 06:45:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Silly-ippiRGB2Gray-conversion-bug/m-p/795337#M2711</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2010-07-08T06:45:42Z</dc:date>
    </item>
  </channel>
</rss>

