<?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 ippiSuperSampling_8u_P3R crashes in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiSuperSampling-8u-P3R-crashes/m-p/765811#M186</link>
    <description>The &lt;I&gt;_C1R&lt;/I&gt; variant is the one to use. There is no difference between handling a single plane in a planar format and a combined format consisting of only a single "color"; hence all &lt;I&gt;_C1R&lt;/I&gt; functions can be thought of as &lt;I&gt;_P1R&lt;/I&gt;'s. Sorry for not being more precise about this fact. The same applies to I420 as for YV12. Just ensure to use the correct stride for all planes including with special attention to the two (subsampled) color planes in relation to the memory layout for I420/YV12.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- Jay</description>
    <pubDate>Tue, 10 Apr 2012 07:57:32 GMT</pubDate>
    <dc:creator>j_miles</dc:creator>
    <dc:date>2012-04-10T07:57:32Z</dc:date>
    <item>
      <title>ippiSuperSampling_8u_P3R crashes</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiSuperSampling-8u-P3R-crashes/m-p/765806#M181</link>
      <description>&lt;P&gt;Resizing of the YV12 (planar) data using ippiSuperSampling_8u_P3R crashes, with invalid access in reading memory location. Below is the code and the details of the buffer and parameters&lt;/P&gt;&lt;P&gt;Input buffer size(pInputImage) is 518400, srcwidth = 720, srcheight = 480, dstwidth = 400, dstheight = 300. It crashes trying to access memory outside the boundary for eg:&lt;/P&gt;&lt;P&gt;address of pI420SrcData[0] = 0x04020000&lt;/P&gt;&lt;P&gt;address of pI420SrcData[1] = 0x04074600&lt;/P&gt;&lt;P&gt;address of pI420SrcData[2] = 0x04089780&lt;/P&gt;&lt;P&gt;It crashes trying to access 0x0409f170 which according to me is exceeds the boundary of V planar buffer. Please let me know what could be wrong here.&lt;/P&gt;&lt;P&gt;I am using Intel IPP v6.1.2.041&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;[bash]Ipp8u* ScalingYUV420Data(Ipp8u* pInputImage,unsigned int srcwidth,unsigned int srcheight,unsigned int dstwidth,unsigned int dstheight)

{

Ipp8u* pI420SrcData[3];

Ipp8u* pI420DestData[3];

IppiRect srcrect;

IppiRect destrect;

IppiSize srcsize;

IppiSize destsize;

pI420SrcData[0] = pInputImage;

pI420SrcData[1] = pI420SrcData[0] + (srcwidth * srcheight);

pI420SrcData[2] = pI420SrcData[1] + (srcwidth * srcheight) / 4 ;

// Calculate the resolution

srcsize.width = srcwidth;

srcsize.height = srcheight;

destsize.width = dstwidth;

destsize.height = dstheight;

int srcstep = srcwidth;

int dststep = dstwidth;

// Calculate the pointers for destination

pI420DestData[0] = m_pScaledDestData;

pI420DestData[1] = pI420DestData[0] + (dstwidth * dstheight);

pI420DestData[2] = pI420DestData[1] + (dstwidth * dstheight) / 4;

int bufsize = 0;

if(ippiSuperSamplingGetBufSize( srcsize, destsize, 3, &amp;amp;bufsize ) != ippStsNoErr)

{

return NULL;

}

 

if(bufsize &amp;lt;= 0)

{

return NULL;

}

Ipp8u* buf = ippsMalloc_8u( bufsize );

ippiSuperSampling_8u_P3R(pI420SrcData, srcstep, srcsize, pI420DestData, dststep, destsize, buf);

if( buf != NULL ) 

ippsFree( buf );

return m_pScaledDestData;

}
[/bash]&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Aug 2011 00:41:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiSuperSampling-8u-P3R-crashes/m-p/765806#M181</guid>
      <dc:creator>Sarun_Nandakumar</dc:creator>
      <dc:date>2011-08-25T00:41:36Z</dc:date>
    </item>
    <item>
      <title>ippiSuperSampling_8u_P3R crashes</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiSuperSampling-8u-P3R-crashes/m-p/765807#M182</link>
      <description>Without looking the documentation I am not sure if scaling to arbitrary size is supported. If it is, then if you don't have a particular reason for sticking to 6.1 you might try to see if it works in newer version (7.0.4).&lt;BR /&gt;&lt;BR /&gt;Finally, what are the destination addresses? Are you sure you are crashing on read and not on write access?&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Aug 2011 22:18:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiSuperSampling-8u-P3R-crashes/m-p/765807#M182</guid>
      <dc:creator>levicki</dc:creator>
      <dc:date>2011-08-25T22:18:40Z</dc:date>
    </item>
    <item>
      <title>ippiSuperSampling_8u_P3R crashes</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiSuperSampling-8u-P3R-crashes/m-p/765808#M183</link>
      <description>I will try with the newer version. &lt;BR /&gt;Crash happend when accessing the memory and pointer address is very near to the source buffer.&lt;BR /&gt;&lt;BR /&gt;I tried using ResizeSqrPixel_8u_P3R function and that also crashed.</description>
      <pubDate>Thu, 25 Aug 2011 22:45:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiSuperSampling-8u-P3R-crashes/m-p/765808#M183</guid>
      <dc:creator>Sarun_Nandakumar</dc:creator>
      <dc:date>2011-08-25T22:45:22Z</dc:date>
    </item>
    <item>
      <title>ippiSuperSampling_8u_P3R crashes</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiSuperSampling-8u-P3R-crashes/m-p/765809#M184</link>
      <description>Now, I have not perused your code in detail, but just from your description it seems that what you are trying to achieve is not possible with the given function(s), i.e. both &lt;I&gt;'ippiSuperSampling_8u_P3R'&lt;/I&gt; and &lt;I&gt;'ResizeSqrPixel_8u_P3R'&lt;/I&gt;. In either case, all three planes are presumed to be of identical size and even having the same stride (which in my opinion is an unecessary restriction - why can't the strides be different? I doubt that it would have any negative performance impact). In other words, the data that can be resized by those functions are non-subsampled data, i.e. it must be 4:4:4 and thus not 4:2:0. So in this case, the error is simply that the function assumes 4:4:4 and same size for all three planes and then it will access outside your two color difference signal buffers (Cb and Cr ~ U and V). &lt;BR /&gt;&lt;BR /&gt;For resizing 4:2:0, you will instead have to handle the three planes individually, resizing the Y-plane by itself with its resolution parameters, and resizing the Cb and Cr planes with their resolution parameters, both via the &lt;I&gt;'_P1R'&lt;/I&gt; variants of either function. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- Jay</description>
      <pubDate>Thu, 01 Sep 2011 14:07:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiSuperSampling-8u-P3R-crashes/m-p/765809#M184</guid>
      <dc:creator>j_miles</dc:creator>
      <dc:date>2011-09-01T14:07:34Z</dc:date>
    </item>
    <item>
      <title>ippiSuperSampling_8u_P3R crashes</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiSuperSampling-8u-P3R-crashes/m-p/765810#M185</link>
      <description>Does anyone have any follow up on this question?&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;I have a simmilar format I420, (which should be the same as YV12, but with different order of U and V planes) to scale, and I also have tried ippiSuperSampling and ippiResizeSqrPixel.&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;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;I'm guessing thatippiResizeYUV420_8u_P2R isn't what I'm looking for either, right?&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;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;I've tried all of this functions and I get scaled but I have scrambled picture in the output.&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Jay, what you say makes sense, but I couldn't find any _P1R functions? Only C1R?&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Goran.&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Apr 2012 21:31:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiSuperSampling-8u-P3R-crashes/m-p/765810#M185</guid>
      <dc:creator>ambrozija</dc:creator>
      <dc:date>2012-04-05T21:31:59Z</dc:date>
    </item>
    <item>
      <title>ippiSuperSampling_8u_P3R crashes</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiSuperSampling-8u-P3R-crashes/m-p/765811#M186</link>
      <description>The &lt;I&gt;_C1R&lt;/I&gt; variant is the one to use. There is no difference between handling a single plane in a planar format and a combined format consisting of only a single "color"; hence all &lt;I&gt;_C1R&lt;/I&gt; functions can be thought of as &lt;I&gt;_P1R&lt;/I&gt;'s. Sorry for not being more precise about this fact. The same applies to I420 as for YV12. Just ensure to use the correct stride for all planes including with special attention to the two (subsampled) color planes in relation to the memory layout for I420/YV12.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- Jay</description>
      <pubDate>Tue, 10 Apr 2012 07:57:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiSuperSampling-8u-P3R-crashes/m-p/765811#M186</guid>
      <dc:creator>j_miles</dc:creator>
      <dc:date>2012-04-10T07:57:32Z</dc:date>
    </item>
  </channel>
</rss>

