Restore GVFG features missing from GigabyteLib

Compared with a04bd61:

- Restore the existing gvfg_set_channel_video_format API and the Qt sample YUY2/Y210 output-format controls with the original dual-channel Y210 restriction.

- Restore gvfg_debug_read_register, gvfg_debug_write_register, and the original gvfg_debug_get_channel_backend_stats names and fields so the established internal API remains compatible.

- Implement the three missing operations through a small in-process driver extension using the existing register read/write requests; capture, audio, events, signal queries, copy, and zero-copy paths continue to use GvfgSdk.lib.

- Mark every fallback as a GIGABYTELIB GAP and add a focused gap report requesting official format-selection and diagnostic register APIs from the GigabyteLib owner.

- Remove empty legacy backend and giga_ioctl directories without restoring giga_ioctl.dll or a second capture backend.

Validation: git diff --cached --check passed. MSVC x64 Release and Debug gvfg.dll builds passed, the Release Qt sample rebuilt and linked successfully, dumpbin confirmed all original 32 exports are present, and the Release package contains gvfg.dll without giga_ioctl.dll or private GigabyteLib files. The actual register operations, output-format switching, capture, audio, zero-copy, hot-plug, dual-channel behavior, shutdown, MinGW, and hardware behavior were not runtime-tested.
This commit is contained in:
Mark.lin
2026-09-14 10:22:09 +08:00
parent a04bd611f9
commit 9bc38c4862
20 changed files with 413 additions and 57 deletions
+22
View File
@@ -0,0 +1,22 @@
# GigabyteLib 1.0.0 integration gaps
Capture, audio, events, signal information, copy mode, and zero-copy mode use
the supervisor-provided `GvfgSdk.lib` API directly.
## Action required from the GigabyteLib owner
The following existing GVFG capabilities are not exposed by `GvfgSdk.lib 1.0.0`:
| GVFG capability | Current temporary implementation | Requested GigabyteLib API |
|---|---|---|
| Select YUY2 or Y210 output | Write global register `0x080` through the isolated driver extension | Add a channel-aware `GvfgSetVideoFormat` or equivalent |
| Read a diagnostic register | Driver read-register request in `gigabyte_driver_extensions.cpp` | Add a supported diagnostic register-read API |
| Write a diagnostic register | Driver write-register request in `gigabyte_driver_extensions.cpp` | Add a supported diagnostic register-write API |
These are marked `GIGABYTELIB GAP` in source. They intentionally do not use
the removed `giga_ioctl.dll`; the minimal fallback is compiled into `gvfg.dll`.
Once official `Gvfg*` functions exist, replace the three extension calls and
delete `gigabyte_driver_extensions.*`.
The library owner should also confirm whether output-format register `0x080`
is global or channel-specific and whether CH0 and CH1 may both select Y210.