Statistics
| Branch: | Tag: | Revision:

root / gnuradio-core / src / lib / general / gr_fft_vcc_fftw.h @ 77a2d01c

History | View | Annotate | Download (1.7 kB)

1 b9ba2711 eb
/* -*- c++ -*- */
2 b9ba2711 eb
/*
3 b9ba2711 eb
 * Copyright 2004,2007,2008 Free Software Foundation, Inc.
4 b9ba2711 eb
 * 
5 b9ba2711 eb
 * This file is part of GNU Radio
6 b9ba2711 eb
 * 
7 b9ba2711 eb
 * GNU Radio is free software; you can redistribute it and/or modify
8 b9ba2711 eb
 * it under the terms of the GNU General Public License as published by
9 b9ba2711 eb
 * the Free Software Foundation; either version 3, or (at your option)
10 b9ba2711 eb
 * any later version.
11 b9ba2711 eb
 * 
12 b9ba2711 eb
 * GNU Radio is distributed in the hope that it will be useful,
13 b9ba2711 eb
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 b9ba2711 eb
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 b9ba2711 eb
 * GNU General Public License for more details.
16 b9ba2711 eb
 * 
17 b9ba2711 eb
 * You should have received a copy of the GNU General Public License
18 b9ba2711 eb
 * along with GNU Radio; see the file COPYING.  If not, write to
19 b9ba2711 eb
 * the Free Software Foundation, Inc., 51 Franklin Street,
20 b9ba2711 eb
 * Boston, MA 02110-1301, USA.
21 b9ba2711 eb
 */
22 b9ba2711 eb
23 b9ba2711 eb
#ifndef INCLUDED_GR_FFT_VCC_FFTW_H
24 b9ba2711 eb
#define INCLUDED_GR_FFT_VCC_FFTW_H
25 b9ba2711 eb
26 f914499f Josh Blum
#include <gr_core_api.h>
27 b9ba2711 eb
#include <gr_fft_vcc.h>
28 b9ba2711 eb
29 b9ba2711 eb
class gri_fft_complex;
30 b9ba2711 eb
31 f914499f Josh Blum
GR_CORE_API gr_fft_vcc_sptr
32 b9ba2711 eb
gr_make_fft_vcc_fftw (int fft_size, bool forward, const std::vector<float> &window, bool shift=false);
33 b9ba2711 eb
34 b9ba2711 eb
/*!
35 b9ba2711 eb
 * \brief Compute forward or reverse FFT.  complex vector in / complex vector out.
36 ed236703 eb
 * \ingroup dft_blk
37 b9ba2711 eb
 *
38 b9ba2711 eb
 * Concrete class that uses FFTW.
39 b9ba2711 eb
 */
40 f914499f Josh Blum
class GR_CORE_API gr_fft_vcc_fftw : public gr_fft_vcc
41 b9ba2711 eb
{
42 f914499f Josh Blum
  friend GR_CORE_API gr_fft_vcc_sptr
43 b9ba2711 eb
  gr_make_fft_vcc_fftw (int fft_size, bool forward, const std::vector<float> &window, bool shift);
44 b9ba2711 eb
45 b9ba2711 eb
  gri_fft_complex *d_fft;
46 b9ba2711 eb
47 b9ba2711 eb
  gr_fft_vcc_fftw (int fft_size, bool forward, const std::vector<float> &window, bool shift);
48 b9ba2711 eb
49 b9ba2711 eb
 public:
50 b9ba2711 eb
  ~gr_fft_vcc_fftw ();
51 b9ba2711 eb
52 b9ba2711 eb
  int work (int noutput_items,
53 b9ba2711 eb
            gr_vector_const_void_star &input_items,
54 b9ba2711 eb
            gr_vector_void_star &output_items);
55 b9ba2711 eb
};
56 b9ba2711 eb
57 b9ba2711 eb
58 b9ba2711 eb
#endif /* INCLUDED_GR_FFT_VCC_FFTW_H */