GNU Radio's DAB Package
unpuncture_ff_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2017 Moritz Luca Schmid, Communications Engineering Lab (CEL) / Karlsruhe Institute of Technology (KIT).
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_DAB_UNPUNCTURE_FF_IMPL_H
22#define INCLUDED_DAB_UNPUNCTURE_FF_IMPL_H
23
24#include <dab/unpuncture_ff.h>
25
26namespace gr {
27 namespace dab {
28/*! \brief unpuncturing of a stream sequence
29 *
30 * unpuncturing of a stream sequence according to the puncturing_vector (writing a stream element at a '1' and writing the fillval at a '0')
31 *
32 * @param puncturing_vector vector with puncturing sequence, length of puncturing_vector is length of a stream sequence
33 * @param fillval value to fill in for a zero of the puncturing vector
34 *
35 */
37 private:
38 unsigned int ones(const std::vector<unsigned char> &puncturing_vector);
39
40 std::vector<unsigned char> d_puncturing_vector;
41 float d_fillval;
42 unsigned int d_vlen_in;
43 unsigned int d_vlen_out;
44
45 public:
46 unpuncture_ff_impl(const std::vector<unsigned char> &puncturing_vector, float fillval);
47
49
50 // Where all the action really happens
51 void forecast(int noutput_items, gr_vector_int &ninput_items_required);
52
53 int general_work(int noutput_items,
54 gr_vector_int &ninput_items,
55 gr_vector_const_void_star &input_items,
56 gr_vector_void_star &output_items);
57 };
58
59 } // namespace dab
60} // namespace gr
61
62#endif /* INCLUDED_DAB_UNPUNCTURE_FF_IMPL_H */
63
unpuncturing of a stream sequence
Definition unpuncture_ff_impl.h:36
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
unpuncture_ff_impl(const std::vector< unsigned char > &puncturing_vector, float fillval)
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
Definition unpuncture_ff.h:36
Definition complex_to_interleaved_float_vcf.h:28