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:
@@ -38,7 +38,7 @@ typedef struct gvfg_preview_handle_t *gvfg_preview_handle;
|
||||
typedef enum
|
||||
{
|
||||
GVFG_PREVIEW_PIXFMT_Y210 = 2,
|
||||
GVFG_PREVIEW_PIXFMT_YVYU = 3
|
||||
GVFG_PREVIEW_PIXFMT_YUY2 = 3
|
||||
} gvfg_preview_pixel_format_t;
|
||||
|
||||
typedef struct
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user