GNU Radio's PAINT Package
paint_bc_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2015 Ron Economos.
4 *
5 * This is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3, or (at your option)
8 * any later version.
9 *
10 * This software is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this software; see the file COPYING. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef INCLUDED_PAINT_PAINT_BC_IMPL_H
22#define INCLUDED_PAINT_PAINT_BC_IMPL_H
23
24#include <paint/paint_bc.h>
25#include <gnuradio/fft/fft.h>
26
27#define OFDM_FFT_SIZE 4096
28
29namespace gr {
30 namespace paint {
31
32 class paint_bc_impl : public paint_bc
33 {
34 private:
35 int image_width;
36 int line_repeat;
37 int pixel_repeat;
38 int left_nulls;
39 int right_nulls;
40 int random_source;
41 int equalization_enable;
42 gr_complex m_point[1];
43 fft::fft_complex_rev ofdm_fft;
44 int ofdm_fft_size;
45 float normalization;
46 float magnitude_line[OFDM_FFT_SIZE];
47 float angle_line[OFDM_FFT_SIZE];
48 float angle_cos[OFDM_FFT_SIZE];
49 float angle_sin[OFDM_FFT_SIZE];
50 gr_complex inverse_sinc[OFDM_FFT_SIZE];
51
52 public:
53 paint_bc_impl(int width, int repeats, int equalization, int randomsrc, int inputs);
55
56 // Where all the action really happens
57 void forecast (int noutput_items, gr_vector_int &ninput_items_required);
58
59 int general_work(int noutput_items,
60 gr_vector_int &ninput_items,
61 gr_vector_const_void_star &input_items,
62 gr_vector_void_star &output_items);
63 };
64
65 } // namespace paint
66} // namespace gr
67
68#endif /* INCLUDED_PAINT_PAINT_BC_IMPL_H */
69
Definition paint_bc_impl.h:33
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
paint_bc_impl(int width, int repeats, int equalization, int randomsrc, int inputs)
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
<+description of block+>
Definition paint_bc.h:38
Definition paint_bc.h:29
#define OFDM_FFT_SIZE
Definition paint_bc_impl.h:27