otacast.
Encoder
¶The OTAcast encoder
block_bytes
¶Return the total number of bytes that with this encoder spans.
configure
()¶Configure the encoder with the given parameters. This is useful for reusing an existing coder. Note that the reconfiguration always implies a reset, so the coder will be in a clean state after this operation.
- param width
- The width of the encoding, i.e., now many symbols are combined for each encoded symbol.
- param block_bytes
- The size of the block in bytes.
- param symbol_bytes
- The size of a symbol in bytes.
encode
()¶Create a new encoded symbol.
The offset of the coding coefficients.
reset
()¶Reset the state of the encoder.
set_symbols_storage
()¶Set the symbols to be encoded.
symbol_bytes
¶Return the size in bytes per symbol supported by this encoder.
symbols
¶Return the number of symbols supported by this encoder.
symbols_storage
()¶Return the symbols storage bytearray.
width
¶Return the width of the encoding i.e. now many symbols are combined for each encoded symbol.