<?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 YUV Conversion Issue in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-Conversion-Issue/m-p/779679#M1470</link>
    <description>&lt;BR /&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;It looks the input and output image size is different. &lt;/P&gt;&lt;P&gt;In color conversion functions, the input and out function have the same size. It has no functionality to resize the image. &lt;/P&gt;&lt;P&gt;You need to call IPP resize function (ippiResizeSqrPixel_) first to change the image size to 176x144, then call color conversion function. &lt;/P&gt;&lt;P&gt;Thanks, &lt;BR /&gt;Chao&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2011 06:11:17 GMT</pubDate>
    <dc:creator>Chao_Y_Intel</dc:creator>
    <dc:date>2011-03-22T06:11:17Z</dc:date>
    <item>
      <title>YUV Conversion Issue</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-Conversion-Issue/m-p/779674#M1465</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a bitmap(no header)buffer of size 176x144 and want to conver to YUV format before calling H.264 encoding routine.&lt;BR /&gt;&lt;BR /&gt;I did it in the following way&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;int FrameSize = VideoWidth*VideoHeight*3/2;&lt;/P&gt;&lt;P&gt;IppStatus retValue;&lt;/P&gt;&lt;P&gt;Ipp8u * yuvData[3];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IppiSize srcSize={VideoWidth, VideoHeight}; &lt;/P&gt;&lt;P&gt;int srcStep = VideoWidth*3; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//yuvData[0]=cYUVData + VideoWidth*VideoHeight*3/2; &lt;/P&gt;&lt;P&gt;yuvData[0]=cYUVData; &lt;/P&gt;&lt;P&gt;yuvData[1]=yuvData[0] +VideoWidth*VideoHeight;&lt;/P&gt;&lt;P&gt;yuvData[2]=yuvData[1] +VideoWidth*VideoHeight/4;&lt;/P&gt;&lt;P&gt;int pDstStepYVU[3] = {VideoWidth, VideoWidth/2, VideoWidth/2}; &lt;/P&gt;&lt;P&gt;retValue = ippiRGBToYCbCr420_8u_C3P3R(cRGB24Data, srcStep, yuvData, pDstStepYVU, srcSize);&lt;BR /&gt;&lt;BR /&gt;and retValue is success.&lt;BR /&gt;How can I get the size of the cYUVData aftertheabove function call so that I can validate the YUV data by writing to a file.&lt;BR /&gt;&lt;BR /&gt;Pls help.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Mar 2011 11:29:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-Conversion-Issue/m-p/779674#M1465</guid>
      <dc:creator>ipp_test</dc:creator>
      <dc:date>2011-03-20T11:29:40Z</dc:date>
    </item>
    <item>
      <title>YUV Conversion Issue</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-Conversion-Issue/m-p/779675#M1466</link>
      <description>I think you need to know size of resulting YUC data before the call to IPP function in order to allocate memory buffer of sufficient size to put converted image.&lt;BR /&gt;&lt;BR /&gt;And size is defined by width and height of your RGB image, meaning for 420 sampling you will have Y plane with the same width and height, and U and V planes with width/2 and height/2.&lt;BR /&gt;&lt;BR /&gt;Vladimir</description>
      <pubDate>Sun, 20 Mar 2011 20:33:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-Conversion-Issue/m-p/779675#M1466</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2011-03-20T20:33:53Z</dc:date>
    </item>
    <item>
      <title>YUV Conversion Issue</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-Conversion-Issue/m-p/779676#M1467</link>
      <description>Hi Vladimir,&lt;BR /&gt;&lt;BR /&gt;Thanks for you response.&lt;BR /&gt;&lt;BR /&gt;Are my above RGB to YUV conversion code is correct if the bitmap(RGB24) buffer size is 176x144?</description>
      <pubDate>Mon, 21 Mar 2011 02:07:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-Conversion-Issue/m-p/779676#M1467</guid>
      <dc:creator>ipp_test</dc:creator>
      <dc:date>2011-03-21T02:07:58Z</dc:date>
    </item>
    <item>
      <title>YUV Conversion Issue</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-Conversion-Issue/m-p/779677#M1468</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;It looks fine for me. The BMP data in the memory is possilly in BGR order. If this is your case, it need to call ippiBGRToYCrCb420_8u_C3P3R(..) function. &lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Chao &lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2011 06:19:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-Conversion-Issue/m-p/779677#M1468</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2011-03-21T06:19:12Z</dc:date>
    </item>
    <item>
      <title>YUV Conversion Issue</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-Conversion-Issue/m-p/779678#M1469</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I have a raw RGB24 bitmap buffer of size 640x480(921600 bytes) from a web cam callback function that i want to convert to YUV format of size 176x144. I tried it as follows.&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;int VideoWidth=176,VideoHeight=144,FrameNumber=1;&lt;/P&gt;&lt;P&gt;int nMaxYUVSize = (VideoWidth*VideoHeight + (VideoWidth*VideoHeight)/2);&lt;BR /&gt;&lt;BR /&gt;Ipp8u *cYUVData = ippsMalloc_8u(nMaxYUVSize);&lt;BR /&gt;&lt;BR /&gt;Ipp8u *cRGB24Data = ippsMalloc_8u(921600); and cRGB24Data is filled with raw bitmap from webcam callback function&lt;/P&gt;&lt;P&gt;IppStatus retValue;&lt;/P&gt;&lt;P&gt;Ipp8u * yuvData[3];&lt;/P&gt;&lt;P&gt;IppiSize srcSize={VideoWidth, VideoHeight}; &lt;/P&gt;&lt;P&gt;int srcStep = VideoWidth*3;&lt;/P&gt;&lt;P&gt;yuvData[0]=cYUVData; &lt;/P&gt;&lt;P&gt;yuvData[1]=yuvData[0] +VideoWidth*VideoHeight;&lt;/P&gt;&lt;P&gt;yuvData[2]=yuvData[1] +VideoWidth*VideoHeight/4;&lt;/P&gt;&lt;P&gt;int pDstStepYVU[3] = {VideoWidth, VideoWidth/2, VideoWidth/2}; &lt;/P&gt;&lt;P&gt;retValue = ippiRGBToYCbCr420_8u_C3P3R(cRGB24Data, srcStep,yuvData, pDstStepYVU, srcSize);&lt;BR /&gt;&lt;BR /&gt;eventhough retValue == ippStsNoErr, the yuvData appears to be wrong.&lt;BR /&gt;&lt;BR /&gt;What is wrong with the above method?&lt;BR /&gt;&lt;BR /&gt;Somebody please help&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2011 18:59:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-Conversion-Issue/m-p/779678#M1469</guid>
      <dc:creator>ipp_test</dc:creator>
      <dc:date>2011-03-21T18:59:25Z</dc:date>
    </item>
    <item>
      <title>YUV Conversion Issue</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-Conversion-Issue/m-p/779679#M1470</link>
      <description>&lt;BR /&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;It looks the input and output image size is different. &lt;/P&gt;&lt;P&gt;In color conversion functions, the input and out function have the same size. It has no functionality to resize the image. &lt;/P&gt;&lt;P&gt;You need to call IPP resize function (ippiResizeSqrPixel_) first to change the image size to 176x144, then call color conversion function. &lt;/P&gt;&lt;P&gt;Thanks, &lt;BR /&gt;Chao&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2011 06:11:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-Conversion-Issue/m-p/779679#M1470</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2011-03-22T06:11:17Z</dc:date>
    </item>
    <item>
      <title>YUV Conversion Issue</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-Conversion-Issue/m-p/779680#M1471</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;Thanks for the help. WhenI resize the image the issue solved.</description>
      <pubDate>Sun, 27 Mar 2011 11:09:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/YUV-Conversion-Issue/m-p/779680#M1471</guid>
      <dc:creator>ipp_test</dc:creator>
      <dc:date>2011-03-27T11:09:44Z</dc:date>
    </item>
  </channel>
</rss>

