~ubuntu-branches/ubuntu/trusty/gnuradio/trusty-updates

« back to all changes in this revision

Viewing changes to gnuradio-core/src/lib/filter/gr_fft_filter_ccc.h

  • Committer: Package Import Robot
  • Author(s): A. Maitland Bottoms
  • Date: 2012-03-16 20:30:18 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120316203018-o9cvujkbn563d8ou
Tags: 3.5.2.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
class gr_fft_filter_ccc;
29
29
typedef boost::shared_ptr<gr_fft_filter_ccc> gr_fft_filter_ccc_sptr;
30
 
GR_CORE_API gr_fft_filter_ccc_sptr gr_make_fft_filter_ccc (int decimation, const std::vector<gr_complex> &taps);
 
30
GR_CORE_API gr_fft_filter_ccc_sptr
 
31
gr_make_fft_filter_ccc (int decimation, const std::vector<gr_complex> &taps,
 
32
                        int nthreads=1);
31
33
 
32
34
//class gri_fft_filter_ccc_sse;
33
35
class gri_fft_filter_ccc_generic;
39
41
class GR_CORE_API gr_fft_filter_ccc : public gr_sync_decimator
40
42
{
41
43
 private:
42
 
  friend GR_CORE_API gr_fft_filter_ccc_sptr gr_make_fft_filter_ccc (int decimation, const std::vector<gr_complex> &taps);
 
44
  friend GR_CORE_API gr_fft_filter_ccc_sptr
 
45
    gr_make_fft_filter_ccc (int decimation, const std::vector<gr_complex> &taps,
 
46
                            int nthreads);
43
47
 
44
48
  int                      d_nsamples;
45
49
  bool                     d_updated;
55
59
   *
56
60
   * \param decimation  >= 1
57
61
   * \param taps        complex filter taps
 
62
   * \param nthreads    number of threads for the FFT to use
58
63
   */
59
 
  gr_fft_filter_ccc (int decimation, const std::vector<gr_complex> &taps);
 
64
  gr_fft_filter_ccc (int decimation, const std::vector<gr_complex> &taps,
 
65
                     int nthreads=1);
60
66
 
61
67
 public:
62
68
  ~gr_fft_filter_ccc ();
64
70
  void set_taps (const std::vector<gr_complex> &taps);
65
71
  std::vector<gr_complex> taps () const;
66
72
 
 
73
  /*!
 
74
   * \brief Set number of threads to use.
 
75
   */
 
76
  void set_nthreads(int n);
 
77
 
 
78
  /*!
 
79
   * \brief Get number of threads being used.
 
80
   */
 
81
  int nthreads() const;
 
82
 
67
83
  int work (int noutput_items,
68
84
            gr_vector_const_void_star &input_items,
69
85
            gr_vector_void_star &output_items);