<?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 In-place FFT questions in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/In-place-FFT-questions/m-p/872470#M9098</link>
    <description>I want to replace a slow in-place FFT with something from the IPP libraries. My application is processing audio, generally with 4K float samples per frame/ 4K FFT bins. Questions arising are:&lt;BR /&gt;&lt;BR /&gt;1. Ippsman.pdf indicates that &lt;B&gt;ippsFFTFwd_CToC_32f_I&lt;/B&gt;() looks like a suitable replacement but does not document the function arguments very well (at all even). pSrcDstRe and pSrcDstIm I can guess but I'm foxed by the final Ipp8u* argument called pBuffer. Looking at the IPP MFC sample this appears to be set to 0/NULL. Is this the case?&lt;BR /&gt;&lt;BR /&gt;2. I'm unsure how to get the data interleaved in the right way. The current FFT takes a buffer with audio samples arranged like this:&lt;BR /&gt;&lt;BR /&gt;float buffer[framesize];&lt;BR /&gt;buffer[0] = audioSample0;&lt;BR /&gt;buffer[1] = 0.0f;&lt;BR /&gt;buffer[2] = audioSample1;&lt;BR /&gt;buffer[3] = 0.0f;&lt;BR /&gt;buffer[framesize-2] = finalAudioSample;&lt;BR /&gt;buffer[framesize-1] = 0.0f;&lt;BR /&gt;&lt;BR /&gt;post FFT the buffer contains interleaved real/imaginary components. How can I specify this format when setting up the FFT plan?&lt;BR /&gt;&lt;BR /&gt;3. By the way, are there any more dedicated C/C++/C# code samples? The stuff included with the IPP evaluation seems a bit thin.&lt;BR /&gt;&lt;BR /&gt;Many thanks&lt;BR /&gt;&lt;BR /&gt;Jerry&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 03 Apr 2007 14:30:10 GMT</pubDate>
    <dc:creator>ipp</dc:creator>
    <dc:date>2007-04-03T14:30:10Z</dc:date>
    <item>
      <title>In-place FFT questions</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/In-place-FFT-questions/m-p/872470#M9098</link>
      <description>I want to replace a slow in-place FFT with something from the IPP libraries. My application is processing audio, generally with 4K float samples per frame/ 4K FFT bins. Questions arising are:&lt;BR /&gt;&lt;BR /&gt;1. Ippsman.pdf indicates that &lt;B&gt;ippsFFTFwd_CToC_32f_I&lt;/B&gt;() looks like a suitable replacement but does not document the function arguments very well (at all even). pSrcDstRe and pSrcDstIm I can guess but I'm foxed by the final Ipp8u* argument called pBuffer. Looking at the IPP MFC sample this appears to be set to 0/NULL. Is this the case?&lt;BR /&gt;&lt;BR /&gt;2. I'm unsure how to get the data interleaved in the right way. The current FFT takes a buffer with audio samples arranged like this:&lt;BR /&gt;&lt;BR /&gt;float buffer[framesize];&lt;BR /&gt;buffer[0] = audioSample0;&lt;BR /&gt;buffer[1] = 0.0f;&lt;BR /&gt;buffer[2] = audioSample1;&lt;BR /&gt;buffer[3] = 0.0f;&lt;BR /&gt;buffer[framesize-2] = finalAudioSample;&lt;BR /&gt;buffer[framesize-1] = 0.0f;&lt;BR /&gt;&lt;BR /&gt;post FFT the buffer contains interleaved real/imaginary components. How can I specify this format when setting up the FFT plan?&lt;BR /&gt;&lt;BR /&gt;3. By the way, are there any more dedicated C/C++/C# code samples? The stuff included with the IPP evaluation seems a bit thin.&lt;BR /&gt;&lt;BR /&gt;Many thanks&lt;BR /&gt;&lt;BR /&gt;Jerry&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Apr 2007 14:30:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/In-place-FFT-questions/m-p/872470#M9098</guid>
      <dc:creator>ipp</dc:creator>
      <dc:date>2007-04-03T14:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: In-place FFT questions</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/In-place-FFT-questions/m-p/872471#M9099</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;there are some comments from our expert&lt;/P&gt;&lt;PRE&gt;1.&lt;B&gt;&lt;I&gt;&lt;FONT color="#000080" size="2"&gt;There is special functions &lt;/FONT&gt;&lt;/I&gt;&lt;/B&gt;&lt;I&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New CYR" color="#000080" size="2"&gt;&lt;P&gt;/* /////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;// FFT Buffer Size&lt;/P&gt;&lt;P&gt;///////////////////////////////////////////////////////////////////////////// */&lt;/P&gt;&lt;P&gt;/* /////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;// Name: ippsFFTGetBufSize_C, ippsFFTGetBufSize_R&lt;/P&gt;&lt;P&gt;// Purpose: get size of the FFT work buffer (on bytes)&lt;/P&gt;&lt;P&gt;// Arguments:&lt;/P&gt;&lt;P&gt;// pFFTSpec - pointer to the FFT structure&lt;/P&gt;&lt;P&gt;// pBufferSize - Pointer to the FFT work buffer size value&lt;/P&gt;&lt;P&gt;// Return:&lt;/P&gt;&lt;P&gt;// ippStsNoErr no errors&lt;/P&gt;&lt;P&gt;// ippStsNullPtrErr pFFTSpec == NULL or pBufferSize == NULL&lt;/P&gt;&lt;P&gt;// ippStsContextMatchErr bad context identifier&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;I&gt;&lt;FONT color="#000080" size="2"&gt;&lt;P&gt;That provides information about required buffer size&lt;/P&gt;&lt;P&gt;for correct FFT processing. It can be than allocated&lt;/P&gt;&lt;P&gt;and pointer provided for FFT function.&lt;/P&gt;&lt;P&gt;If a user doesnt want to take control on all memory&lt;/P&gt;&lt;P&gt;buffers  he may provide NULL pointer&lt;/P&gt;&lt;P&gt;for FFT function  in such case memory will be allocated&lt;/P&gt;&lt;P&gt;inside FFT.&lt;/P&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;/B&gt;&lt;I&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;2. &lt;B&gt;&lt;I&gt;&lt;FONT color="#000080" size="2"&gt;You can use real FFT instead of cplx: &lt;/FONT&gt;&lt;/I&gt;&lt;/B&gt;&lt;I&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New CYR" color="#000080" size="2"&gt;&lt;P&gt;/* /////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;// FFT Real Packed Transforms&lt;/P&gt;&lt;P&gt;///////////////////////////////////////////////////////////////////////////// */&lt;/P&gt;&lt;P&gt;/* /////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;// Name: ippsFFTFwd_RToPerm, ippsFFTFwd_RToPack, ippsFFTFwd_RToCCS&lt;/P&gt;&lt;P&gt;// ippsFFTInv_PermToR, ippsFFTInv_PackToR, ippsFFTInv_CCSToR&lt;/P&gt;&lt;P&gt;// Purpose: compute forward and inverse FFT of real signal&lt;/P&gt;&lt;P&gt;// using Perm, Pack or Ccs packed format&lt;/P&gt;&lt;P&gt;// Arguments:&lt;/P&gt;&lt;P&gt;// pFFTSpec - pointer to FFT context&lt;/P&gt;&lt;P&gt;// pSrc - pointer to source signal&lt;/P&gt;&lt;P&gt;// pDst - pointer to destination signal&lt;/P&gt;&lt;P&gt;// pSrcDst - pointer to signal&lt;/P&gt;&lt;P&gt;// pBuffer - pointer to work buffer&lt;/P&gt;&lt;P&gt;// scaleFactor&lt;/P&gt;&lt;P&gt;// - scale factor for output result&lt;/P&gt;&lt;P&gt;// Return:&lt;/P&gt;&lt;P&gt;// ippStsNoErr no errors&lt;/P&gt;&lt;P&gt;// ippStsNullPtrErr pFFTSpec == NULL or&lt;/P&gt;&lt;P&gt;// pSrc == NULL or pDst == NULL&lt;/P&gt;&lt;P&gt;// ippStsContextMatchErr bad context identifier&lt;/P&gt;&lt;P&gt;// ippStsMemAllocErr memory allocation error&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2007 15:56:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/In-place-FFT-questions/m-p/872471#M9099</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2007-04-12T15:56:41Z</dc:date>
    </item>
  </channel>
</rss>

