Early testing of video Recorder

This commit is contained in:
brunoherbelin
2020-07-26 01:28:20 +02:00
parent bc83f8a41c
commit 9fdc9e6c1a
4 changed files with 328 additions and 9 deletions

View File

@@ -5,6 +5,8 @@
#include <algorithm>
#include <map>
using namespace std;
// ImGui
#include "imgui.h"
#define IMGUI_DEFINE_MATH_OPERATORS
@@ -288,6 +290,10 @@ void UserInterface::handleKeyboard()
// select all
Mixer::manager().view()->selectAll();
}
else if (ImGui::IsKeyPressed( GLFW_KEY_R )) {
// toggle recording
Mixer::manager().session()->addRecorder(new H264Recorder);
}
}
// No CTRL modifier
@@ -865,7 +871,7 @@ void UserInterface::RenderPreview()
Rendering::manager().outputWindow().show();
if ( ImGui::MenuItem( ICON_FA_CAMERA_RETRO " Save frame") )
Mixer::manager().session()->addRecorder(new FrameRecorder);
Mixer::manager().session()->addRecorder(new PNGRecorder);
if ( ImGui::MenuItem( ICON_FA_TIMES " Close") )
Settings::application.widget.preview = false;