Commit Graph
32 Commits
Author SHA1 Message Date
Mark.lin bab59efcb5 Diagnose preview stalls and FIFO frame loss
- add detailed FIFO loss and frame-hold timing diagnostics
- report slow preview calls and per-stage GPU timing
- reduce redundant preview pipeline and DXGI setup work
- move preview performance metrics into the sample status display
- avoid duplicate frame-loss warnings
2026-08-13 10:49:09 +08:00
Mark.lin aad8419c2a Improve capture startup, frame loss reporting, and preview diagnostics
- defer DMA capture until the first frame reader is waiting
- deliver FIFO frames in sequence order and overwrite the oldest unread frame
  when the three-slot FIFO is full
- report known frame loss through GVFG_EVENT_FRAME_LOSS and runtime statistics
- replace the enum-only event API with the extensible gvfg_event_t structure
- expose per-handle public error details
- add preview GPU resource preparation before capture starts
- move GPU preview timing from periodic logs to the status display
- remove the redundant stream descriptor channel field
- reorganize customer and internal documentation
- add a complete customer API reference
2026-08-12 17:30:56 +08:00
Mark.lin dc0b460792 Add GPU NV12 conversion APIs 2026-08-07 09:50:19 +08:00
Mark.lin 3309f822ec Integrate GPU conversion and update capture pipeline 2026-08-06 10:03:32 +08:00
Mark.lin 300cbdfd9b Update Y210 preview and debug tooling 2026-08-04 18:12:05 +08:00
Mark.lin 6bc7dd6815 Simplify frame layout metadata 2026-07-31 13:59:43 +08:00
Mark.lin 2b5e75ade9 Simplify GVFG API and frame diagnostics 2026-07-30 16:43:30 +08:00
Mark.lin 9124930e98 Remove obsolete capture pause events 2026-07-29 15:52:51 +08:00
Mark.lin d9f194c1ab Refine GVFG capture API 2026-07-28 17:38:44 +08:00
Mark.lin 5662d74df9 feat: separate customer and internal diagnostics 2026-07-27 14:49:57 +08:00
Mark.lin 747209fa87 feat: harden capture API and preview diagnostics 2026-07-27 11:10:59 +08:00
Mark.lin 2b2eeb7302 refactor: simplify PCIES2MM capture backend 2026-07-23 08:54:43 +08:00
Mark.lin 8914281d2e feat: migrate CaptureDemo capture flow into SDK 2026-07-22 09:23:26 +08:00
Mark.lin f7e5d20068 fix: handle FPGA Y210 payload and correct chroma order
- treat FPGA v210 format marker as Y210 payload
- calculate Y210 DMA frame size as width * height * 4
- route CaptureDemo preview frames through the Y210 path
- normalize FPGA Y0/V/Y1/U data to standard Y0/U/Y1/V
- apply the same chroma correction to preview and frame conversion
- reallocate capture buffers using the detected pixel format
2026-07-20 16:24:06 +08:00
Mark.lin 1719053b3d Add standard v210 preview support 2026-07-16 11:05:37 +08:00
Mark.lin 9639a797aa Rename backend to PCIES2MM and handle events 2026-07-13 16:56:03 +08:00
Mark.lin 3e02a374e0 Switch capture backend to PcieS2mm demo driver 2026-07-08 09:43:18 +08:00
Mark.lin 1161d97de6 Add optional callback capture mode
- Add frame and event callback types to the public capture API
- Add callback mode setup/start/stop APIs alongside the existing pull API
- Enforce mutual exclusion between pull mode and callback mode per handle
- Run callback frame delivery on an SDK-owned worker thread
- Auto-release callback frames after the frame callback returns
- Dispatch callback events through a separate SDK-owned event worker
- Document callback mode threading, lifetime, and mode exclusivity
2026-06-26 15:40:15 +08:00
Mark.lin 92b5fb1464 Add backend diagnostics for capture stalls
- add rotating XDMA backend and Qt preview logs
- expose IRQ, DMA, ring, and delivery debug state
- record IRQ wait heartbeats and register state
- make XDMA tracing configurable through CMake
- prevent preview status queries from blocking rendering
- recover from D3D swapchain and Present failures
- add debug API struct size validation
- avoid stale MainWindow object-size stack corruption
2026-06-18 10:24:34 +08:00
Mark.lin 42502ef701 Validate released frames and simplify CMake 2026-06-17 17:09:29 +08:00
Mark.lin fd0272b623 Add frame layout API and split conversion helper
- Add gvfg_get_frame_layout() and gvfg_frame_layout_t for per-plane
  frame metadata without extending gvfg_frame_t
- Update gvfg_preview to consume gvfg_get_frame_layout() before
  falling back to width-derived stride
- Add optional gvfg_convert helper DLL for explicit snapshot/export
  conversion outside the core capture API
- Support YUY2/Y210 conversion to BGRA8, RGB48, and RGBA64 helper
  frames
- Add SAL annotations to public capture, preview, convert, and debug
  headers
- Update Traditional Chinese API/package documentation for core,
  preview, and convert helper split
2026-06-16 16:59:39 +08:00
Mark.lin d2657a69cb Split GVFG customer API and preview helper
Refactor GVFG into a pull-based customer API with internal debug diagnostics in gvfg_debug.h. Move preview rendering into the separate gvfg_preview helper DLL and update the Qt sample to link it explicitly. Clean legacy callback/preview docs and removed SDK-internal render/log helper sources from the core GVFG DLL.
2026-06-15 17:06:12 +08:00
Mark.lin 97971e6242 Refactor SDK to pure pull-based capture API
- Remove customer-facing SDK preview APIs and preview structs
- Strip D3D preview/render pipeline from gvfg.dll
- Keep gvfg.dll focused on capture, frame ownership, runtime status, and events
- Move Qt preview rendering into sample-owned private renderer
- Update Qt preview sample to render frames after gvfg_read_frame()
- Refresh customer API docs around read_frame/release_frame/poll_event flow
- Update architecture notes to mark preview as app/internal-tool code
2026-06-15 14:03:21 +08:00
Mark.lin 6120a6b74f Refine GVFG customer API surface 2026-06-11 10:25:50 +08:00
Mark.lin 8a13e8b0e8 Use XDMA ring slots for frame delivery 2026-06-10 15:06:34 +08:00
Mark.lin 7918b79480 Simplify XDMA types and add fullscreen preview 2026-06-09 17:41:06 +08:00
Mark.lin 739d1fcf32 Deliver native callback frames 2026-06-09 16:05:27 +08:00
Mark.lin 31ace3693f Refine signal status API layout 2026-06-09 15:02:05 +08:00
Mark.lin aeef7860dd Remove legacy signal status fields 2026-06-09 14:19:06 +08:00
Mark.lin 71d4cf6a9b Remove unused GVFG internal code 2026-06-09 11:34:01 +08:00
Mark.lin f5c91f7eda Remove gcapture dependency from GVFG standalone 2026-06-09 10:25:48 +08:00
Mark.lin 53378c6495 Initial standalone GVFG SDK 2026-06-09 10:02:10 +08:00