2021-03-14 12:54:55 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "module.h"
|
|
|
|
|
#include <complex>
|
|
|
|
|
#include <fstream>
|
2021-10-22 15:26:17 +02:00
|
|
|
#include "common/dsp/random.h"
|
2021-04-08 23:51:45 +03:00
|
|
|
#include "falcon_video_encoder.hpp"
|
2021-03-14 12:54:55 +01:00
|
|
|
|
2021-03-22 19:03:08 +01:00
|
|
|
namespace spacex
|
2021-03-14 12:54:55 +01:00
|
|
|
{
|
|
|
|
|
class FalconDecoderModule : public ProcessingModule
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
FalconDecoderModule(std::string input_file, std::string output_file_hint, std::map<std::string, std::string> parameters);
|
|
|
|
|
~FalconDecoderModule();
|
|
|
|
|
void process();
|
2021-03-31 18:15:26 +02:00
|
|
|
void drawUI(bool window);
|
2021-03-14 12:54:55 +01:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
std::ifstream data_in;
|
|
|
|
|
std::ofstream data_out;
|
|
|
|
|
std::atomic<size_t> filesize;
|
|
|
|
|
std::atomic<size_t> progress;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
static std::string getID();
|
2021-07-21 00:54:48 +02:00
|
|
|
virtual std::string getIDM() { return getID(); };
|
2021-03-14 12:54:55 +01:00
|
|
|
static std::vector<std::string> getParameters();
|
|
|
|
|
static std::shared_ptr<ProcessingModule> getInstance(std::string input_file, std::string output_file_hint, std::map<std::string, std::string> parameters);
|
2021-04-08 23:51:45 +03:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
#ifdef USE_VIDEO_ENCODER
|
|
|
|
|
std::unique_ptr<FalconVideoEncoder> videoStreamEnc;
|
|
|
|
|
#endif
|
2021-03-14 12:54:55 +01:00
|
|
|
};
|
2021-04-08 23:51:45 +03:00
|
|
|
} // namespace falcon
|