satdump/src-core/common/detect_header.h

16 lines
316 B
C
Raw Normal View History

#pragma once
#include <string>
2023-05-07 20:44:22 +02:00
#include <cstdint>
#include "nlohmann/json.hpp"
struct HeaderInfo
{
bool valid = false;
uint64_t samplerate = 0;
std::string type;
};
2023-05-07 20:44:22 +02:00
HeaderInfo try_parse_header(std::string file);
void try_get_params_from_input_file(nlohmann::json &parameters, std::string input_file);