satdump/src-core/dsp/digital/bits_repack.h
2026-05-10 22:42:37 +02:00

46 lines
No EOL
1 KiB
C++

#pragma once
#include "dsp/block.h"
#include "dsp/block_simple.h"
#include <cstdint>
namespace satdump
{
namespace ndsp
{
class BitsRepackBlock : public BlockSimple<int8_t, int8_t>
{
private:
uint8_t shifter;
int in_shifter;
public:
uint32_t process(int8_t *input, uint32_t nsamples, int8_t *output);
public:
BitsRepackBlock();
~BitsRepackBlock();
void init()
{
shifter = 0;
in_shifter = 0;
}
nlohmann::ordered_json get_cfg_list()
{
nlohmann::ordered_json p;
return p;
}
nlohmann::json get_cfg(std::string key) { throw satdump_exception(key); }
cfg_res_t set_cfg(std::string key, nlohmann::json v)
{
throw satdump_exception(key);
return RES_OK;
}
};
} // namespace ndsp
} // namespace satdump