|
CCSDS 124.0-B-1 C++ 1.0.0
CCSDS 124.0-B-1 Lossless Compression
|
CCSDS 124.0-B-1 decompressor with static memory allocation. More...
#include <decompressor.hpp>
Public Member Functions | |
| Decompressor (std::uint8_t robustness=0) noexcept | |
| Construct decompressor with configuration. | |
| void | set_initial_mask (const BitVector< N > &initial_mask) noexcept |
| Set the initial mask. | |
| void | reset () noexcept |
| Reset decompressor to initial state. | |
| Error | decompress_packet (BitReader &reader, BitVector< N > &output) noexcept |
| Decompress a single compressed packet. | |
| std::size_t | time_index () const noexcept |
| Get current time index. | |
| std::uint8_t | robustness () const noexcept |
| Get robustness level. | |
| const BitVector< N > & | mask () const noexcept |
| Get current mask. | |
CCSDS 124.0-B-1 decompressor with static memory allocation.
Template class that implements the CCSDS 124.0-B-1 decompression algorithm. All memory is statically allocated based on template parameters.
| N | Packet length in bits (F) |
Definition at line 45 of file decompressor.hpp.
|
inlineexplicitnoexcept |
Construct decompressor with configuration.
| robustness | Base robustness level R_t (0-7) |
Definition at line 52 of file decompressor.hpp.
References ccsds124::Decompressor< N >::reset().
|
inlinenoexcept |
Decompress a single compressed packet.
| reader | Bit reader positioned at packet start |
| output | Decompressed output packet (length N) |
Definition at line 85 of file decompressor.hpp.
References ccsds124::bit_insert(), ccsds124::count_decode(), ccsds124::BitVector< N >::data(), ccsds124::detail::extract_msb(), ccsds124::BitVector< N >::get_bit(), ccsds124::BitVector< N >::hamming_weight(), ccsds124::Ok, ccsds124::BitVector< N >::or_of(), ccsds124::rle_decode(), and ccsds124::Underflow.
Referenced by ccsds124::decompress().
|
inlinenoexcept |
Get current mask.
Definition at line 309 of file decompressor.hpp.
|
inlinenoexcept |
Reset decompressor to initial state.
Definition at line 71 of file decompressor.hpp.
Referenced by ccsds124::Decompressor< N >::Decompressor().
|
inlinenoexcept |
Get robustness level.
Definition at line 302 of file decompressor.hpp.
|
inlinenoexcept |
Set the initial mask.
| initial_mask | Initial mask M_0 |
Definition at line 63 of file decompressor.hpp.
|
inlinenoexcept |
Get current time index.
Definition at line 295 of file decompressor.hpp.