Skip to content
Snippets Groups Projects

Feature/219/gui record options

Merged Iiro Rastas requested to merge feature/219/gui-record-options into master
5 files
+ 51
17
Compare changes
  • Side-by-side
  • Inline
Files
5
  • d3e66259
    The GUI now has a snapshot feature. The record button opens a popup
    window, which contains the different recording options.
    
    The cog icon now opens a scrollable list of all of the registered
    configurations, both local and remote. This window is created
    dynamically each time the cog icon is clicked, so it now includes all of the
    configurations that were available as the window was created.
@@ -493,6 +493,16 @@ const GLTexture &ftl::gui::Camera::captureFrame() {
return texture1_;
}
void ftl::gui::Camera::snapshot() {
UNIQUE_LOCK(mutex_, lk);
char timestamp[18];
std::time_t t = std::time(NULL);
std::strftime(timestamp, sizeof(timestamp), "%F-%H%M%S", std::localtime(&t));
cv::Mat image;
cv::flip(im1_, image, 0);
cv::imwrite(std::string(timestamp) + ".png", image);
}
nlohmann::json ftl::gui::Camera::getMetaData() {
return nlohmann::json();
}
Loading