mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-04 05:30:32 -05:00 
			
		
		
		
	
		
			
	
	
		
			24 lines
		
	
	
		
			411 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
		
			411 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
								 | 
							
								#ifndef INCLUDE_KISSENGINE_H
							 | 
						||
| 
								 | 
							
								#define INCLUDE_KISSENGINE_H
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#include "dsp/fftengine.h"
							 | 
						||
| 
								 | 
							
								#include "dsp/kissfft.h"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class KissEngine : public FFTEngine {
							 | 
						||
| 
								 | 
							
								public:
							 | 
						||
| 
								 | 
							
									void configure(int n, bool inverse);
							 | 
						||
| 
								 | 
							
									void transform();
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									Complex* in();
							 | 
						||
| 
								 | 
							
									Complex* out();
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								protected:
							 | 
						||
| 
								 | 
							
									typedef kissfft<Real, Complex> KissFFT;
							 | 
						||
| 
								 | 
							
									KissFFT m_fft;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									std::vector<Complex> m_in;
							 | 
						||
| 
								 | 
							
									std::vector<Complex> m_out;
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#endif // INCLUDE_KISSENGINE_H
							 |