<?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: Whats wrong with my code? in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Whats-wrong-with-my-code/m-p/995726#M22887</link>
    <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;there is piece of code from our expert, hope it will help&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#000080" size="2"&gt;
&lt;P&gt;{&lt;BR /&gt; Ipp8u* ImageI420[3];&lt;BR /&gt; int stepI420[3];&lt;BR /&gt; Ipp8u* ImageYUY2;&lt;BR /&gt; int stepYUY2;&lt;BR /&gt; IppiSize roiSize = { 1024, 768};&lt;/P&gt;
&lt;P&gt; ImageI420[0] = ippiMalloc_8u_C1( roiSize.width, roiSize.height, &amp;amp;(stepI420[0]));&lt;/P&gt;
&lt;P&gt; ImageI420[1] = ippiMalloc_8u_C1( roiSize.width, roiSize.height, &amp;amp;(stepI420[1]));&lt;/P&gt;
&lt;P&gt; ImageI420[2] = ippiMalloc_8u_C1( roiSize.width, roiSize.height, &amp;amp;(stepI420[2]));&lt;/P&gt;
&lt;P&gt; ImageYUY2 = ippiMalloc_8u_C2( roiSize.width, roiSize.height, &amp;amp;stepYUY2 );&lt;/P&gt;
&lt;P&gt; ippiYCbCr422ToYCbCr420_8u_C2P3R( ImageYUY2, stepYUY2, ImageI420, stepI420, roiSize);&lt;/P&gt;
&lt;P&gt; ippiFree(ImageI420[0]);&lt;BR /&gt; ippiFree(ImageI420[1]);&lt;BR /&gt; ippiFree(ImageI420[2]);&lt;BR /&gt; ippiFree(ImageYUY2);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 17 Feb 2005 06:10:36 GMT</pubDate>
    <dc:creator>Vladimir_Dudnik</dc:creator>
    <dc:date>2005-02-17T06:10:36Z</dc:date>
    <item>
      <title>Whats wrong with my code?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Whats-wrong-with-my-code/m-p/995725#M22886</link>
      <description>&lt;DIV&gt;Please help. I don't understand whats wrong with my code. &lt;/DIV&gt;
&lt;DIV&gt;I am trying to use ippiYCbCr422ToYCbCr420_8u_C2P3R on an YUY2 image in LPBYTE datatype and store the I420 image in LPBYTE datatype. The manuals are to brief to understand most of the functions in IPP.&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;int&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;dstStep[3];&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;LPBYTE ImageI420[3];&lt;P&gt;&lt;/P&gt;
&lt;P&gt;IppiSize RoiSize;&lt;/P&gt;
&lt;P&gt;ImageI420[0] = (LPBYTE) &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;new&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;unsigned&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;char&lt;/FONT&gt;&lt;FONT size="2"&gt;[dwWidth * dwHeight * 3];&lt;P&gt;&lt;/P&gt;
&lt;P&gt;ImageI420[1] = (LPBYTE) &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;new&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;unsigned&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;char&lt;/FONT&gt;&lt;FONT size="2"&gt;[dwWidth * dwHeight * 3];&lt;P&gt;&lt;/P&gt;
&lt;P&gt;ImageI420[2] = (LPBYTE) &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;new&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;unsigned&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;char&lt;/FONT&gt;&lt;FONT size="2"&gt;[dwWidth * dwHeight * 3];&lt;P&gt;&lt;/P&gt;
&lt;P&gt;dstStep[0] = dwWidth * dwHeight * &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;sizeof&lt;/FONT&gt;&lt;FONT size="2"&gt;(ImageI420);&lt;P&gt;&lt;/P&gt;
&lt;P&gt;dstStep[1] = dwWidth * dwHeight * &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;sizeof&lt;/FONT&gt;&lt;FONT size="2"&gt;(ImageI420);&lt;P&gt;&lt;/P&gt;
&lt;P&gt;dstStep[2] = dwWidth * dwHeight * &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;sizeof&lt;/FONT&gt;&lt;FONT size="2"&gt;(ImageI420);&lt;P&gt;&lt;/P&gt;
&lt;P&gt;RoiSize.height = dwHeight * 2;&lt;/P&gt;
&lt;P&gt;RoiSize.width = dwWidth * 2;&lt;/P&gt;
&lt;P&gt;ippiYCbCr422ToYCbCr420_8u_C2P3R(RawImageAddr,dwWidth * dwHeight * &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;sizeof&lt;/FONT&gt;&lt;FONT size="2"&gt;(char),ImageI420,dstStep,RoiSize);&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 11 Feb 2005 11:57:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Whats-wrong-with-my-code/m-p/995725#M22886</guid>
      <dc:creator>gjackson2434</dc:creator>
      <dc:date>2005-02-11T11:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Whats wrong with my code?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Whats-wrong-with-my-code/m-p/995726#M22887</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;there is piece of code from our expert, hope it will help&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#000080" size="2"&gt;
&lt;P&gt;{&lt;BR /&gt; Ipp8u* ImageI420[3];&lt;BR /&gt; int stepI420[3];&lt;BR /&gt; Ipp8u* ImageYUY2;&lt;BR /&gt; int stepYUY2;&lt;BR /&gt; IppiSize roiSize = { 1024, 768};&lt;/P&gt;
&lt;P&gt; ImageI420[0] = ippiMalloc_8u_C1( roiSize.width, roiSize.height, &amp;amp;(stepI420[0]));&lt;/P&gt;
&lt;P&gt; ImageI420[1] = ippiMalloc_8u_C1( roiSize.width, roiSize.height, &amp;amp;(stepI420[1]));&lt;/P&gt;
&lt;P&gt; ImageI420[2] = ippiMalloc_8u_C1( roiSize.width, roiSize.height, &amp;amp;(stepI420[2]));&lt;/P&gt;
&lt;P&gt; ImageYUY2 = ippiMalloc_8u_C2( roiSize.width, roiSize.height, &amp;amp;stepYUY2 );&lt;/P&gt;
&lt;P&gt; ippiYCbCr422ToYCbCr420_8u_C2P3R( ImageYUY2, stepYUY2, ImageI420, stepI420, roiSize);&lt;/P&gt;
&lt;P&gt; ippiFree(ImageI420[0]);&lt;BR /&gt; ippiFree(ImageI420[1]);&lt;BR /&gt; ippiFree(ImageI420[2]);&lt;BR /&gt; ippiFree(ImageYUY2);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Feb 2005 06:10:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Whats-wrong-with-my-code/m-p/995726#M22887</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2005-02-17T06:10:36Z</dc:date>
    </item>
  </channel>
</rss>

