Split GVFG customer API and preview helper

Refactor GVFG into a pull-based customer API with internal debug diagnostics in gvfg_debug.h. Move preview rendering into the separate gvfg_preview helper DLL and update the Qt sample to link it explicitly. Clean legacy callback/preview docs and removed SDK-internal render/log helper sources from the core GVFG DLL.
This commit is contained in:
Mark.lin
2026-06-15 17:06:12 +08:00
parent 97971e6242
commit d2657a69cb
29 changed files with 1066 additions and 1029 deletions
+2 -3
View File
@@ -1,8 +1,7 @@
#pragma once
#include <gvfg_capture.h>
#include "sample_preview_renderer.h"
#include <gvfg_preview.h>
#include <QString>
#include <QWidget>
@@ -57,7 +56,7 @@ private:
std::array<gvfg_device_info_t, GVFG_MAX_DEVICES> devices_{};
int deviceCount_ = 0;
gvfg_handle handle_ = nullptr;
SamplePreviewRenderer previewRenderer_;
gvfg_preview_handle previewHandle_ = nullptr;
bool captureRunning_ = false;
std::atomic<bool> captureStop_{false};
std::thread captureThread_;