Simplify capture to direct frame delivery
- support only the new vfg100_0821c driver; legacy driver behavior, done-index handling, and SDK frame-ring compatibility are intentionally unsupported - replace the backend frame ring, slots, pending indices, and DMA acquisition worker with direct wait-event then GetFrame/Acquire delivery - keep one copy buffer or one driver-owned zero-copy frame outstanding per channel and synchronize read completion during stop, format change, and teardown - remove obsolete lost_frames, FRAME_LOSS events, dropped-frame counters, sample warnings, and related public/internal documentation - remove periodic diagnostic register polling and let the event thread handle only format and plug state changes - add separate GetFrame total, DMA event wait, driver IOCTL, and SDK processing timing statistics to the diagnostic status view - clear stale DMA events before video start, preserve exact Win32 errors, and retry only documented transient not-ready/busy conditions within the caller timeout - delete the obsolete DMA ring data-flow diagram and update architecture/API documentation for the direct frame path Validation: user build exposed the Windows max macro conflict; corrected time_point::max with the macro-safe form. Final validation used static searches and git diff --check; no additional build was run.
This commit is contained in:
@@ -75,6 +75,10 @@ private:
|
||||
std::atomic<bool> captureStop_{false};
|
||||
std::atomic<bool> frameAvailable_{false};
|
||||
std::thread captureThread_;
|
||||
std::atomic<double> getFrameAverageMs_{0.0};
|
||||
std::atomic<double> getFrameMaximumMs_{0.0};
|
||||
std::atomic<double> getFrameWindowMaximumMs_{0.0};
|
||||
std::atomic<uint64_t> getFrameSamples_{0};
|
||||
uint64_t previewFailureCount_ = 0;
|
||||
std::atomic<double> previewCallAverageMs_{0.0};
|
||||
std::atomic<double> previewCallMaximumMs_{0.0};
|
||||
@@ -88,9 +92,6 @@ private:
|
||||
#if GVFG_INTERNAL_DIAGNOSTICS
|
||||
QString lastLoggedBackendError_;
|
||||
uint64_t lastDebugDmaErrors_ = 0;
|
||||
uint64_t lastDebugDroppedFrames_ = 0;
|
||||
uint64_t pendingDroppedFrames_ = 0;
|
||||
qint64 lastDroppedWarningMs_ = 0;
|
||||
bool haveDebugBaseline_ = false;
|
||||
#endif
|
||||
QFile logFile_;
|
||||
|
||||
Reference in New Issue
Block a user