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
+2 -2
View File
@@ -527,7 +527,7 @@ private:
const gvfg::internal::gvfg_render_pixfmt_t renderFmt =
work.pixelFormat == GVFG_PREVIEW_PIXFMT_Y210
? gvfg::internal::GVFG_RENDER_FMT_Y210
: gvfg::internal::GVFG_RENDER_FMT_YVYU;
: gvfg::internal::GVFG_RENDER_FMT_YUY2;
rendered = pipeline_->render_texture_to_fp16(work.texture.Get(), renderFmt,
work.width, work.height);
copied = rendered && pipeline_->copy_fp16_to_scene();
@@ -691,7 +691,7 @@ extern "C"
uint64_t minimumRowBytes = 0;
switch (frame->pixel_format)
{
case GVFG_PREVIEW_PIXFMT_YVYU:
case GVFG_PREVIEW_PIXFMT_YUY2:
minimumRowBytes = static_cast<uint64_t>(frame->width) * 2u;
break;
case GVFG_PREVIEW_PIXFMT_Y210: