23 #ifndef INCLUDED_TPC_ENCODER_H
24 #define INCLUDED_TPC_ENCODER_H
39 tpc_encoder (std::vector<int> row_polys, std::vector<int> col_polys,
int krow,
int kcol,
int bval,
int qval);
42 void generic_work(
void *inBuffer,
void *outbuffer);
43 int get_output_size();
46 std::vector<int> d_rowpolys;
47 std::vector<int> d_colpolys;
57 std::vector< std::vector<int> > rowOutputs;
58 std::vector< std::vector<int> > rowNextStates;
60 std::vector< std::vector<int> > colOutputs;
61 std::vector< std::vector<int> > colNextStates;
63 std::vector<int> rowTail;
64 std::vector<int> colTail;
77 std::vector<unsigned char> inputWithPad;
79 std::vector< std::vector<uint8_t> > rowEncodedBits;
80 std::vector<unsigned char> rowToEncode;
81 size_t numRowsToEncode;
82 std::vector<uint8_t> rowEncoded_block;
84 std::vector< std::vector<uint8_t> > colEncodedBits;
85 std::vector<unsigned char> colToEncode;
87 std::vector<uint8_t> colEncoded_block;
89 void block_conv_encode( std::vector<uint8_t> &output,
90 std::vector<uint8_t> input,
91 std::vector< std::vector<int> > transOutputVec,
92 std::vector< std::vector<int> > transNextStateVec,
93 std::vector<int> tail,
101 static generic_encoder::sptr make(std::vector<int> row_poly, std::vector<int> col_poly,
int krow,
int kcol,
int bval,
int qval);
102 double rate() {
return (1.0*get_input_size() / get_output_size()); }
Definition: tpc_encoder.h:36
bool set_frame_size(unsigned int)
Definition: tpc_encoder.h:103
Include this header to use the message passing features.
Definition: logger.h:131
Definition: generic_encoder.h:34
boost::shared_ptr< generic_encoder > sptr
Definition: generic_encoder.h:49
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:30
double rate()
Definition: tpc_encoder.h:102