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
@@ -1679,6 +1679,13 @@ namespace gvfg::internal
return last_error_.c_str();
}
void XdmaCaptureSession::get_debug_stats(xdma_stream_stats_t &outStats, uint64_t &outWaitTimeouts) const
{
std::lock_guard<std::mutex> lock(mutex_);
outStats = stats_;
outWaitTimeouts = wait_timeout_count_;
}
uint32_t XdmaCaptureSession::active_input_path() const
{
return stream_desc_.input == XDMA_INPUT_HDMI ? 1u : 0u;
@@ -45,6 +45,7 @@ namespace gvfg::internal
xdma_status_t release_frame(const xdma_frame_t &frame);
const char *last_error() const;
void get_debug_stats(xdma_stream_stats_t &outStats, uint64_t &outWaitTimeouts) const;
private:
xdma_status_t open_device(const XdmaDevice &device);