feat: align GVFG output with YUY2

- expose YUY2 across the public API, preview helper, backend, and GPU conversion paths while translating the legacy FPGA format value internally
- correct YUY2 chroma byte interpretation and update customer/internal documentation
- centralize the Standalone SDK version and expose it through gvfg_get_version
- show the SDK version in the sample and enable preview-window controls only after the first valid frame
- close and disable external preview windows when capture stops
This commit is contained in:
Mark.lin
2026-08-13 16:14:16 +08:00
parent a5b86e5872
commit 17fb9bfabd
20 changed files with 302 additions and 63 deletions
+4 -1
View File
@@ -115,6 +115,9 @@ int main(void)
| `GVFG_ETIMEOUT` | 等待逾時 |
可用 `gvfg_strerror()` 取得靜態英文說明字串;呼叫端不可釋放該字串。
可用 `gvfg_get_version()` 查詢目前實際載入的 `gvfg.dll` 版本。回傳值為
靜態字串,例如 `"0.1.0"`,呼叫端不可釋放。
需要記錄最近一次失敗的詳細原因時,可在 API 失敗後立即呼叫
`gvfg_get_last_error_detail()`;driver/register 等內部診斷仍保留在 debug API。
@@ -124,7 +127,7 @@ int main(void)
| 格式 | `pixel_format` | bit depth | 每列大小 |
| ----------------- | ------------------:| ---------:| -----------:|
| YVYU packed 4:2:2 | `GVFG_PIXFMT_YVYU` | 8 | `width * 2` |
| YUY2 packed 4:2:2 (`Y0 U0 Y1 V0`) | `GVFG_PIXFMT_YUY2` | 8 | `width * 2` |
| Y210 packed 4:2:2 | `GVFG_PIXFMT_Y210` | 10 | `width * 4` |
實際列距以 `gvfg_frame_t.row_stride_bytes` 為準。