remove obsolete lines

pull/3471/head
kallaballa 2 years ago
parent fa9c9a25e6
commit 9f5f2a1e30
  1. 1
      src/common/subsystems.hpp
  2. 2
      src/nanovg/nanovg-demo.cpp
  3. 4
      src/optflow/optflow-demo.cpp

@ -651,7 +651,6 @@ std::string get_info() {
}
ss << "\t GL sharing: " << (device.isExtensionSupported("cl_khr_gl_sharing") ? "true" : "false") << endl;
ss << "\t GL MSAA sharing: " << (device.isExtensionSupported("cl_khr_gl_msaa_sharing") ? "true" : "false") << endl;
ss << "\t VAAPI media sharing: " << (device.isExtensionSupported("cl_intel_va_api_media_sharing") ? "true" : "false") << endl;
return ss.str();
}

@ -206,7 +206,7 @@ int main(int argc, char **argv) {
//Release the frame buffer for use by OpenGL
gl::release_to_gl(frameBuffer);
//Render using nanovg;
//Render using nanovg
nvg::begin();
drawColorwheel(nvg::vg, WIDTH - 300, HEIGHT - 300, 250.0f, 250.0f, nvgHue);
nvg::end();

@ -3,15 +3,12 @@
constexpr unsigned long WIDTH = 1920;
constexpr unsigned long HEIGHT = 1080;
constexpr float SCALE_FACTOR = 0.5f;
constexpr unsigned long SCALED_WIDTH = WIDTH * SCALE_FACTOR;
constexpr unsigned long SCALED_HEIGHT = HEIGHT * SCALE_FACTOR;
constexpr bool OFFSCREEN = false;
constexpr int VA_HW_DEVICE_INDEX = 0;
constexpr float SCENE_CHANGE_THRESH = 0.29f;
constexpr float SCENE_CHANGE_THRESH_DIFF = 0.1f;
#include "../common/subsystems.hpp"
#include <list>
#include <vector>
#include <cstdint>
#include <string>
@ -23,7 +20,6 @@ constexpr float SCENE_CHANGE_THRESH_DIFF = 0.1f;
using std::cerr;
using std::endl;
using std::vector;
using std::list;
using std::string;
void prepare_background_mask(const cv::UMat& srcGrey, cv::UMat& mask) {

Loading…
Cancel
Save