<?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 Firewire with DeinterlaceEdgeDetect in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Firewire-with-DeinterlaceEdgeDetect/m-p/880737#M10171</link>
    <description>Hello,&lt;BR /&gt;I have as source a firewire cam and I want a deinterlaced (edge detect) live stream.&lt;BR /&gt;As input a get a YUY2 buffer (Y0 U0 Y1 V0) with the size of 829440 bytes (720 * 576 * 2).&lt;BR /&gt;The output buffer has to be 768 * 576, so the ROI is 720 * 576.&lt;BR /&gt;&lt;BR /&gt;When i use the ippiDeinterlaceEdgeDetect_8u_C1R function, the colors are wrong. I think its because of the input have to be RGB(?).&lt;BR /&gt;So I want to convert the input with ippiYUV422ToRGB_8u_C2C3R, then use the deinterlacing function and then re-convert.&lt;BR /&gt;&lt;BR /&gt;Here is my Code (Delphi):&lt;BR /&gt;
&lt;PRE&gt;[delphi]// Get pointer&lt;BR /&gt;pSrc := PIpp8u(pDataI); // 720 * 576&lt;BR /&gt;pDst := PIpp8u(pDataO) // 768 * 576
&lt;BR /&gt;// GetMem 		 
pTemp1 := ippiMalloc_8u_C3(720, 576, @tempStep1 );
pTemp1 := ippiMalloc_8u_C3(720, 576, @tempStep2 );

// Convert YUY2 -&amp;gt; RGB&lt;BR /&gt;roiSize.height:=576;
roiSize.width:=720;
ippiYUV422ToRGB_8u_C2C3R(pSrc,720*2,pTemp1,tempStep1,roiSize);

// Deinterlace&lt;BR /&gt;roiSize.width:=720*3;
res:=ippiDeinterlaceEdgeDetect_8u_C1R(pTemp1,tempStep1,
                                      pTemp2,tempStep2,
									  roiSize,1, 1);

// Convert RGB -&amp;gt; YUY2&lt;BR /&gt;roiSize.width:=720;
ippiRGBToYUV422_8u_C3C2R(pTemp2,tempStep2,pDst,768*2,roiSize);

// FreeMem&lt;BR /&gt;ippiFree(pTemp1);
ippiFree(pTemp2);[/delphi]&lt;/PRE&gt;
The program crashes in the deinterlacing function: access voilation at adress 0x....&lt;BR /&gt;I'm quite sure there is something wrong with the rio size or/and the steps. Its a little bit confusing for me.&lt;BR /&gt;&lt;BR /&gt;Can anyone see the failure???&lt;BR /&gt;</description>
    <pubDate>Mon, 15 Jun 2009 13:48:32 GMT</pubDate>
    <dc:creator>juriman</dc:creator>
    <dc:date>2009-06-15T13:48:32Z</dc:date>
    <item>
      <title>Firewire with DeinterlaceEdgeDetect</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Firewire-with-DeinterlaceEdgeDetect/m-p/880737#M10171</link>
      <description>Hello,&lt;BR /&gt;I have as source a firewire cam and I want a deinterlaced (edge detect) live stream.&lt;BR /&gt;As input a get a YUY2 buffer (Y0 U0 Y1 V0) with the size of 829440 bytes (720 * 576 * 2).&lt;BR /&gt;The output buffer has to be 768 * 576, so the ROI is 720 * 576.&lt;BR /&gt;&lt;BR /&gt;When i use the ippiDeinterlaceEdgeDetect_8u_C1R function, the colors are wrong. I think its because of the input have to be RGB(?).&lt;BR /&gt;So I want to convert the input with ippiYUV422ToRGB_8u_C2C3R, then use the deinterlacing function and then re-convert.&lt;BR /&gt;&lt;BR /&gt;Here is my Code (Delphi):&lt;BR /&gt;
&lt;PRE&gt;[delphi]// Get pointer&lt;BR /&gt;pSrc := PIpp8u(pDataI); // 720 * 576&lt;BR /&gt;pDst := PIpp8u(pDataO) // 768 * 576
&lt;BR /&gt;// GetMem 		 
pTemp1 := ippiMalloc_8u_C3(720, 576, @tempStep1 );
pTemp1 := ippiMalloc_8u_C3(720, 576, @tempStep2 );

// Convert YUY2 -&amp;gt; RGB&lt;BR /&gt;roiSize.height:=576;
roiSize.width:=720;
ippiYUV422ToRGB_8u_C2C3R(pSrc,720*2,pTemp1,tempStep1,roiSize);

// Deinterlace&lt;BR /&gt;roiSize.width:=720*3;
res:=ippiDeinterlaceEdgeDetect_8u_C1R(pTemp1,tempStep1,
                                      pTemp2,tempStep2,
									  roiSize,1, 1);

// Convert RGB -&amp;gt; YUY2&lt;BR /&gt;roiSize.width:=720;
ippiRGBToYUV422_8u_C3C2R(pTemp2,tempStep2,pDst,768*2,roiSize);

// FreeMem&lt;BR /&gt;ippiFree(pTemp1);
ippiFree(pTemp2);[/delphi]&lt;/PRE&gt;
The program crashes in the deinterlacing function: access voilation at adress 0x....&lt;BR /&gt;I'm quite sure there is something wrong with the rio size or/and the steps. Its a little bit confusing for me.&lt;BR /&gt;&lt;BR /&gt;Can anyone see the failure???&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jun 2009 13:48:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Firewire-with-DeinterlaceEdgeDetect/m-p/880737#M10171</guid>
      <dc:creator>juriman</dc:creator>
      <dc:date>2009-06-15T13:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Firewire with DeinterlaceEdgeDetect</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Firewire-with-DeinterlaceEdgeDetect/m-p/880738#M10172</link>
      <description>Oh, I have a Copy&amp;amp;Paste failure in line 7. No It runs.&lt;BR /&gt;But the color are wrong.&lt;BR /&gt;&lt;BR /&gt;Attachments: &lt;BR /&gt;1.jpg: how it is now&lt;BR /&gt;2.jpg: how i has to be&lt;BR /&gt;&lt;BR /&gt;//Edit&lt;BR /&gt;I have replaced the deinterlacing funnction with the copy funktion &lt;BR /&gt;ippiCopy_8u_C1R(pTemp1, tempStep1, pTemp2, tempStep2, roiSize);&lt;BR /&gt;and now the colors are right.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;So the new question is:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;What color format need ippiDeinterlaceEdgeDetect_8u_C1R?&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jun 2009 14:02:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Firewire-with-DeinterlaceEdgeDetect/m-p/880738#M10172</guid>
      <dc:creator>juriman</dc:creator>
      <dc:date>2009-06-15T14:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Firewire with DeinterlaceEdgeDetect</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Firewire-with-DeinterlaceEdgeDetect/m-p/880739#M10173</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Please note that C1 in the name of IPP function mean single channel image. This function work on one color plane (for example Y plane). You need to split your image to planesbefore call this function for each plane.&lt;BR /&gt;&lt;BR /&gt;Vladimir</description>
      <pubDate>Mon, 15 Jun 2009 22:26:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Firewire-with-DeinterlaceEdgeDetect/m-p/880739#M10173</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2009-06-15T22:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Firewire with DeinterlaceEdgeDetect</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Firewire-with-DeinterlaceEdgeDetect/m-p/880740#M10174</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;It works. Thank you!&lt;BR /&gt;I tought it doesn't matter, because the other deinterlacing functions worked without splitting.&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Jun 2009 16:28:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Firewire-with-DeinterlaceEdgeDetect/m-p/880740#M10174</guid>
      <dc:creator>juriman</dc:creator>
      <dc:date>2009-06-16T16:28:18Z</dc:date>
    </item>
  </channel>
</rss>

