satdump/src-core/common/dsp/baseband_interface.cpp

22 lines
507 B
C++
Raw Normal View History

2022-05-03 23:53:23 +02:00
#include "baseband_interface.h"
namespace dsp
{
BasebandType basebandTypeFromString(std::string type)
{
if (type == "s16")
return IS_16;
else if (type == "s8")
return IS_8;
else if (type == "f32")
return CF_32;
else if (type == "u8")
return IU_8;
#ifdef BUILD_ZIQ
else if (type == "ziq")
return ZIQ;
#endif
else
throw std::runtime_error("Unknown baseband type " + type);
}
}