File plugin.hpp
File List > offload_data > plugin.hpp
Go to the documentation of this file
#pragma once
#include "illixr/data_format/poses/head_pose.hpp"
#include "illixr/error_util.hpp"
#include "illixr/global_module_defs.hpp"
#include "illixr/phonebook.hpp"
#include "illixr/plugin.hpp"
#include "illixr/switchboard.hpp"
namespace ILLIXR {
class offload_data : public plugin {
public:
[[maybe_unused]] offload_data(const std::string& name, phonebook* pb);
void callback(const switchboard::ptr<const data_format::pose::texture_pose>& datum);
~offload_data() override;
private:
void write_metadata();
void write_data_to_disk();
const std::shared_ptr<switchboard> switchboard_;
std::vector<long> time_seq_;
std::vector<switchboard::ptr<const data_format::pose::texture_pose>> offload_data_container_;
int percent_;
int img_idx_;
bool enable_offload_;
bool is_success_;
std::string obj_dir_;
};
} // namespace ILLIXR