disable exceptions in visual studio, use xK notation for resolution, upgrade up to 32K resolution, mask resolution not doubled anymore, transform interactive controls to move, scale and rotate the selection

This commit is contained in:
2018-11-22 19:07:14 +01:00
parent 6f9b1b1c23
commit 86656cc7e3
12 changed files with 218 additions and 146 deletions

View File

@@ -71,6 +71,8 @@ public:
Node* current_panel = nullptr;
NodeScroll* panels;
const uint16_t main_id = const_hash("main");
const std::array<int, 6> res_map{ 512, 1024, 1536, 2048, 4096, 8192 };
const std::array<std::string, 6> res_map_str{ "2K", "4K", "6K", "8K", "16K", "32K" };
std::string doc_name = "no-name";
std::string doc_path;
std::string doc_dir;
@@ -192,6 +194,9 @@ public:
void title_update();
void update_memory_usage(size_t bytes);
void update_rec_frames();
int res_from_index(int i);
int res_to_index(int res);
std::string res_to_string(int res);
void cmd_convert(std::string pano_path, std::string out_path);
};