mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
22 lines
507 B
C++
22 lines
507 B
C++
|
|
#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);
|
||
|
|
}
|
||
|
|
}
|