diff options
Diffstat (limited to 'gr-fec/lib/ldpc_encoder_impl.h')
-rw-r--r-- | gr-fec/lib/ldpc_encoder_impl.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/gr-fec/lib/ldpc_encoder_impl.h b/gr-fec/lib/ldpc_encoder_impl.h index e4293253fa..5889f116d2 100644 --- a/gr-fec/lib/ldpc_encoder_impl.h +++ b/gr-fec/lib/ldpc_encoder_impl.h @@ -31,31 +31,31 @@ #include <vector> namespace gr { - namespace fec { - - class ldpc_encoder_impl : public ldpc_encoder - { - private: - //plug into the generic fec api - void generic_work(void *inBuffer, void *outbuffer); - - // memory allocated for processing - int outputSize; - int inputSize; - alist d_list; - cldpc d_code; - - public: - ldpc_encoder_impl(std::string alist_file); - ~ldpc_encoder_impl(); - - double rate() { return (1.0*get_input_size() / get_output_size()); } - bool set_frame_size(unsigned int frame_size) { return false; } - int get_output_size(); - int get_input_size(); - }; - - } -} +namespace fec { + +class ldpc_encoder_impl : public ldpc_encoder +{ +private: + // plug into the generic fec api + void generic_work(void* inBuffer, void* outbuffer); + + // memory allocated for processing + int outputSize; + int inputSize; + alist d_list; + cldpc d_code; + +public: + ldpc_encoder_impl(std::string alist_file); + ~ldpc_encoder_impl(); + + double rate() { return (1.0 * get_input_size() / get_output_size()); } + bool set_frame_size(unsigned int frame_size) { return false; } + int get_output_size(); + int get_input_size(); +}; + +} // namespace fec +} // namespace gr #endif /* INCLUDED_LDPC_ENCODER_IMPL_H */ |