CaptureDemo/ is listed in .gitignore, but 490 previously committed files under it (old CaptureDemo sources, 0714 Y210 build, vfg100 driver package, and notes) were still tracked and have been deleted from the working tree. Remove them from version control; they remain available in history. Drop the CaptureDemo entry from both READMEs and note in AGENTS.md that the directory is local-only. Validation: git diff --cached --check passed. No build run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
115 lines
5.5 KiB
Markdown
115 lines
5.5 KiB
Markdown
# GVFG Standalone SDK
|
|
|
|
English | [繁體中文](README.zh-TW.md)
|
|
|
|
The current SDK version is 3.2.0, defined in [GVFG_SDK/CMakeLists.txt](GVFG_SDK/CMakeLists.txt).
|
|
Capture uses `gvfg.dll`. The optional OSD feature uses `gvfg_osd.dll`, and the optional
|
|
playback feature uses `gvfg_playback.dll`. Audio and Preview are internal static libraries
|
|
of Playback and are no longer deployed as separate DLLs.
|
|
|
|
## Where to start
|
|
|
|
| Goal | Document |
|
|
|---|---|
|
|
| First use of the capture API (including OSD) | [Customer API Guide](docs/GVFG_CUSTOMER_API.md) |
|
|
| Play video, audio, or synchronized audio/video | [Unified Playback Guide](docs/GVFG_PLAYBACK_API.md) |
|
|
| Look up structs, parameters, limits, and status codes | [Public API Reference](docs/GVFG_Customer_doc/GVFG_CUSTOMER_API_REFERENCE.md) |
|
|
| Understand sources, ownership, and threading | [Learning Index](docs/GVFG_LEARNING_INDEX.md) |
|
|
| Build the SDK, link the demo, install | [Internal Build Guide](docs/INTERNAL_BUILD_GUIDE.md) |
|
|
| Maintain sync, WASAPI, and D3D implementation | [Playback Maintenance Notes](GVFG_SDK/helpers/gvfg_playback/README.md) |
|
|
|
|
Customer documents are available in English (`*.md`) and Traditional Chinese
|
|
(`*.zh-TW.md`); internal maintenance documents are in Chinese only.
|
|
Customers should start with the guides. Calling the API does not require understanding
|
|
the backend, the driver, or the sync algorithms.
|
|
|
|
## Source layout and responsibilities
|
|
|
|
```text
|
|
GVFG_SDK/
|
|
sdk/gvfg/ Capture C API, GigabyteLib adapter, GPU conversion
|
|
helpers/gvfg_osd/ OSD DLL: fonts, text measurement, per-channel GPU OSD
|
|
helpers/gvfg_playback/ Public playback API, modes, clock, buffering, sync scheduling
|
|
helpers/gvfg_audio_playback/ Internal static WASAPI backend
|
|
helpers/gvfg_preview/ Internal static D3D backend
|
|
third_party/GigabyteLib/ Vendor GigabyteLib headers and libraries
|
|
docs/ Customer and maintenance documentation
|
|
tools/gigabytelib_probe/ GigabyteLib probing tool
|
|
../Costomer_SDK_Release/GVFG_Customer_Sample/ Standalone Qt demo project
|
|
../srcroot/ Full Viewer, consumes the Standalone SDK
|
|
```
|
|
|
|
The application owns capture read/release as well as the device and channel lifecycle;
|
|
Playback only manages the copies it receives for playback.
|
|
GigabyteLib `GvfgSdk.lib` is statically linked into the capture DLL. Private vendor
|
|
headers are not part of the customer API.
|
|
|
|
## Build
|
|
|
|
The SDK does not require Qt. From a command prompt with the MSVC x64 environment loaded,
|
|
run in this directory:
|
|
|
|
```bat
|
|
cmake -S GVFG_SDK -B GVFG_SDK/build_release -G Ninja -DCMAKE_BUILD_TYPE=Release
|
|
cmake --build GVFG_SDK/build_release --target gvfg gvfg_osd gvfg_playback
|
|
```
|
|
|
|
The top-level SDK CMake does not build the Qt sample and has no `BUILD_GVFG_SAMPLES`
|
|
option. Build the demo from its [standalone project directory](../Costomer_SDK_Release/GVFG_Customer_Sample/README.md);
|
|
it only needs Qt Widgets.
|
|
The bundled vendor `.lib` requires a compatible MSVC x64 build environment; MinGW clients
|
|
can link against the generated GNU import libraries. If `dlltool` is not found
|
|
automatically, set `GVFG_MINGW_DLLTOOL`; see the build guide for details.
|
|
`GVFG_ENABLE_INTERNAL_DIAGNOSTICS` (default `OFF`) enables SDK diagnostics in non-Debug
|
|
builds and is for internal use only.
|
|
|
|
## Customer files
|
|
|
|
```text
|
|
include/gvfg_capture.h
|
|
include/gvfg_osd.h
|
|
include/gvfg_playback.h
|
|
bin/gvfg.dll
|
|
bin/gvfg_osd.dll
|
|
bin/gvfg_playback.dll
|
|
lib/gvfg.lib
|
|
lib/gvfg_osd.lib
|
|
lib/gvfg_playback.lib
|
|
lib/libgvfg.dll.a # when dlltool is enabled
|
|
lib/libgvfg_osd.dll.a # when dlltool is enabled
|
|
lib/libgvfg_playback.dll.a # when dlltool is enabled
|
|
share/doc/ # customer guides and API reference (English and Traditional Chinese)
|
|
```
|
|
|
|
For capture only, you need just the capture header, import library, and DLL. To use OSD,
|
|
also ship `gvfg_osd.h`, its import library, and `gvfg_osd.dll`. To use Playback, also ship
|
|
`gvfg_playback.h`, its import library, and `gvfg_playback.dll`. All DLLs must come from the
|
|
same SDK build.
|
|
Do not mistake `gvfg_preview.lib` or `gvfg_audio_playback.lib` in the build directory for
|
|
deployable import libraries.
|
|
|
|
Run `cmake --install <sdk-build> --prefix <new-package-directory>` to get a matching set of
|
|
outputs. The Customer Demo's Release packaging script uses the Capture and Playback
|
|
DLLs located next to the EXE; it does not build them and does not pick DLLs from arbitrary
|
|
build directories.
|
|
|
|
## Modes, migration, and validation
|
|
|
|
Playback supports video-only, audio-only, and audio-video. Audio-only playback needs no
|
|
window. A single RAW/DICOM image can be shown with `gvfg_playback_present_image()` without
|
|
starting the playback timeline.
|
|
The sync policy lives in the SDK, not in the demo. The standard demo shows basic status
|
|
and API errors. Debug diagnostics on internal branches are separate from the customer
|
|
Release package; the Debug UI is not part of the customer API contract.
|
|
|
|
Existing code should remove any direct use of the Audio/Preview helpers and their DLL
|
|
dependencies, rebuild, and switch to `gvfg_playback_*`; see the playback guide for the
|
|
migration steps.
|
|
The existing capture-to-recording flow and live preview are different consumer paths:
|
|
the preview skip count is not the recording dropped-frame count.
|
|
|
|
The scope of the existing 2-minute hardware test and the slow-output simulation is
|
|
documented in the Playback maintenance notes. Short tests and successful builds do not
|
|
constitute validation of acoustic lip-sync accuracy, hour-long drift, or all
|
|
hardware/format combinations.
|