Temporarily bypass HDMI signal lock during capture bring-up

- add an explicit temporary HDMI-only bypass while driver/FPGA HDMI lock detection remains unavailable
- map HDMI to an effective connected state for consistent Start, frame-read and client behavior while retaining the reported SDI lock and existing frame geometry checks
- document that bypassed HDMI connected state does not prove physical signal lock and can be restored by disabling kBypassHdmiSignalLock

Validation: git diff --cached --check passed. No build or hardware capture test was performed. Existing unrelated SDK playback and documentation changes remain uncommitted.
This commit is contained in:
Mark.lin
2026-10-20 18:50:52 +08:00
parent b4403fe59a
commit da2ad24459
@@ -11,6 +11,9 @@ namespace
constexpr uint32_t kFourccUyvy = GVFG_MAKEFOURCC('U', 'Y', 'V', 'Y'); constexpr uint32_t kFourccUyvy = GVFG_MAKEFOURCC('U', 'Y', 'V', 'Y');
constexpr uint32_t kFourccY210 = GVFG_MAKEFOURCC('Y', '2', '1', '0'); constexpr uint32_t kFourccY210 = GVFG_MAKEFOURCC('Y', '2', '1', '0');
constexpr DWORD kVideoFormatChangeTimeoutMs = 100; constexpr DWORD kVideoFormatChangeTimeoutMs = 100;
// Temporary bring-up workaround: HDMI VideoSignalLock is not implemented
// by the current driver/FPGA. Set false once HDMI lock reporting is ready.
constexpr bool kBypassHdmiSignalLock = true;
uint64_t monotonic_ns() uint64_t monotonic_ns()
{ {
@@ -260,7 +263,12 @@ namespace gvfg::internal
if (status != GVFG_OK) if (status != GVFG_OK)
return status; return status;
gvfg_signal_status_t signal{}; gvfg_signal_status_t signal{};
signal.connected = info.VideoSignalLock ? 1 : 0; // Apply the HDMI workaround here so Start, frame reads and SDK clients
// use the same effective signal state. SDI still uses the reported lock.
// With bypass enabled, HDMI connected does not prove physical signal lock.
const bool bypassLock = kBypassHdmiSignalLock &&
info.VideoInterface == GVFG_VIDEO_INTERFACE_HDMI;
signal.connected = (bypassLock || info.VideoSignalLock != 0) ? 1 : 0;
signal.channel = channel_; signal.channel = channel_;
signal.width = info.Width; signal.width = info.Width;
signal.height = info.Height; signal.height = info.Height;