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
This commit is contained in:
Mark.lin
2026-09-14 15:25:06 +08:00
parent f5311e9834
commit 7082ebed35
13 changed files with 43 additions and 49 deletions
+1 -5
View File
@@ -356,11 +356,7 @@ extern "C"
GVFG_PARAM_IN int channel_index,
GVFG_PARAM_OUT int *out_enabled);
/*
* Select the hardware output format before capture starts. This capability
* currently uses an isolated driver extension because GvfgSdk.lib 1.0.0
* does not expose an equivalent API.
*/
/* Select the hardware output format before capture starts. */
GVFG_API gvfg_status_t gvfg_set_channel_video_format(
GVFG_PARAM_IN gvfg_handle handle,
GVFG_PARAM_IN int channel_index,
+1 -1
View File
@@ -43,7 +43,7 @@ GVFG_API gvfg_status_t gvfg_debug_get_channel_backend_stats(
GVFG_PARAM_IN int channel_index,
GVFG_PARAM_OUT gvfg_debug_backend_stats_t *out_stats);
/* GIGABYTELIB GAP: GvfgSdk.lib 1.0.0 has no register-access API. */
/* GIGABYTELIB GAP: GvfgSdk.lib 1.0.2 has no declared register-access API. */
GVFG_API gvfg_status_t gvfg_debug_read_register(
GVFG_PARAM_IN gvfg_handle handle,
GVFG_PARAM_IN uint32_t offset,
@@ -193,12 +193,11 @@ gvfg_status_t GigabyteCaptureSession::set_video_format(gvfg_pixel_format_t forma
if (openStatus != GVFG_OK)
return openStatus;
constexpr uint32_t kVideoOutputFormatRegister = 0x080;
if (!gigabyte_write_register(device_handle_, kVideoOutputFormatRegister,
format == GVFG_PIXFMT_Y210 ? 1u : 0u))
return reject(GVFG_EIO,
"GigabyteLib gap: driver extension failed to set the output format register");
return GVFG_OK;
const ULONG colorDepth = format == GVFG_PIXFMT_Y210
? GVFG_VIDEO_COLOR_DEPTH_10_BITS
: GVFG_VIDEO_COLOR_DEPTH_8_BITS;
return from_vendor(GvfgSetVideoColorDepth(context_, channel_, colorDepth),
"GvfgSetVideoColorDepth");
}
gvfg_status_t GigabyteCaptureSession::refresh_video_info() const
@@ -5,9 +5,8 @@
namespace gvfg::internal
{
// GIGABYTELIB GAP: GvfgSdk.lib 1.0.0 does not expose register access or
// output-format selection. Keep these driver extensions isolated here so
// they can be deleted when equivalent Gvfg* APIs are supplied.
// GIGABYTELIB GAP: GvfgSdk.lib 1.0.2 has no declared register-access API.
// Keep this driver extension isolated until matching Gvfg* APIs are supplied.
bool gigabyte_read_register(HANDLE device, uint32_t offset, uint32_t &value);
bool gigabyte_write_register(HANDLE device, uint32_t offset, uint32_t value);
}
+1 -11
View File
@@ -864,16 +864,7 @@ struct gvfg_handle_t
return rejectChannel(channelIndex, GVFG_EINVAL,
"gvfg_set_channel_video_format rejected: pixel format is invalid");
const int other = channelIndex == GVFG_CHANNEL_0 ? GVFG_CHANNEL_1 : GVFG_CHANNEL_0;
if (format == GVFG_PIXFMT_Y210 &&
requestedFormats[static_cast<size_t>(other)] == GVFG_PIXFMT_Y210)
return rejectChannel(channelIndex, GVFG_ENOTSUP,
"both channels cannot use Y210 at the same time");
const gvfg_status_t status = channel->setVideoFormat(format);
if (status == GVFG_OK)
requestedFormats[static_cast<size_t>(channelIndex)] = format;
return status;
return channel->setVideoFormat(format);
}
gvfg_status_t stopAll()
@@ -911,7 +902,6 @@ struct gvfg_handle_t
std::array<std::unique_ptr<gvfg_channel_session_t>, 2> channels;
int currentIndex = -1;
std::array<bool, 2> zeroCopyRequested{false, false};
std::array<gvfg_pixel_format_t, 2> requestedFormats{GVFG_PIXFMT_YUY2, GVFG_PIXFMT_YUY2};
};
extern "C"