Separate internal Sample diagnostics

Compared with 83be436:

- move private backend, DMA, delivery, startup, and frame timing diagnostics into a dedicated InternalDiagnostics module

- keep the capture controller independent from gvfg_debug.h and private backend baseline structures

- compile the diagnostics module and diagnostic signal path only for Debug builds

- keep Release builds free of diagnostic collection and aligned with the customer-facing capture flow

Validation: git diff --check passed. MSVC Release and Debug clean builds completed successfully, and the updated Sample behavior was tested on hardware.
This commit is contained in:
Mark.lin
2026-09-21 15:24:59 +08:00
parent 83be436e71
commit 5ee2ee12e6
6 changed files with 313 additions and 126 deletions
+2
View File
@@ -76,8 +76,10 @@ MainWindow::MainWindow(QWidget *parent)
connect(controller_, &CaptureController::statusChanged, ui_->statusLabel, &QLabel::setText);
connect(controller_, &CaptureController::sdiInfoChanged, ui_->sdiInfoLabel, &QLabel::setText);
connect(controller_, &CaptureController::logMessage, log_, &SampleLog::append, Qt::QueuedConnection);
#if GVFG_INTERNAL_DIAGNOSTICS
connect(controller_, &CaptureController::diagnosticMessage, log_, &SampleLog::appendDiagnostic,
Qt::QueuedConnection);
#endif
connect(log_, &SampleLog::lineReady, this, &MainWindow::appendLogLine);
connect(controller_, &CaptureController::previewSourceSizeChanged, this,
[this](int channel, int width, int height) {