<?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 Need help with resizing video frame in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Need-help-with-resizing-video-frame/m-p/877503#M9723</link>
    <description>&lt;P&gt;I'm capture a YUY2 640x480 video frame from camera in DirectShow. I have a transform filter and all I want to do is downsize the 640x480 frame to 320x240 frame. I have no clue what functions I should use for malloc and the actual downsize. Here's the functions I AM using and am not getting the desired results:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IppiSize roiInputSize = { 640, 480};&lt;/P&gt;&lt;P&gt;IppiSize roiOutputSize = { 320, 240 };&lt;/P&gt;&lt;P&gt;IppiRect roi = {0, 0, 640, 480};&lt;/P&gt;&lt;FONT size="2"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ImageYUY2 = ippiMalloc_8u_C2( roiOutputSize.width, roiOutputSize.height, &amp;amp;stepYUY2 );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;status = ippiResizeYUV422_8u_C2R(pSrc, roiInputSize, 2 * 640, roi, ImageYUY2, stepYUY2, roiOutputSize, 0.5, 0.5, IPPI_INTER_NN);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me? I'm not sure if I should be using C1, C2, C3 or C4. And I'm not sure what my 'steps' should be.&lt;/P&gt;&lt;P&gt;/Loren&lt;/P&gt;</description>
    <pubDate>Mon, 29 Sep 2008 19:34:55 GMT</pubDate>
    <dc:creator>lrogersego</dc:creator>
    <dc:date>2008-09-29T19:34:55Z</dc:date>
    <item>
      <title>Need help with resizing video frame</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Need-help-with-resizing-video-frame/m-p/877503#M9723</link>
      <description>&lt;P&gt;I'm capture a YUY2 640x480 video frame from camera in DirectShow. I have a transform filter and all I want to do is downsize the 640x480 frame to 320x240 frame. I have no clue what functions I should use for malloc and the actual downsize. Here's the functions I AM using and am not getting the desired results:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IppiSize roiInputSize = { 640, 480};&lt;/P&gt;&lt;P&gt;IppiSize roiOutputSize = { 320, 240 };&lt;/P&gt;&lt;P&gt;IppiRect roi = {0, 0, 640, 480};&lt;/P&gt;&lt;FONT size="2"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ImageYUY2 = ippiMalloc_8u_C2( roiOutputSize.width, roiOutputSize.height, &amp;amp;stepYUY2 );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;status = ippiResizeYUV422_8u_C2R(pSrc, roiInputSize, 2 * 640, roi, ImageYUY2, stepYUY2, roiOutputSize, 0.5, 0.5, IPPI_INTER_NN);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me? I'm not sure if I should be using C1, C2, C3 or C4. And I'm not sure what my 'steps' should be.&lt;/P&gt;&lt;P&gt;/Loren&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2008 19:34:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Need-help-with-resizing-video-frame/m-p/877503#M9723</guid>
      <dc:creator>lrogersego</dc:creator>
      <dc:date>2008-09-29T19:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with resizing video frame</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Need-help-with-resizing-video-frame/m-p/877504#M9724</link>
      <description>&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="color: black; font-family: " ms="" sans="" serif=""&gt;&lt;SPAN style="font-size: x-small;"&gt;There is&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;only one resize flavor for YUV image format:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="color: black; font-family: " ms="" sans="" serif=""&gt;&lt;SPAN style="font-size: x-small;"&gt;IPPAPI(IppStatus, ippiResizeYUV422_8u_C2R, (const Ipp8u* pSrc, IppiSize srcSize, int srcStep, IppiRect srcRoi,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="color: black; font-family: " ms="" sans="" serif=""&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;Ipp8u* pDst, int dstStep, IppiSize dstRoiSize,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="color: black; font-family: " ms="" sans="" serif=""&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;double xFactor, double yFactor, int interpolation))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-size: 8.5pt; color: black; font-family: " ms="" sans="" serif=""&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="color: black; font-family: " ms="" sans="" serif=""&gt;&lt;SPAN style="font-size: x-small;"&gt;all other are available for RGB(A) only, so if the above API is not suitable you, then you may have to use an appropriate conversion function from Color Conversion domain to RGB, then resize (SqrPixel is preferable as by slice approach may be used - it is faster to do by slices of L1 size than to go 3 times through memory), and then convert back to YUV.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;Naveen Gv&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2008 09:36:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Need-help-with-resizing-video-frame/m-p/877504#M9724</guid>
      <dc:creator>Naveen_G_Intel</dc:creator>
      <dc:date>2008-10-22T09:36:53Z</dc:date>
    </item>
  </channel>
</rss>

