diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2019-08-07 21:45:12 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-08-09 23:04:28 +0200 |
commit | f7bbf2c1d8d780294f3e016aff239ca35eb6516e (patch) | |
tree | e09ab6112e02b2215b2d59ac24d3d6ea2edac745 /gr-fec/lib/cc_encoder_impl.h | |
parent | 78431dc6941e3acc67c858277dfe4a0ed583643c (diff) |
Tree: clang-format without the include sorting
Diffstat (limited to 'gr-fec/lib/cc_encoder_impl.h')
-rw-r--r-- | gr-fec/lib/cc_encoder_impl.h | 70 |
1 files changed, 37 insertions, 33 deletions
diff --git a/gr-fec/lib/cc_encoder_impl.h b/gr-fec/lib/cc_encoder_impl.h index 887553b6fa..ce3f1020a0 100644 --- a/gr-fec/lib/cc_encoder_impl.h +++ b/gr-fec/lib/cc_encoder_impl.h @@ -28,45 +28,49 @@ p * You should have received a copy of the GNU General Public License #include <gnuradio/fec/cc_encoder.h> namespace gr { - namespace fec { - namespace code { +namespace fec { +namespace code { - class FEC_API cc_encoder_impl : public cc_encoder - { - private: - //plug into the generic fec api - void generic_work(void *inbuffer, void *outbuffer); - int get_output_size(); - int get_input_size(); +class FEC_API cc_encoder_impl : public cc_encoder +{ +private: + // plug into the generic fec api + void generic_work(void* inbuffer, void* outbuffer); + int get_output_size(); + int get_input_size(); - //everything else... - unsigned char Partab[256]; - unsigned int d_frame_size; - unsigned int d_max_frame_size; - unsigned int d_rate; - unsigned int d_k; - std::vector<int> d_polys; - int d_start_state; - cc_mode_t d_mode; - int d_padding; - int d_output_size; + // everything else... + unsigned char Partab[256]; + unsigned int d_frame_size; + unsigned int d_max_frame_size; + unsigned int d_rate; + unsigned int d_k; + std::vector<int> d_polys; + int d_start_state; + cc_mode_t d_mode; + int d_padding; + int d_output_size; - int parity(int x); - int parityb(unsigned char x); - void partab_init(void); + int parity(int x); + int parityb(unsigned char x); + void partab_init(void); - 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, bool padded=false); - ~cc_encoder_impl(); +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, + bool padded = false); + ~cc_encoder_impl(); - bool set_frame_size(unsigned int frame_size); - double rate(); - }; + bool set_frame_size(unsigned int frame_size); + double rate(); +}; - } /* namespace code */ - } /* namespace fec */ +} /* namespace code */ +} /* namespace fec */ } /* namespace gr */ #endif /* INCLUDED_FEC_CC_ENCODER_IMPL_H */ |