<?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 Re: Copy a 8u_C2 image in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Copy-a-8u-C2-image/m-p/959089#M19489</link>
    <description>So, I use the following to allocate space for an YUV422 image (which is Y U Y V Y U ...):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;dst = ippiMalloc_8u_C2( width, height, &amp;amp;this-&amp;gt;imgStep_ );&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and my idea, was to use the following to copy the data (this-&amp;gt;imgStep_ contains width and height):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; ippiCopy_8u_C2R( src, srcStep, dst,&lt;BR /&gt;&lt;BR /&gt;                  this-&amp;gt;imgStep_, this-&amp;gt;imgSize_ );&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If I want to use ippiCopy_8u_C3, can I simply do&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; ippiCopy_8u_C2R( src, srcStep, dst,&lt;BR /&gt;&lt;BR /&gt;                  this-&amp;gt;imgStep_, this-&amp;gt;imgSize_ );&lt;BR /&gt;&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Consider src and dst to have the same step, the same format.&lt;P&gt;Message Edited by costelha on &lt;SPAN class="date_text"&gt;12-09-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;07:21 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2005 23:20:28 GMT</pubDate>
    <dc:creator>costelha1</dc:creator>
    <dc:date>2005-12-09T23:20:28Z</dc:date>
    <item>
      <title>Copy a 8u_C2 image</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Copy-a-8u-C2-image/m-p/959087#M19487</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This might seem a little stupid, but I don't really see how to do it.&lt;BR /&gt;&lt;BR /&gt;I have an YUV422 image which I got from somewhere. In my program I used ippiMalloc_8u_C2 to create space to get a copy of the received image. I thought I would use ippiCopy_8u_C2 to save a copy of the received image to my self, but there is no such function.&lt;BR /&gt;&lt;BR /&gt;How can I solve this?</description>
      <pubDate>Tue, 06 Dec 2005 03:21:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Copy-a-8u-C2-image/m-p/959087#M19487</guid>
      <dc:creator>costelha1</dc:creator>
      <dc:date>2005-12-06T03:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a 8u_C2 image</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Copy-a-8u-C2-image/m-p/959088#M19488</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;there is no any magic in ippiCopy function, so if you know size of data you can use every copy function (memcpy, ippsCopy, ippiCopy_8u_C1). You just need to set up arguments of these functions accordingly.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Dec 2005 22:44:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Copy-a-8u-C2-image/m-p/959088#M19488</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2005-12-09T22:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a 8u_C2 image</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Copy-a-8u-C2-image/m-p/959089#M19489</link>
      <description>So, I use the following to allocate space for an YUV422 image (which is Y U Y V Y U ...):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;dst = ippiMalloc_8u_C2( width, height, &amp;amp;this-&amp;gt;imgStep_ );&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and my idea, was to use the following to copy the data (this-&amp;gt;imgStep_ contains width and height):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; ippiCopy_8u_C2R( src, srcStep, dst,&lt;BR /&gt;&lt;BR /&gt;                  this-&amp;gt;imgStep_, this-&amp;gt;imgSize_ );&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If I want to use ippiCopy_8u_C3, can I simply do&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; ippiCopy_8u_C2R( src, srcStep, dst,&lt;BR /&gt;&lt;BR /&gt;                  this-&amp;gt;imgStep_, this-&amp;gt;imgSize_ );&lt;BR /&gt;&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Consider src and dst to have the same step, the same format.&lt;P&gt;Message Edited by costelha on &lt;SPAN class="date_text"&gt;12-09-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;07:21 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2005 23:20:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Copy-a-8u-C2-image/m-p/959089#M19489</guid>
      <dc:creator>costelha1</dc:creator>
      <dc:date>2005-12-09T23:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a 8u_C2 image</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Copy-a-8u-C2-image/m-p/959090#M19490</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;there is no real necessety for all this special functions, like ippiMalloc_8u_C2, ippiCopy_8u_C2, if you are able to do all of this with just C malloc andmemcpy you also will be able to do this with ippMalloc and ippiCopy_8u_C1 (or even ippsCopy_8u). These functionsexists only to allow youto simplify somehow your source code, but actually they do not contains any magic inside.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;IppiSize roi;

roi.width  = width * 2; // we can consider 422 images as 1 channels image with doubled width
roi.height = height;

ippiCopy_8u_C1(pSrc, srcStep, pDst, dstStep, roi);&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 10 Dec 2005 00:27:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Copy-a-8u-C2-image/m-p/959090#M19490</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2005-12-10T00:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a 8u_C2 image</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Copy-a-8u-C2-image/m-p/959091#M19491</link>
      <description>I understood that there is nothing speccial about ippiMalloc functions. My purpose in using these functions in the code is to keep it clear, since I need to make sure that if someone needs to work with my code, it will understand it easily.&lt;BR /&gt;&lt;BR /&gt;Using functions that are not the right ones, even if they make the job right, is not good practice for code that needs to change hands from time to time.&lt;BR /&gt;&lt;BR /&gt;So, even if you had just added&lt;BR /&gt;&lt;BR /&gt;#define ippiCopy_8u_C2(pSrc, srcStep, pDst, dstStep, roi) ippiCopy_8u_C1(pSrc, srcStep, pDst, dstStep, roi)&lt;BR /&gt;&lt;BR /&gt;with something more to adjust the steps and widths, it would be fine by me, and it would be useful, even if just to keep the code more readable.&lt;BR /&gt;&lt;BR /&gt;Nevertheless, thanks for the answer and for the help.</description>
      <pubDate>Sat, 10 Dec 2005 00:55:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Copy-a-8u-C2-image/m-p/959091#M19491</guid>
      <dc:creator>costelha1</dc:creator>
      <dc:date>2005-12-10T00:55:43Z</dc:date>
    </item>
  </channel>
</rss>

