#pragma once #include "src/wall-atlas.hpp" #include #include namespace floormat::wall_tool { struct options { String input_dir, input_file, output_dir; bool use_alpha = false; }; struct frame { cv::Mat4b mat; Vector2ui offset{}, size; }; struct group { std::vector frames; Wall::Group_ G; }; struct state { options& opts; const wall_atlas_def& old_atlas; wall_atlas_def& new_atlas; std::vector& groups; uint32_t& n_frames; cv::Mat4b& dest; int& error; }; } // namespace floormat::wall_tool