<?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 Please find the code below: in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResizeYUV420Super-8u-P2R-crash/m-p/1181840#M27217</link>
    <description>&lt;P&gt;Please find the code below:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;DIV&gt;IppiResizeYUV420Spec *pSpec ;&lt;/DIV&gt;

&lt;DIV&gt;Ipp32s SpecSize;&lt;/DIV&gt;

&lt;DIV&gt;Ipp32s InitBufSize;&lt;/DIV&gt;

&lt;DIV&gt;IppiSize srcSize, dstSize;&lt;/DIV&gt;

&lt;DIV&gt;srcSize.width = _inputFrame-&amp;gt;width;&lt;/DIV&gt;

&lt;DIV&gt;srcSize.height = _inputFrame-&amp;gt;height;&lt;/DIV&gt;

&lt;DIV&gt;dstSize.width = _outputFrame-&amp;gt;width;&lt;/DIV&gt;

&lt;DIV&gt;dstSize.height = _outputFrame-&amp;gt;height;&lt;/DIV&gt;

&lt;DIV&gt;IppStatus status;&lt;/DIV&gt;

&lt;DIV&gt;//IppStatus status =ippiResizeYUV420LanczosInit();&lt;/DIV&gt;

&lt;DIV&gt;IppiInterpolationType interpolType = ippSuper;&lt;/DIV&gt;

&lt;DIV&gt;//status = ippInit();&lt;/DIV&gt;

&lt;DIV&gt;uint32_t actualInputFrameHeight = ( _inputFrame-&amp;gt;height * 2 ) / 3;&lt;/DIV&gt;

&lt;DIV&gt;uint32_t actualOutputFrameHeight = ( _outputFrame-&amp;gt;height * 2 ) / 3;&lt;/DIV&gt;

&lt;DIV&gt;unsigned char * __restrict inputYPlane = ( unsigned char * __restrict )_inputFrame-&amp;gt;imageData[0];&lt;/DIV&gt;

&lt;DIV&gt;unsigned char * __restrict inputUvPlane = ( unsigned char * __restrict )( _inputFrame-&amp;gt;imageData[0] + ( _inputFrame-&amp;gt;pitch *&amp;nbsp; actualInputFrameHeight ));&lt;/DIV&gt;

&lt;DIV&gt;unsigned char * __restrict outputYPlane = ( unsigned char * __restrict )_outputFrame-&amp;gt;imageData[0];&lt;/DIV&gt;

&lt;DIV&gt;unsigned char * __restrict outputUvPlane = ( unsigned char * __restrict )( _outputFrame-&amp;gt;imageData[0] + ( _outputFrame-&amp;gt;pitch *&amp;nbsp; actualOutputFrameHeight ));&lt;/DIV&gt;

&lt;DIV&gt;IppiPoint dstOffset;&lt;/DIV&gt;

&lt;DIV&gt;dstOffset.x = 0;&lt;/DIV&gt;

&lt;DIV&gt;dstOffset.y = 0;&lt;/DIV&gt;

&lt;DIV&gt;status = ippiResizeYUV420GetSize(srcSize,&lt;/DIV&gt;

&lt;DIV&gt;dstSize, interpolType,&lt;/DIV&gt;

&lt;DIV&gt;0,&amp;amp;SpecSize, &amp;amp;InitBufSize);&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;pSpec = (IppiResizeYUV420Spec*)malloc(SpecSize);&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;status = ippiResizeYUV420SuperInit(srcSize,&lt;/DIV&gt;

&lt;DIV&gt;dstSize,pSpec);&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;status = ippiResizeYUV420GetBufferSize(pSpec,dstSize, &amp;amp;InitBufSize);&lt;/DIV&gt;

&lt;DIV&gt;Ipp8u* pBuffer =&amp;nbsp; (Ipp8u*)malloc(InitBufSize);&lt;/DIV&gt;

&lt;DIV&gt;//status = ippiResizeYUV420LanczosInit(srcSize, dstSize, 2, pSpec, pBuffer);&lt;/DIV&gt;

&lt;DIV&gt;//status = ippiResizeYUV420LinearInit( srcSize,&amp;nbsp; dstSize,pSpec);&lt;/DIV&gt;

&lt;DIV&gt;ippiResizeYUV420Super_8u_P2R(inputYPlane, _inputFrame-&amp;gt;pitch, inputUvPlane, _inputFrame-&amp;gt;pitch,&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;outputYPlane, _outputFrame-&amp;gt;pitch, outputUvPlane, _outputFrame-&amp;gt;pitch,&amp;nbsp; dstOffset, dstSize,&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;pSpec,&amp;nbsp; pBuffer);&lt;/DIV&gt;

&lt;DIV&gt;free(pSpec);&lt;/DIV&gt;

&lt;DIV&gt;free(pBuffer);&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Tue, 22 May 2018 00:35:26 GMT</pubDate>
    <dc:creator>Pratibha_P_Intel</dc:creator>
    <dc:date>2018-05-22T00:35:26Z</dc:date>
    <item>
      <title>ippiResizeYUV420Super_8u_P2R crash</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResizeYUV420Super-8u-P2R-crash/m-p/1181838#M27215</link>
      <description>&lt;P style="color: rgb(0, 0, 0); font-family: -webkit-standard; text-size-adjust: auto;"&gt;Hi!&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: -webkit-standard; text-size-adjust: auto;"&gt;&lt;SPAN style="font-size: 1em;"&gt;I am trying to use IPP functionality to resize/downsizeYuv image using&amp;nbsp;ippiResizeYUV420Super_8u_P2R API.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: -webkit-standard; text-size-adjust: auto;"&gt;I did use ippiResizeYUV420GetSize, allocated memory for pSpec and pBuffer as per output of this API using malloc,&amp;nbsp; called&amp;nbsp;ippiResizeYUV420SuperInit followed by&amp;nbsp;ippiResizeYUV420GetBufferSize.&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: -webkit-standard; text-size-adjust: auto;"&gt;Everything is fine so far and all of these APIs return status 0, but when I actually use&amp;nbsp;ippiResizeYUV420Super_8u_P2R, my application crashes at I9_ownSS1_8u.&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: -webkit-standard; text-size-adjust: auto;"&gt;Any advice? Also, I am not sure what&amp;nbsp; should be my destination offset in&amp;nbsp;ippiResizeYUV420Super_8u_P2R and how to calculate that.&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: -webkit-standard; text-size-adjust: auto;"&gt;Please note that I am using this API for downsizing my image.&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: -webkit-standard; text-size-adjust: auto;"&gt;Is there any sample code for this?&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: -webkit-standard; text-size-adjust: auto;"&gt;Thanks,&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: -webkit-standard; text-size-adjust: auto;"&gt;Pratibha&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 21:57:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResizeYUV420Super-8u-P2R-crash/m-p/1181838#M27215</guid>
      <dc:creator>Pratibha_P_Intel</dc:creator>
      <dc:date>2018-05-11T21:57:46Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResizeYUV420Super-8u-P2R-crash/m-p/1181839#M27216</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Could you please provide your source code example in order to check the issue?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Tatyana&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 06:55:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResizeYUV420Super-8u-P2R-crash/m-p/1181839#M27216</guid>
      <dc:creator>Tatyana_B_Intel</dc:creator>
      <dc:date>2018-05-16T06:55:15Z</dc:date>
    </item>
    <item>
      <title>Please find the code below:</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResizeYUV420Super-8u-P2R-crash/m-p/1181840#M27217</link>
      <description>&lt;P&gt;Please find the code below:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;DIV&gt;IppiResizeYUV420Spec *pSpec ;&lt;/DIV&gt;

&lt;DIV&gt;Ipp32s SpecSize;&lt;/DIV&gt;

&lt;DIV&gt;Ipp32s InitBufSize;&lt;/DIV&gt;

&lt;DIV&gt;IppiSize srcSize, dstSize;&lt;/DIV&gt;

&lt;DIV&gt;srcSize.width = _inputFrame-&amp;gt;width;&lt;/DIV&gt;

&lt;DIV&gt;srcSize.height = _inputFrame-&amp;gt;height;&lt;/DIV&gt;

&lt;DIV&gt;dstSize.width = _outputFrame-&amp;gt;width;&lt;/DIV&gt;

&lt;DIV&gt;dstSize.height = _outputFrame-&amp;gt;height;&lt;/DIV&gt;

&lt;DIV&gt;IppStatus status;&lt;/DIV&gt;

&lt;DIV&gt;//IppStatus status =ippiResizeYUV420LanczosInit();&lt;/DIV&gt;

&lt;DIV&gt;IppiInterpolationType interpolType = ippSuper;&lt;/DIV&gt;

&lt;DIV&gt;//status = ippInit();&lt;/DIV&gt;

&lt;DIV&gt;uint32_t actualInputFrameHeight = ( _inputFrame-&amp;gt;height * 2 ) / 3;&lt;/DIV&gt;

&lt;DIV&gt;uint32_t actualOutputFrameHeight = ( _outputFrame-&amp;gt;height * 2 ) / 3;&lt;/DIV&gt;

&lt;DIV&gt;unsigned char * __restrict inputYPlane = ( unsigned char * __restrict )_inputFrame-&amp;gt;imageData[0];&lt;/DIV&gt;

&lt;DIV&gt;unsigned char * __restrict inputUvPlane = ( unsigned char * __restrict )( _inputFrame-&amp;gt;imageData[0] + ( _inputFrame-&amp;gt;pitch *&amp;nbsp; actualInputFrameHeight ));&lt;/DIV&gt;

&lt;DIV&gt;unsigned char * __restrict outputYPlane = ( unsigned char * __restrict )_outputFrame-&amp;gt;imageData[0];&lt;/DIV&gt;

&lt;DIV&gt;unsigned char * __restrict outputUvPlane = ( unsigned char * __restrict )( _outputFrame-&amp;gt;imageData[0] + ( _outputFrame-&amp;gt;pitch *&amp;nbsp; actualOutputFrameHeight ));&lt;/DIV&gt;

&lt;DIV&gt;IppiPoint dstOffset;&lt;/DIV&gt;

&lt;DIV&gt;dstOffset.x = 0;&lt;/DIV&gt;

&lt;DIV&gt;dstOffset.y = 0;&lt;/DIV&gt;

&lt;DIV&gt;status = ippiResizeYUV420GetSize(srcSize,&lt;/DIV&gt;

&lt;DIV&gt;dstSize, interpolType,&lt;/DIV&gt;

&lt;DIV&gt;0,&amp;amp;SpecSize, &amp;amp;InitBufSize);&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;pSpec = (IppiResizeYUV420Spec*)malloc(SpecSize);&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;status = ippiResizeYUV420SuperInit(srcSize,&lt;/DIV&gt;

&lt;DIV&gt;dstSize,pSpec);&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;status = ippiResizeYUV420GetBufferSize(pSpec,dstSize, &amp;amp;InitBufSize);&lt;/DIV&gt;

&lt;DIV&gt;Ipp8u* pBuffer =&amp;nbsp; (Ipp8u*)malloc(InitBufSize);&lt;/DIV&gt;

&lt;DIV&gt;//status = ippiResizeYUV420LanczosInit(srcSize, dstSize, 2, pSpec, pBuffer);&lt;/DIV&gt;

&lt;DIV&gt;//status = ippiResizeYUV420LinearInit( srcSize,&amp;nbsp; dstSize,pSpec);&lt;/DIV&gt;

&lt;DIV&gt;ippiResizeYUV420Super_8u_P2R(inputYPlane, _inputFrame-&amp;gt;pitch, inputUvPlane, _inputFrame-&amp;gt;pitch,&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;outputYPlane, _outputFrame-&amp;gt;pitch, outputUvPlane, _outputFrame-&amp;gt;pitch,&amp;nbsp; dstOffset, dstSize,&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;pSpec,&amp;nbsp; pBuffer);&lt;/DIV&gt;

&lt;DIV&gt;free(pSpec);&lt;/DIV&gt;

&lt;DIV&gt;free(pBuffer);&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 May 2018 00:35:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResizeYUV420Super-8u-P2R-crash/m-p/1181840#M27217</guid>
      <dc:creator>Pratibha_P_Intel</dc:creator>
      <dc:date>2018-05-22T00:35:26Z</dc:date>
    </item>
    <item>
      <title>Hi Tatyana,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResizeYUV420Super-8u-P2R-crash/m-p/1181841#M27218</link>
      <description>&lt;P&gt;Hi Tatyana,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I figured out that I was passing wrong image sizes to the API and its working without crash after that.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Pratibha&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 18:54:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiResizeYUV420Super-8u-P2R-crash/m-p/1181841#M27218</guid>
      <dc:creator>Pratibha_P_Intel</dc:creator>
      <dc:date>2018-05-23T18:54:04Z</dc:date>
    </item>
  </channel>
</rss>

