Add CH0 audio capture and customer runtime diagnostics

Extend the internal driver ABI and public GVFG API for combined CH0 video/audio capture, PCM format discovery, blocking copy-out reads, extra-frame wake events, and coordinated teardown of video and audio readers.

Update the Qt sample with optional CH0 audio playback on a dedicated thread, customer-visible copy/zero-copy timing telemetry, mutually exclusive CH0/CH1 Y210 selection, and a refresh-safe temporary hide for the unsupported CH1 panel.

Harden Win32 error text conversion, document the new stream and ownership contracts, and package giga_ioctl plus the VC143 runtime in customer Debug/Release bundles.

Validation: git diff --check passed before commit. No build, package execution, runtime, audio-device, or capture-hardware test was run.
This commit is contained in:
Mark.lin
2026-09-01 12:26:27 +08:00
parent 226369df0e
commit 3f905d8a09
17 changed files with 1105 additions and 103 deletions
+8
View File
@@ -44,6 +44,11 @@ private:
std::atomic<bool> stopRequested{false};
std::atomic<bool> frameAvailable{false};
std::thread captureThread;
std::thread audioThread;
bool audioEnabled = false;
gvfg_audio_format_t audioFormat{};
std::atomic<uint64_t> audioFrames{0};
std::atomic<uint64_t> audioBytes{0};
std::atomic<double> getFrameAverageMs{0.0};
std::atomic<double> getFrameMaximumMs{0.0};
std::atomic<double> getFrameWindowMaximumMs{0.0};
@@ -68,6 +73,7 @@ private:
bool openDevice();
bool openChannel(int channel);
bool applyOutputFormat(int channel);
void updateOutputFormatOptions(int changedChannel = -1);
void closeDevice();
void startCapture(int channel);
void stopCapture(int channel);
@@ -87,7 +93,9 @@ private:
#endif
void appendLog(const QString &message);
void captureReadLoop(int channel);
void audioReadLoop(int channel);
void joinCaptureThread(int channel);
void joinAudioThread(int channel);
static constexpr qint64 kMaxLogFileBytes = 20ll * 1024ll * 1024ll;