Refactor GVFG channel and driver access flow

- support only the new vfg100_0821c driver; legacy drivers and IOCTL contracts are intentionally unsupported
- use one SDK handle per physical device with independent CH0/CH1 sessions and selectable event masks
- expose Device Manager friendly names and remove redundant enumerated device indices
- align active capture IOCTLs with the new driver while omitting unsupported OPEN_VIDEO/CLOSE_VIDEO calls
- isolate IOCTL codes, request layouts, and DeviceIoControl calls in the new giga_ioctl DLL
- block reads of pure write-only registers while preserving dual-semantics interrupt status reads
- reduce duplicate signal register queries during open/start
- add zero-copy/copy driver GetFrame timing in microseconds and show it in the preview status
- update public/internal documentation for the revised lifecycle and channel APIs

Validation: static searches and git diff --check only; build intentionally not run.
This commit is contained in:
Mark.lin
2026-08-21 17:52:04 +08:00
parent f783e21476
commit 1574e90b49
21 changed files with 805 additions and 437 deletions
+1 -4
View File
@@ -69,6 +69,7 @@ private:
std::array<gvfg_device_info_t, GVFG_MAX_DEVICES> devices_{};
int deviceCount_ = 0;
gvfg_handle handle_ = nullptr;
int selectedChannel_ = GVFG_CHANNEL_0;
gvfg_preview_handle previewHandle_ = nullptr;
std::atomic<bool> captureRunning_{false};
std::atomic<bool> captureStop_{false};
@@ -79,10 +80,6 @@ private:
std::atomic<double> previewCallMaximumMs_{0.0};
std::atomic<double> previewCallWindowMaximumMs_{0.0};
std::atomic<uint64_t> previewCallSamples_{0};
std::atomic<double> readFrameCallAverageMs_{0.0};
std::atomic<double> readFrameCallMaximumMs_{0.0};
std::atomic<double> readFrameCallWindowMaximumMs_{0.0};
std::atomic<uint64_t> readFrameCallSamples_{0};
QTimer *runtimeStatusTimer_ = nullptr;
gvfg_signal_status_t cachedSignalStatus_{};
bool haveCachedSignalStatus_ = false;