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
+30
View File
@@ -33,6 +33,10 @@ if not exist "%SOURCE_BIN%\gvfg.dll" (
echo [package] ERROR: gvfg.dll not found.
goto fail
)
if not exist "%SOURCE_BIN%\giga_ioctl.dll" (
echo [package] ERROR: giga_ioctl.dll not found.
goto fail
)
if not exist "%SOURCE_BIN%\gvfg_preview.dll" (
echo [package] ERROR: gvfg_preview.dll not found.
goto fail
@@ -49,6 +53,7 @@ mkdir "%STAGE_DIR%" || goto fail
echo [package] Copy application files...
copy /Y "%SOURCE_BIN%\gvfg_qt_preview.exe" "%STAGE_DIR%\" >nul || goto fail
copy /Y "%SOURCE_BIN%\gvfg.dll" "%STAGE_DIR%\" >nul || goto fail
copy /Y "%SOURCE_BIN%\giga_ioctl.dll" "%STAGE_DIR%\" >nul || goto fail
copy /Y "%SOURCE_BIN%\gvfg_preview.dll" "%STAGE_DIR%\" >nul || goto fail
echo [package] Deploy Qt runtime...
@@ -56,6 +61,31 @@ if exist "%VSDEVCMD%" call "%VSDEVCMD%" -arch=x64 >nul || goto fail
"%WINDEPLOYQT%" --release --compiler-runtime --force --dir "%STAGE_DIR%" "%STAGE_DIR%\gvfg_qt_preview.exe"
if errorlevel 1 goto fail
echo [package] Deploy MSVC runtime...
if not defined VCToolsRedistDir (
echo [package] ERROR: VCToolsRedistDir was not set by VsDevCmd.bat.
goto fail
)
set "VC_RUNTIME_DIR=%VCToolsRedistDir%x64\Microsoft.VC143.CRT"
if not exist "%VC_RUNTIME_DIR%\msvcp140.dll" (
echo [package] ERROR: MSVC runtime not found in "%VC_RUNTIME_DIR%".
goto fail
)
copy /Y "%VC_RUNTIME_DIR%\*.dll" "%STAGE_DIR%\" >nul || goto fail
if not exist "%STAGE_DIR%\msvcp140.dll" (
echo [package] ERROR: msvcp140.dll was not deployed.
goto fail
)
if not exist "%STAGE_DIR%\vcruntime140.dll" (
echo [package] ERROR: vcruntime140.dll was not deployed.
goto fail
)
if not exist "%STAGE_DIR%\vcruntime140_1.dll" (
echo [package] ERROR: vcruntime140_1.dll was not deployed.
goto fail
)
echo [package] Create zip...
powershell -NoProfile -ExecutionPolicy Bypass -Command ^
"Compress-Archive -Path '%STAGE_DIR%' -DestinationPath '%ZIP_PATH%' -Force"