mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
46 lines
No EOL
1 KiB
C++
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
|