summaryrefslogtreecommitdiff
path: root/gr-fec/lib/async_decoder_impl.h
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2020-08-11 19:34:45 +0100
committerMartin Braun <martin@gnuradio.org>2020-08-14 03:34:54 -0700
commit6d7bcb67b10f7db8e36ef12e9ed039511e8dbacd (patch)
treeae416262ffeb15c659c16790bd12d710126e2dcb /gr-fec/lib/async_decoder_impl.h
parente8a43cb754183c9e7461e0651f388bf16d2ccce3 (diff)
fec/async_decoder: Remove manual memory management
Diffstat (limited to 'gr-fec/lib/async_decoder_impl.h')
-rw-r--r--gr-fec/lib/async_decoder_impl.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/gr-fec/lib/async_decoder_impl.h b/gr-fec/lib/async_decoder_impl.h
index b8a73fb6bd..2c9bf9b0a1 100644
--- a/gr-fec/lib/async_decoder_impl.h
+++ b/gr-fec/lib/async_decoder_impl.h
@@ -13,6 +13,7 @@
#include <gnuradio/blocks/pack_k_bits.h>
#include <gnuradio/fec/async_decoder.h>
+#include <volk/volk_alloc.hh>
namespace gr {
namespace fec {
@@ -25,16 +26,16 @@ private:
pmt::pmt_t d_in_port;
pmt::pmt_t d_out_port;
- blocks::kernel::pack_k_bits* d_pack;
+ blocks::kernel::pack_k_bits d_pack;
bool d_packed;
bool d_rev_pack;
int d_mtu;
size_t d_max_bits_in;
- float* d_tmp_f32;
- int8_t* d_tmp_u8;
- uint8_t* d_bits_out;
+ volk::vector<float> d_tmp_f32;
+ volk::vector<int8_t> d_tmp_u8;
+ volk::vector<uint8_t> d_bits_out;
void decode_packed(pmt::pmt_t msg);
void decode_unpacked(pmt::pmt_t msg);