<?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 Question about ippiCopyManaged_8u_C1R function in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiCopyManaged-8u-C1R-function/m-p/812563#M3992</link>
    <description>Hi &lt;LABEL&gt;&lt;A hoverintent_s="1" jquery1338358208002="57" hoverintent_t="undefined" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=565242" href="http://software.intel.com/en-us/profile/565242/" class="basic"&gt;&lt;STRONG&gt;wesky1984&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;, &lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;The problem is in &lt;STRONG&gt;(Ipp8u)size.width &lt;BR /&gt;&lt;/STRONG&gt;IppStatuserr=ippiCopyManaged_8u_C1R((Ipp8u*)a,&lt;STRONG&gt;(Ipp8u)size.width&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;P class="dlsyntaxpara"&gt;asthe function definition: IppStatus ippiCopyManaged_8u_C1R(const Ipp8u* pSrc, &lt;STRONG&gt;int srcStep&lt;/STRONG&gt;, Ipp8u* pDst, int dstStep, IppiSize roiSize, int flags);&lt;/P&gt;The srsStepBytes is type int .It is the distance in bytes of imagerow.To use (Ipp 8u)will crop the real value of size.width. please delete it. you will get expected result. &lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ying&lt;BR /&gt;&lt;/LABEL&gt;</description>
    <pubDate>Wed, 30 May 2012 06:20:24 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2012-05-30T06:20:24Z</dc:date>
    <item>
      <title>Question about ippiCopyManaged_8u_C1R function</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiCopyManaged-8u-C1R-function/m-p/812562#M3991</link>
      <description>I am trying to copy my own 2D matrix data to ipp8u by usingippiCopyManaged_8u_C1R.&lt;DIV&gt;But it couldn't copy correctly:&lt;/DIV&gt;&lt;DIV&gt;Only the first row of matrix can be copiedproperly. The others are wrong.&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;The following is my code:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;a[size.width*1] is not equal to  ipp_template[step*1], which means copying is wrong.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;Any wrong in my code?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;[cpp]#include &lt;STDIO.H&gt;
#include &lt;STDLIB.H&gt;
#include &lt;TIME.H&gt;
#include &lt;IOSTREAM&gt;
#include "ipp.h"	//use ipp 7.0 library

int main (void){

	  IppiSize size;
	  size.width = 512;		//if it's less than 256, the copying is ok
	  size.height = 10;
	  __declspec(align(32)) unsigned char* a = (unsigned char*)malloc(size.width*size.height);		//2d Matrix data
	  for(int i = 0; i &amp;lt; size.width*size.height; i++)
	  {
		  a&lt;I&gt; = i %255;
	  }

	  int step;
	  Ipp8u *ipp_template = ippiMalloc_8u_C1( size.width, size.height, &amp;amp;step);
	  IppStatus err = ippiCopyManaged_8u_C1R((Ipp8u*)a, (Ipp8u)size.width, ipp_template, step, size, IPP_TEMPORAL_COPY);
	  bool bEqual = (a[size.width*1] == ipp_template[step*1]);	//No equal, why?
	  
	  return 0;
}
[/cpp] &lt;BR /&gt;&lt;/I&gt;&lt;/IOSTREAM&gt;&lt;/TIME.H&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 30 May 2012 02:35:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiCopyManaged-8u-C1R-function/m-p/812562#M3991</guid>
      <dc:creator>wesky1984</dc:creator>
      <dc:date>2012-05-30T02:35:35Z</dc:date>
    </item>
    <item>
      <title>Question about ippiCopyManaged_8u_C1R function</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiCopyManaged-8u-C1R-function/m-p/812563#M3992</link>
      <description>Hi &lt;LABEL&gt;&lt;A hoverintent_s="1" jquery1338358208002="57" hoverintent_t="undefined" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=565242" href="http://software.intel.com/en-us/profile/565242/" class="basic"&gt;&lt;STRONG&gt;wesky1984&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;, &lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;The problem is in &lt;STRONG&gt;(Ipp8u)size.width &lt;BR /&gt;&lt;/STRONG&gt;IppStatuserr=ippiCopyManaged_8u_C1R((Ipp8u*)a,&lt;STRONG&gt;(Ipp8u)size.width&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;P class="dlsyntaxpara"&gt;asthe function definition: IppStatus ippiCopyManaged_8u_C1R(const Ipp8u* pSrc, &lt;STRONG&gt;int srcStep&lt;/STRONG&gt;, Ipp8u* pDst, int dstStep, IppiSize roiSize, int flags);&lt;/P&gt;The srsStepBytes is type int .It is the distance in bytes of imagerow.To use (Ipp 8u)will crop the real value of size.width. please delete it. you will get expected result. &lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ying&lt;BR /&gt;&lt;/LABEL&gt;</description>
      <pubDate>Wed, 30 May 2012 06:20:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiCopyManaged-8u-C1R-function/m-p/812563#M3992</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2012-05-30T06:20:24Z</dc:date>
    </item>
    <item>
      <title>Question about ippiCopyManaged_8u_C1R function</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiCopyManaged-8u-C1R-function/m-p/812564#M3993</link>
      <description>I didn't notice the type before.&lt;DIV&gt;Thank you very much!&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 30 May 2012 09:11:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-ippiCopyManaged-8u-C1R-function/m-p/812564#M3993</guid>
      <dc:creator>wesky1984</dc:creator>
      <dc:date>2012-05-30T09:11:08Z</dc:date>
    </item>
  </channel>
</rss>

