introduced makeUncurrent() in Viz2D

pull/3471/head
kallaballa 2 years ago
parent a36d86d01e
commit b13e435709
  1. 5
      src/common/viz2d.cpp

@ -405,6 +405,11 @@ void Viz2D::write(std::function<void(const cv::UMat&)> fn) {
void Viz2D::makeCurrent() { void Viz2D::makeCurrent() {
glfwMakeContextCurrent(getGLFWWindow()); glfwMakeContextCurrent(getGLFWWindow());
} }
void Viz2D::makeUncurrent() {
glfwMakeContextCurrent(nullptr);
}
#ifndef __EMSCRIPTEN__ #ifndef __EMSCRIPTEN__
cv::VideoWriter& Viz2D::makeVAWriter(const string &outputFilename, const int fourcc, const float fps, const cv::Size &frameSize, const int vaDeviceIndex) { cv::VideoWriter& Viz2D::makeVAWriter(const string &outputFilename, const int fourcc, const float fps, const cv::Size &frameSize, const int vaDeviceIndex) {
writerPath_ = outputFilename; writerPath_ = outputFilename;

Loading…
Cancel
Save