<?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 Dealing with planar images in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Dealing-with-planar-images/m-p/806028#M3612</link>
    <description>Ok I've found my mistake:&lt;BR /&gt;&lt;BR /&gt;Ipp8u x1[8*8], x2[8*8], x3[8*8], y1[16*16], y2[16*16], y3[16*16];&lt;BR /&gt;IppiSize srcsz={8,8}, dstroi={16,16};&lt;BR /&gt;IppiRect srcroi={0,0,8,8};&lt;BR /&gt;IppiSize roi = {8,8};&lt;BR /&gt;int i,j,n;&lt;BR /&gt;for( i=0; i&amp;lt;8; i++ ) {&lt;BR /&gt;ippiSet_8u_C1R( (Ipp8u) (i), x1+8*i+i, 8, roi );&lt;BR /&gt;ippiSet_8u_C1R( (Ipp8u) (i+1), x2+8*i+i, 8, roi );&lt;BR /&gt;ippiSet_8u_C1R( (Ipp8u) (i+2), x3+8*i+i, 8, roi );&lt;BR /&gt;roi.width--;&lt;BR /&gt;roi.height--; }&lt;BR /&gt;&lt;BR /&gt;Ipp8u* pSrc[3]={x1, x2, x3}; // Here was the mistake&lt;BR /&gt;Ipp8u* pDst[3]= {y1, y2, y3}; // Here was the mistake&lt;BR /&gt;ippiResize_8u_P3R( pSrc, srcsz, 8, srcroi, pDst, 16, dstroi, 2, 2, IPPI_INTER_LINEAR );&lt;BR /&gt;printf("\n\n\n");&lt;BR /&gt;for (i=0; i&amp;lt;16; ++i)&lt;BR /&gt;{&lt;BR /&gt;for (j=0; j&amp;lt;16; ++j)&lt;BR /&gt;{&lt;BR /&gt;printf("%d ", pDst[1][i*16+j]); // Here was the mistake&lt;BR /&gt;}&lt;BR /&gt;printf("\n");&lt;BR /&gt;}</description>
    <pubDate>Tue, 08 Feb 2011 09:09:01 GMT</pubDate>
    <dc:creator>bibi88</dc:creator>
    <dc:date>2011-02-08T09:09:01Z</dc:date>
    <item>
      <title>Dealing with planar images</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Dealing-with-planar-images/m-p/806027#M3611</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I would like to process an image from which I have three pointers, one for each component. Using a P3R method, I wanted to know how to give this picture as an input (in general, for every method).&lt;BR /&gt;More precisely, some points are not clear for me:&lt;BR /&gt;&lt;BR /&gt;- Is well Ipp&lt;DATATYPE&gt;* pSrc[3] a pointer to a tabular of three pointers (one for each component)?&lt;BR /&gt;- What about IppiSize srcSize if my sampling is not 4:4:4 (for example, YUV422)? Is it well the size of the first component?&lt;BR /&gt;- Same question about int srcStep&lt;BR /&gt;&lt;BR /&gt;Maybe that the answers might seem straightforward, but I'm wondering that because, using ippiResize_8u_P3R, I'm not getting the expected results. Here is a very simplified example of what I'm doing:&lt;BR /&gt;&lt;BR /&gt;Ipp8u x1[8*8], x2[8*8], x3[8*8], y1[16*16], y2[16*16], y3[16*16];&lt;BR /&gt;IppiSize srcsz={8,8}, dstroi={16,16};&lt;BR /&gt;IppiRect srcroi={0,0,8,8};&lt;BR /&gt;IppiSize roi = {8,8};&lt;BR /&gt;int i,j,n;&lt;BR /&gt;for( i=0; i&amp;lt;8; i++ ) {&lt;BR /&gt;ippiSet_8u_C1R( (Ipp8u) (i), x1+8*i+i, 8, roi );&lt;BR /&gt;ippiSet_8u_C1R( (Ipp8u) (i+1), x2+8*i+i, 8, roi );&lt;BR /&gt;ippiSet_8u_C1R( (Ipp8u) (i+2), x3+8*i+i, 8, roi );&lt;BR /&gt;roi.width--;&lt;BR /&gt;roi.height--; }&lt;BR /&gt;&lt;BR /&gt;// Gives x1={ 0 0 0 0 0 0 0 0&lt;BR /&gt; 0 1 1 1 1 1 1 1&lt;BR /&gt; 0 1 2 2 2 2 2 2&lt;BR /&gt; 0 1 2 3 3 3 3 3&lt;BR /&gt; 0 1 2 3 4 4 4 4&lt;BR /&gt; 0 1 2 3 4 5 5 5&lt;BR /&gt; 0 1 2 3 4 5 6 6&lt;BR /&gt; 0 1 2 3 4 5 6 7};&lt;BR /&gt;&lt;BR /&gt;// All the values of x2 are those of x1, incremented by 1, and those of x3 are x1 incremented by 2&lt;BR /&gt;&lt;BR /&gt;Ipp8u pSrc[3]={x1, x2, x3};&lt;BR /&gt;Ipp8u pDst[3]= {y1, y2, y3};&lt;BR /&gt;ippiResize_8u_P3R( pSrc, srcsz, 8, srcroi, pDst, 16, dstroi, 2, 2, IPPI_INTER_LINEAR );&lt;BR /&gt;printf("\\n\\n\\n");&lt;BR /&gt;for (i=0; i&amp;lt;16; ++i)&lt;BR /&gt;{&lt;BR /&gt;for (j=0; j&amp;lt;16; ++j)&lt;BR /&gt;{&lt;BR /&gt;printf("%d ", y1[i*16+j]);&lt;BR /&gt;}&lt;BR /&gt;printf("\\n");&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;// I was expecting y1= { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 &lt;BR /&gt; 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 &lt;BR /&gt; 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 &lt;BR /&gt; 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 &lt;BR /&gt; 0 0 1 1 2 2 2 2 2 2 2 2 2 2 2 2 &lt;BR /&gt; 0 0 1 1 2 2 2 2 2 2 2 2 2 2 2 2 &lt;BR /&gt; 0 0 1 1 2 2 3 3 3 3 3 3 3 3 3 3 &lt;BR /&gt; 0 0 1 1 2 2 3 3 3 3 3 3 3 3 3 3 &lt;BR /&gt; 0 0 1 1 2 2 3 3 4 4 4 4 4 4 4 4 &lt;BR /&gt; 0 0 1 1 2 2 3 3 4 4 4 4 4 4 4 4 &lt;BR /&gt; 0 0 1 1 2 2 3 3 4 4 4 5 5 5 5 5 &lt;BR /&gt; 0 0 1 1 2 2 3 3 4 4 5 5 5 5 5 5 &lt;BR /&gt; 0 0 1 1 2 2 3 3 4 4 5 5 5 6 6 6 &lt;BR /&gt; 0 0 1 1 2 2 3 3 4 4 5 5 6 6 6 6 &lt;BR /&gt; 0 0 1 1 2 2 3 3 4 4 5 5 6 6 6 7 &lt;BR /&gt; 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 };&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;Best regards.&lt;BR /&gt;&lt;/DATATYPE&gt;</description>
      <pubDate>Mon, 07 Feb 2011 17:02:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Dealing-with-planar-images/m-p/806027#M3611</guid>
      <dc:creator>bibi88</dc:creator>
      <dc:date>2011-02-07T17:02:44Z</dc:date>
    </item>
    <item>
      <title>Dealing with planar images</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Dealing-with-planar-images/m-p/806028#M3612</link>
      <description>Ok I've found my mistake:&lt;BR /&gt;&lt;BR /&gt;Ipp8u x1[8*8], x2[8*8], x3[8*8], y1[16*16], y2[16*16], y3[16*16];&lt;BR /&gt;IppiSize srcsz={8,8}, dstroi={16,16};&lt;BR /&gt;IppiRect srcroi={0,0,8,8};&lt;BR /&gt;IppiSize roi = {8,8};&lt;BR /&gt;int i,j,n;&lt;BR /&gt;for( i=0; i&amp;lt;8; i++ ) {&lt;BR /&gt;ippiSet_8u_C1R( (Ipp8u) (i), x1+8*i+i, 8, roi );&lt;BR /&gt;ippiSet_8u_C1R( (Ipp8u) (i+1), x2+8*i+i, 8, roi );&lt;BR /&gt;ippiSet_8u_C1R( (Ipp8u) (i+2), x3+8*i+i, 8, roi );&lt;BR /&gt;roi.width--;&lt;BR /&gt;roi.height--; }&lt;BR /&gt;&lt;BR /&gt;Ipp8u* pSrc[3]={x1, x2, x3}; // Here was the mistake&lt;BR /&gt;Ipp8u* pDst[3]= {y1, y2, y3}; // Here was the mistake&lt;BR /&gt;ippiResize_8u_P3R( pSrc, srcsz, 8, srcroi, pDst, 16, dstroi, 2, 2, IPPI_INTER_LINEAR );&lt;BR /&gt;printf("\n\n\n");&lt;BR /&gt;for (i=0; i&amp;lt;16; ++i)&lt;BR /&gt;{&lt;BR /&gt;for (j=0; j&amp;lt;16; ++j)&lt;BR /&gt;{&lt;BR /&gt;printf("%d ", pDst[1][i*16+j]); // Here was the mistake&lt;BR /&gt;}&lt;BR /&gt;printf("\n");&lt;BR /&gt;}</description>
      <pubDate>Tue, 08 Feb 2011 09:09:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Dealing-with-planar-images/m-p/806028#M3612</guid>
      <dc:creator>bibi88</dc:creator>
      <dc:date>2011-02-08T09:09:01Z</dc:date>
    </item>
  </channel>
</rss>

