mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
37 lines
849 B
C++
37 lines
849 B
C++
#pragma once
|
|
|
|
#include "common/dsp/complex.h"
|
|
#include "dsp/block.h"
|
|
#include "dsp/block_simple.h"
|
|
#include <cstdint>
|
|
|
|
namespace satdump
|
|
{
|
|
namespace ndsp
|
|
{
|
|
class DelayOneImagBlock : public BlockSimple<complex_t, complex_t>
|
|
{
|
|
private:
|
|
float lastSamp;
|
|
|
|
public:
|
|
DelayOneImagBlock();
|
|
~DelayOneImagBlock();
|
|
|
|
uint32_t process(complex_t *input, uint32_t nsamples, complex_t *output);
|
|
|
|
void init() {}
|
|
|
|
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
|