#include <gnuradio/fec/generic_encoder.h>
gr::fec::generic_encoder::generic_encoder |
( |
void |
| ) |
|
|
inline |
gr::fec::generic_encoder::generic_encoder |
( |
std::string |
name | ) |
|
virtual gr::fec::generic_encoder::~generic_encoder |
( |
| ) |
|
|
virtual |
std::string gr::fec::generic_encoder::alias |
( |
| ) |
|
|
inline |
virtual void gr::fec::generic_encoder::generic_work |
( |
void * |
in_buffer, |
|
|
void * |
out_buffer |
|
) |
| |
|
pure virtual |
virtual const char* gr::fec::generic_encoder::get_input_conversion |
( |
| ) |
|
|
virtual |
Set up a conversion type required to setup the data properly for this encoder. The encoder itself will not implement the conversion and expects an external wrapper (e.g., fec.extended_encoder) to read this value and "do the right
thing" to format the data.
The default behavior is 'none', which means no conversion is required. Whatever the get_input_item_size() value returns, the input is expected to conform directly to this. Generally, this means unpacked bytes.
If 'pack', the block expects the inputs to be packed bytes. The wrapper should implement a gr::blocks::pack_k_bits_bb(8) block for this.
The child class MAY implement this function. If not reimplemented, it returns "none".
virtual int gr::fec::generic_encoder::get_input_size |
( |
| ) |
|
|
pure virtual |
Returns the input size in items that the encoder object uses to encode a full frame. Often, this number is the number of bits per frame if the input format is unpacked. If the block expects packed bytes, then this value should be the number of bytes (number of bits / 8) per input frame.
The child class MUST implement this function.
virtual const char* gr::fec::generic_encoder::get_output_conversion |
( |
| ) |
|
|
virtual |
Set up a conversion type required to understand the output style of this encoder. Generally an encoder will produce unpacked bytes with a bit set in the LSB.
The default behavior is 'none', which means no conversion is required and the encoder produces unpacked bytes.
If 'packed_bits', the block produces packed bits and the wrapper should unpack these (using, for instance, gr::block::unpack_k_bits_bb(8)).
The child class MAY implement this function. If not reimplemented, it returns "none".
virtual int gr::fec::generic_encoder::get_output_size |
( |
| ) |
|
|
pure virtual |
Returns the output size in items that the encoder object produces after encoding a full frame. Often, this number is the number of bits in the outputted frame if the input format is unpacked. If the block produces packed bytes, then this value should be the number of bytes (number of bits / 8) per frame produced. This value is generally something like R*get_input_size() for a 1/R rate code.
The child class MUST implement this function.
virtual double gr::fec::generic_encoder::rate |
( |
| ) |
|
|
pure virtual |
virtual bool gr::fec::generic_encoder::set_frame_size |
( |
unsigned int |
frame_size | ) |
|
|
pure virtual |
int gr::fec::generic_encoder::unique_id |
( |
| ) |
|
int gr::fec::generic_encoder::base_unique_id |
|
static |
std::string gr::fec::generic_encoder::d_name |
int gr::fec::generic_encoder::my_id |
The documentation for this class was generated from the following file: