Move capture safeguards into the SDK

Compared with 0fc22a1:

- normalize public pixel-format values and keep release diagnostics backend-neutral

- enforce the cross-channel Y210 constraint in the SDK and simplify the customer-facing contract
This commit is contained in:
Mark.lin
2026-09-22 14:29:52 +08:00
parent 0fc22a1646
commit 663804469f
10 changed files with 375 additions and 249 deletions
@@ -37,8 +37,8 @@ typedef struct gvfg_preview_handle_t *gvfg_preview_handle;
typedef enum
{
GVFG_PREVIEW_PIXFMT_YUY2 = 1,
GVFG_PREVIEW_PIXFMT_Y210 = 2,
GVFG_PREVIEW_PIXFMT_YUY2 = 3,
GVFG_PREVIEW_PIXFMT_GRAY16 = 4,
/* Four interleaved 16-bit UNORM components per pixel: R, G, B, A. */