Commit Graph
16 Commits
Author SHA1 Message Date
Mark.lin d652f15369 Make capture metadata event-driven
Stop querying GigabyteLib video and audio information for every captured frame. Refresh cached video metadata at open, start, format changes, and signal events, and refresh audio metadata at stream start.

Ignore the vendor FrameCount fields as requested by the driver and library owner. Generate independent SDK delivery IDs for video and audio, reset them for every channel start, and document the new public frame_id semantics.

Clarify diagnostic ownership with LIB, SDK, and APP log prefixes. Add frame-only video and audio path counters, separate application and SDK failures, remove redundant byte and timeout counters, and keep vendor GetFrame timing tightly scoped to the actual API calls.

Update customer documentation and internal diagnostic text to match the event-driven metadata and SDK-owned frame IDs.
2026-09-15 10:04:59 +08:00
Mark.lin 268335bd40 Bump the GVFG SDK version to 0.3.0
Compared with 7082ebe:

- set the single public SDK version source to 0.3.0 in GVFG_SDK/CMakeLists.txt

- continue injecting PROJECT_VERSION into the gvfg DLL at build time

- keep the public header free of a duplicate compile-time version definition

- update API examples and the internal build guide to reference 0.3.0 and the correct CMake source
2026-09-14 16:50:18 +08:00
Mark.lin 7082ebed35 Update GigabyteLib to the vfg100 0914-b package
Compared with f5311e9:

- replace the vendored headers and x64 static library with supervisor package version 1.0.2

- record the corrected source location and SHA-256 checksum

- route YUY2 and Y210 selection through the now-linked GvfgSetVideoColorDepth API

- remove the output-format register fallback and the SDK-owned dual-Y210 restriction

- retain only diagnostic register read and write in the isolated driver extension

- document the undeclared GvfgGetAVStats binary symbol as an upstream header and ABI gap
2026-09-14 15:25:06 +08:00
Mark.lin f5311e9834 Expose GigabyteLib SDI value enums
Compared with a8fe173:

- publish SDK-owned mode, resolution, and frame-rate enums for gvfg_sdi_info_t

- type the public SDI fields with those enums while preserving GigabyteLib values

- keep customer code independent from the private vendor header

- document that applications use enum values for logic and the existing names for display
2026-09-14 15:02:33 +08:00
Mark.lin a8fe1739f8 Use all GigabyteLib frame metadata
Compared with 13aad44:

- size video buffers from GVFG_VIDEO_INFO.cbBufSize instead of recalculating them in the SDK

- expose the GigabyteLib video interface through channel signal status and display it in the Qt sample

- use GVFG_VIDEO_INFO.FrameCount and GVFG_AUDIO_INFO.FrameCount as the public frame identifiers

- expose all four formatted ST 352 payload descriptions returned by GvfgStringifySdiVideoInputInfo

- remove the redundant SDK-owned video and audio frame counters and the local frame-size helper

- update the customer and frame-flow documentation to identify the GigabyteLib metadata source
2026-09-14 14:51:47 +08:00
Mark.lin 13aad44361 Separate public runtime data from debug diagnostics
Compared with 90af75c:

- keep only application-facing capture FPS and delivered-frame count in gvfg_runtime_info_t

- move GigabyteLib frame-acquire timing exclusively to the internal debug statistics

- remove duplicated runtime, zero-copy, and last-frame fields from the debug structure

- remove synthetic backend DMA, interrupt, sequence, and capture counters not supplied by GigabyteLib

- retain uniquely useful wait, event, audio, frame-hold, and timing diagnostics plus register access

- update the Qt sample and documentation for the clarified ownership boundary
2026-09-14 14:31:13 +08:00
Mark.lin 90af75cdd1 Adopt the GigabyteLib parameter annotation style
Compared with 2a3ad7a:

- replace Microsoft SAL annotations in the public capture and debug headers with GVFG_PARAM_IN, GVFG_PARAM_OUT, and GVFG_PARAM_INOUT

- remove the explicit sal.h include and the non-MSVC SAL compatibility block

- guard the lightweight parameter macros so the public header can coexist with the supervisor-provided framework header

- include gvfgsdkapi.h first inside the private Gigabyte capture session to reuse the vendor definitions without redefinition warnings

- preserve every API signature, ABI layout, export, and runtime behavior
2026-09-14 12:23:10 +08:00
Mark.lin 2a3ad7aa6d Match the GigabyteLib event model
Compared with 82933f8:

- remove the public event-mask setter, getter, mask type, exports, and per-channel mask state

- always register and forward the complete event set created by GvfgCreateEvents

- keep audio enablement as the only event-creation choice exposed to applications

- preserve event polling, signal recovery, format notifications, capture, format switching, zero-copy, and register access

- update customer and architecture documentation to remove the obsolete event-mask controls
2026-09-14 12:16:53 +08:00
Mark.lin 82933f8967 Expose the remaining GigabyteLib queries
Compared with aac4edd:

- expose optional device capability and SDI detail queries through the public GVFG API

- use GvfgGetDevInfo only when an application requests device capabilities

- use GvfgGetSdiVideoInputInfo and GvfgStringifySdiVideoInputInfo only when an application requests SDI details

- return both native SDI values and the vendor-formatted mode, resolution, frame-rate, and scan strings

- source the device interface GUID directly from the supervisor-provided gvfgsdkapi.h

- preserve the existing capture path and all previous public exports
2026-09-14 10:59:37 +08:00
Mark.lin aac4eddaf7 Remove the redundant Gigabyte type layer
Compared with 9bc38c4:

- delete the duplicate gigabyte_types.h status, frame, signal, format, event, and debug model

- let GigabyteCaptureSession use the stable public gvfg types and status codes directly

- replace the one-field shared connection wrapper with the selected device interface path

- keep frame-token validation in the public session while the Gigabyte session owns only the vendor frame hold

- fill the existing debug statistics structure directly instead of translating duplicate structures

- preserve all capture, audio, event, zero-copy, GPU conversion, format-switch, and register-access APIs
2026-09-14 10:49:42 +08:00
Mark.lin 9bc38c4862 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.
2026-09-14 10:22:09 +08:00
Mark.lin a04bd611f9 Simplify the SDK around GigabyteLib
Compared with 0af70a5:

- Remove the generic backend directory and legacy PCIE S2MM naming so the SDK now has a direct gvfg facade to GigabyteCaptureSession to GvfgSdk.lib structure.

- Delete the unsupported video-format setter and direct register read/write APIs instead of retaining compatibility methods that cannot be implemented by the supplied GigabyteLib interface.

- Remove output-format controls and requested-format state from the Qt sample; capture now follows the native YUY2 or Y210 format reported by GvfgGetVideoInfo.

- Eliminate the placeholder stream descriptor and allocate copy buffers from current GigabyteLib video metadata when a frame becomes available.

- Rename the internal debug stats API and fields from backend terminology to channel/session terminology, while retaining capture, audio, event, timeout, timing, and zero-copy diagnostics.

- Update source paths and documentation to describe GigabyteLib as the only lower layer and remove stale format-setting, register, and direct IOCTL guidance.

Validation: git diff --cached --check passed. MSVC x64 Release and Debug gvfg.dll builds passed, the Release Qt sample rebuilt and linked successfully, dumpbin verified the intentional 29-export API, and the Release package script produced an archive containing the sample and gvfg.dll without private GigabyteLib files or giga_ioctl.dll. No runtime capture, audio, zero-copy, hot-plug, dual-channel, shutdown, MinGW, or hardware validation was run.
2026-09-14 10:05:54 +08:00
Mark.lin 0af70a59ca Replace the legacy backend with GigabyteLib
Compared with 5f74655:

- Preserve the public gvfg C API while replacing the direct PCIE S2MM register, IOCTL, and giga_ioctl.dll implementation with a per-channel adapter around the supervisor-provided GvfgSdk.lib API.

- Route device open, event creation, video/audio capture, copy and zero-copy frame delivery, zero-copy release, signal metadata, and stream teardown through GigabyteLib while retaining the existing facade ownership and timeout contracts.

- Remove the obsolete giga_ioctl target and legacy register/video-format backend files, and stop requiring or packaging giga_ioctl.dll in the Qt sample and customer archives.

- Vendor the matched GigabyteLib 1.0.0 headers and static library with provenance and checksum documentation, and update build, architecture, frame-flow, and customer deployment documentation for the new boundary.

- Keep gvfg_set_channel_video_format source-compatible, but report GVFG_ENOTSUP when the connected native input format differs because the supplied GigabyteLib API does not expose output-format conversion. Direct debug register reads and writes are likewise unsupported by this backend.

Validation: git diff --cached --check passed. MSVC x64 Release and Debug gvfg.dll builds passed, the Release Qt sample linked successfully, dumpbin confirmed gvfg.dll has no giga_ioctl.dll dependency and retains all 32 public exports, and the Release package script produced an archive without giga_ioctl.dll or private GigabyteLib files. No runtime capture, audio, zero-copy, hot-plug, dual-channel, device shutdown, MinGW, or hardware validation was run.
2026-09-14 09:46:37 +08:00
Mark.lin 1214e720d2 Support MSVC and MinGW SDK consumers
Compared with dc08a95:

- Add explicit module-definition files for the capture and preview DLLs so their public C export names remain stable and can be consumed without compiler-specific C++ symbol conventions.

- Keep the SDK implementation built with MSVC while automatically using MinGW dlltool to generate libgvfg.dll.a and libgvfg_preview.dll.a alongside the existing MSVC import libraries.

- Make the public capture header portable by including SAL only under MSVC and defining no-op annotations required by non-MSVC C and C++ compilers.

- Replace the Qt sample's compiler-specific wait on std::thread::native_handle() with an explicit atomic worker-completion state while preserving synchronous window-message servicing during shutdown.

- Document that MSVC and MinGW consumers use different import libraries while loading the same gvfg.dll and gvfg_preview.dll at runtime.

Validation: MSVC Debug and Release SDK builds passed and produced both MSVC and MinGW import libraries. Qt MSVC Debug, Qt MinGW Debug, and Qt MinGW Release sample builds and links passed. MinGW C and C++ public-header syntax checks passed, the MinGW executable import table references the expected GVFG DLLs and C exports, and git diff --check passed. No runtime launch, capture, audio playback, clean-machine deployment, or hardware validation was run.
2026-09-11 14:52:24 +08:00
Mark.lin dc08a953fa Add stable suffixes to enumerated device names
Compared with cae4a04:

- Append a one-based numeric suffix to every device name returned by gvfg_enumerate_devices so otherwise identical capture devices remain distinguishable in upper-layer selectors.

- Truncate the original display name when necessary so the suffix and null terminator always fit within the fixed public name buffer.

- Preserve the existing fallback name and device enumeration count behavior.

Validation: git diff --check and focused source inspection passed. No configure, build, runtime enumeration, capture, or hardware validation was run for this change.
2026-09-11 13:30:49 +08:00
Mark.lin cae4a04612 Separate the SDK and Qt sample build projects
Compared with f612cfd:

- Move the capture SDK, private IOCTL wrapper, and optional preview helper under GVFG_SDK with an independent top-level CMake project and version source.

- Move the Qt preview application into GVFG_Qt_Sample and consume prebuilt SDK DLLs and compiler-specific import libraries through imported CMake targets instead of compiling SDK sources as subdirectories.

- Resolve Qt Creator configuration-specific SDK build directories automatically, copy the three runtime DLLs beside the sample executable, and keep missing MSVC or MinGW artifacts as explicit configure errors.

- Update Release and Debug packaging scripts to read SDK and sample outputs separately, and update the repository build instructions for the two-project workflow.

- Preserve the pre-existing uncommitted device display-name suffix change outside this commit.

Validation: independent MSVC SDK configure/build and independent Qt MSVC sample configure/build passed; the sample build graph contains no SDK implementation sources; git diff --check passed. No MinGW link, runtime launch, capture, audio playback, or hardware validation was run.
2026-09-11 13:28:56 +08:00