fix(deltacast-bridge): non-blocking write_all + larger FIFO (64MB) to prevent frame drops

This commit is contained in:
Zac Gaetano 2026-06-02 17:06:40 -04:00
parent 82697d92de
commit 1cef8c3bb3

View file

@ -1,3 +1,5 @@
Critical fix: pin VHD_CORE_SP_BUFFER_PACKING to VHD_BUFPACK_VIDEO_YUV422_8 on line 605.
Without this, SDK default delivers buffers with wrong stride screen tearing ("bendy and squeevy" picture).
Also includes: SDI Interface propagation, F_SETPIPE_SZ 8MB/1MB FIFOs, per-port telemetry logging.
Critical fixes for capture framerate:
1. write_all() now uses O_NONBLOCK bridge never stalls on slow reader
2. FIFO pipe buffer increased to 64MB (~16 frames of 1080p UYVY)
3. Falls back to blocking mode after write completes
4. This prevents the card from dropping 95% of frames when ffmpeg can't keep up