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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user