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:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
BIN
Binary file not shown.
+3
-3
@@ -3,10 +3,10 @@
|
||||
This directory contains the supervisor-provided static MSVC library used by the
|
||||
GVFG backend.
|
||||
|
||||
- Upstream version macro: `GVFG_SDK_VER 1.0.0`
|
||||
- Upstream version macro: `GVFG_SDK_VER 1.0.2`
|
||||
- Library: `GvfgSdk.lib`
|
||||
- SHA-256: `B8D1ED04C2A8F1857F43B81E68B17DAE362D576D2156AF666A2B5C3286CEBDAA`
|
||||
- Original source: `_SDK/ex/_demo/GigabyteLib/GigabyteLib`
|
||||
- SHA-256: `EC9577D4BE76861E44DFDD3B537DF2A57CCDA5A5F1B14E0BAAC92213E796A743`
|
||||
- Original source: `ex_demo/GigabyteLib/vfg100_0914_b`
|
||||
|
||||
`GvfgSdk.lib` is linked into `gvfg.dll`; it is not distributed as a separate
|
||||
customer runtime dependency. The supplied package did not contain source,
|
||||
|
||||
+2
-2
@@ -9,8 +9,8 @@ extern "C" {
|
||||
#define GVFG_PARAM_OUT
|
||||
|
||||
#define GVFG_SDK_API
|
||||
#define GVFG_SDK_VER "1.0.0"
|
||||
|
||||
#define GVFG_SDK_VER "1.0.2"
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+10
-3
@@ -13,7 +13,7 @@ extern "C" {
|
||||
|
||||
|
||||
typedef struct _GVFG_CONTEXT GVFG_CONTEXT, *PGVFG_CONTEXT;
|
||||
|
||||
|
||||
typedef enum GVFG_HRESULT {
|
||||
|
||||
GVFG_HRESULT_OK = 0x0,
|
||||
@@ -27,7 +27,9 @@ typedef enum GVFG_HRESULT {
|
||||
|
||||
} GVFG_HRESULT;
|
||||
|
||||
|
||||
#define GVFG_VIDEO_COLOR_DEPTH_8_BITS (8)
|
||||
#define GVFG_VIDEO_COLOR_DEPTH_10_BITS (10)
|
||||
|
||||
#define GVFG_VIDEO_INTERFACE_SDI (0)
|
||||
#define GVFG_VIDEO_INTERFACE_HDMI (1)
|
||||
|
||||
@@ -165,7 +167,7 @@ typedef struct _GVFG_SDI_VIDEO_INFO_STR {
|
||||
char St352PayloadByte3BitDepth[24];
|
||||
|
||||
} GVFG_SDI_VIDEO_INFO_STR, *PGVFG_SDI_VIDEO_INFO_STR;
|
||||
|
||||
|
||||
|
||||
GVFG_SDK_API GVFG_HRESULT GvfgCreateEvents(GVFG_PARAM_IN PGVFG_VIDEO_CHN_EVENT pEvents,
|
||||
GVFG_PARAM_IN BOOL audioDisable);
|
||||
@@ -239,6 +241,11 @@ GVFG_SDK_API GVFG_HRESULT GvfgGetAudioFrame(GVFG_PARAM_IN PGVFG_CONTEXT pCxt,
|
||||
GVFG_PARAM_IN ULONG cbBufSize);
|
||||
|
||||
|
||||
|
||||
GVFG_SDK_API GVFG_HRESULT GvfgSetVideoColorDepth(GVFG_PARAM_IN PGVFG_CONTEXT pCxt,
|
||||
GVFG_PARAM_IN ULONG videoChn,
|
||||
GVFG_PARAM_IN ULONG colorDepth);
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user