summaryrefslogtreecommitdiff
path: root/gr-fec/lib/cc_encoder_impl.h
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2014-05-17 19:23:44 -0400
committerTom Rondeau <tom@trondeau.com>2014-05-17 19:23:44 -0400
commit91b5f380b6c511624064f1b64ae3ebfd710d7272 (patch)
tree5c157b11cebf25e110d26f8829287f0b97fb0bfd /gr-fec/lib/cc_encoder_impl.h
parent3245fde378417687db10f7cdeb274c9fa126d4e8 (diff)
fec: wip: adding concept of padding for CC encoder/decoder.
When using terminated mode, the CC encoder adds K-1 bits to the output, which doesn't fit a full byte and will throw off the book-keeping in PDU or tagged mode. Padding to fill a byte tells both encoder and decoder to handle the extra bits.
Diffstat (limited to 'gr-fec/lib/cc_encoder_impl.h')
-rw-r--r--gr-fec/lib/cc_encoder_impl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-fec/lib/cc_encoder_impl.h b/gr-fec/lib/cc_encoder_impl.h
index 008887559b..77d5f42462 100644
--- a/gr-fec/lib/cc_encoder_impl.h
+++ b/gr-fec/lib/cc_encoder_impl.h
@@ -51,6 +51,7 @@ namespace gr {
int d_decision_t_size;
int d_start_state;
cc_mode_t d_mode;
+ int d_padding;
int d_output_size;
int parity(int x);
@@ -60,7 +61,7 @@ namespace gr {
public:
cc_encoder_impl(int frame_size, int k, int rate,
std::vector<int> polys, int start_state = 0,
- cc_mode_t mode=CC_STREAMING);
+ cc_mode_t mode=CC_STREAMING, bool padded=false);
~cc_encoder_impl();
bool set_frame_size(unsigned int frame_size);