16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 15:09:19 +02:00

cameraview

This commit is contained in:
milek7
2019-04-09 00:58:36 +02:00
parent c0b11a4517
commit 317af2e5ba
4 changed files with 87 additions and 5 deletions

View File

@@ -9,6 +9,14 @@ class cameraview_panel : public ui_panel
std::atomic_bool exit_thread = true;
std::thread workthread;
uint8_t* image_ptr = nullptr;
int image_w, image_h;
std::mutex mutex;
std::condition_variable cv;
std::optional<opengl_texture> texture;
void workthread_func();
public: