summaryrefslogtreecommitdiff
path: root/gr-fec/lib/async_decoder_impl.h
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2015-09-24 21:59:36 -0400
committerTom Rondeau <tom@trondeau.com>2015-09-24 21:59:36 -0400
commitcbd70793b710abe4e92e960f23c3286f7270dd65 (patch)
tree8a788eaf5b6f051f52ec59b1a1cf2100dc8dc68c /gr-fec/lib/async_decoder_impl.h
parent2e7800ff6f8dbf16775b8682c5297417e460fa67 (diff)
fec: Adds MTU parameter to async and tagged stream blocks.
The maximum transmission unit (MTU, in bytes) sets up the encoders and decoders with enough internal buffer space to accommodate frames of varying sizes up to the MTU. Proections placed to make sure incoming tagged streams and PDUs don't exceed this. This also fixes a bug in the tagged stream encoder and decoder blocks to properly use calculate_output_stream_length.
Diffstat (limited to 'gr-fec/lib/async_decoder_impl.h')
-rw-r--r--gr-fec/lib/async_decoder_impl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-fec/lib/async_decoder_impl.h b/gr-fec/lib/async_decoder_impl.h
index 53dc84fbe3..abbe55e105 100644
--- a/gr-fec/lib/async_decoder_impl.h
+++ b/gr-fec/lib/async_decoder_impl.h
@@ -43,6 +43,7 @@ namespace gr {
bool d_packed;
bool d_rev_pack;
+ int d_mtu;
size_t d_max_bits_in;
float *d_tmp_f32;
@@ -54,7 +55,8 @@ namespace gr {
public:
async_decoder_impl(generic_decoder::sptr my_decoder,
- bool packed=false, bool rev_pack=true);
+ bool packed=false, bool rev_pack=true,
+ int mtu=1500);
~async_decoder_impl();
int general_work(int noutput_items,