- Check the README, customer guides, API reference, and internal notes against the SDK 3.2.0 headers, export lists, and CMake rules. Fix stale versions, the OSD move to gvfg_osd.dll, the OSD example header, and missing APIs (HDMI audio info, the HDMI and chip structs, gvfg_render_osd_frame_bgra, gvfg_playback_enable_audio_reconnect). - Document present_image returning EOUTPUT when nothing was presented, opt-in audio reconnect for EAUDIO, and whole-macropixel YUY2 row sizes. - Make English the primary *.md for the README and customer documents, keep Traditional Chinese as *.zh-TW.md, and install both language versions. - Update the GigabyteLib README version and checksum to 1.0.5 and redraw the architecture diagram for the Capture, OSD, and Playback DLLs. Validation: git diff --cached --check passed. All relative links and anchors in the changed Markdown files resolve, and the drawio XML parses with valid edges and non-overlapping boxes. No build, cmake --install, or PDF regeneration was run, and the diagram was not opened in draw.io. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
161 lines
15 KiB
Plaintext
161 lines
15 KiB
Plaintext
<mxfile host="Electron" modified="2026-12-01T00:00:00.000Z">
|
||
<diagram id="gvfg-architecture-overview" name="Architecture Overview">
|
||
<mxGraphModel dx="1280" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1280" pageHeight="900" math="0" shadow="0">
|
||
<root>
|
||
<mxCell id="0" />
|
||
<mxCell id="1" parent="0" />
|
||
|
||
<!-- Title -->
|
||
<mxCell id="title" parent="1" vertex="1" style="text;html=1;strokeColor=none;fillColor=none;fontSize=24;fontStyle=1;align=left;verticalAlign=middle;" value="GVFG Standalone SDK - Architecture Overview">
|
||
<mxGeometry x="40" y="0" width="900" height="36" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="subtitle" parent="1" vertex="1" style="text;html=1;strokeColor=none;fillColor=none;fontSize=13;fontColor=#555555;align=left;verticalAlign=middle;" value="SDK 3.2.0 · three DLLs: Capture (required), OSD and Playback (optional) · updated 2026-12-01">
|
||
<mxGeometry x="40" y="36" width="900" height="22" as="geometry" />
|
||
</mxCell>
|
||
|
||
<!-- Lanes -->
|
||
<mxCell id="laneApps" parent="1" vertex="1" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontStyle=1;fontSize=15;align=left;verticalAlign=top;spacingLeft=10;spacingTop=4;" value="1. Applications">
|
||
<mxGeometry x="40" y="70" width="1200" height="120" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="lanePublic" parent="1" vertex="1" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontStyle=1;fontSize=15;align=left;verticalAlign=top;spacingLeft=10;spacingTop=4;" value="2. Public API (customer package)">
|
||
<mxGeometry x="40" y="230" width="1200" height="130" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="laneInternal" parent="1" vertex="1" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontStyle=1;fontSize=15;align=left;verticalAlign=top;spacingLeft=10;spacingTop=4;" value="3. DLL internals (private)">
|
||
<mxGeometry x="40" y="400" width="1200" height="250" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="laneVendor" parent="1" vertex="1" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontStyle=1;fontSize=15;align=center;verticalAlign=top;spacingTop=4;" value="4. Vendor library, driver, Windows outputs">
|
||
<mxGeometry x="40" y="690" width="1200" height="170" as="geometry" />
|
||
</mxCell>
|
||
|
||
<!-- 1. Applications -->
|
||
<mxCell id="sample" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#6c8ebf;fontSize=13;" value="<b>Customer Sample (Qt)</b><br>../Costomer_SDK_Release/GVFG_Customer_Sample<br>uses Capture + Playback">
|
||
<mxGeometry x="70" y="110" width="340" height="60" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="customerApp" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#6c8ebf;fontSize=13;" value="<b>Customer application</b><br>uses Capture;<br>OSD and Playback when needed">
|
||
<mxGeometry x="470" y="110" width="340" height="60" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="viewer" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#6c8ebf;fontSize=13;" value="<b>Full Viewer</b><br>../srcroot<br>uses Capture + OSD + Playback">
|
||
<mxGeometry x="870" y="110" width="340" height="60" as="geometry" />
|
||
</mxCell>
|
||
|
||
<!-- 2. Public API -->
|
||
<mxCell id="capDll" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#82b366;strokeWidth=2;fontSize=13;" value="<b>gvfg.dll - Capture</b><br>gvfg_capture.h · gvfg.lib<br>devices, channels, video/audio read/release, events,<br>signal / SDI / HDMI / chip info, GPU conversion">
|
||
<mxGeometry x="70" y="270" width="340" height="72" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="osdDll" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#82b366;strokeWidth=2;dashed=1;fontSize=13;" value="<b>gvfg_osd.dll - OSD (optional)</b><br>gvfg_osd.h · gvfg_osd.lib<br>font list, text measurement, 2 slots per channel,<br>standalone BGRA overlay · needs same-build gvfg.dll">
|
||
<mxGeometry x="470" y="270" width="340" height="72" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="pbDll" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#82b366;strokeWidth=2;dashed=1;fontSize=13;" value="<b>gvfg_playback.dll - Playback (optional)</b><br>gvfg_playback.h · gvfg_playback.lib<br>video-only / audio-only / audio-video,<br>single RAW/DICOM image, NO SIGNAL card">
|
||
<mxGeometry x="870" y="270" width="340" height="72" as="geometry" />
|
||
</mxCell>
|
||
|
||
<!-- 3. Internals: Capture column -->
|
||
<mxCell id="facade" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=12;" value="<b>gvfg_handle_t facade</b> (sdk/gvfg/src/gvfg_capture.cpp)<br>channels[0] + channels[1], one held frame each<br>event queue (64), runtime FPS, last error detail">
|
||
<mxGeometry x="70" y="440" width="340" height="70" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="gpuConvert" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=12;" value="<b>sdk/gvfg/src/gpu</b> - D3D11 conversion<br>YUY2/Y210 to BGRA8 / RGB10A2 / NV12<br>(pipeline source shared with gvfg_preview)">
|
||
<mxGeometry x="70" y="522" width="340" height="56" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="frameProc" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=12;" value="<b>channel frame processor hook</b><br>gvfg_control_frame_processor (exported, no public header)">
|
||
<mxGeometry x="70" y="590" width="340" height="45" as="geometry" />
|
||
</mxCell>
|
||
|
||
<!-- 3. Internals: OSD column -->
|
||
<mxCell id="osdCore" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=12;" value="<b>OSD core</b> (DirectWrite)<br>text to YUV422 surface + A8 coverage mask<br>BT.709 limited range, 96 DPI layout">
|
||
<mxGeometry x="470" y="440" width="340" height="70" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="osdGpu" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=12;" value="<b>GPU OSD blend</b> (gvfg_gpu_osd)<br>slot 0 then slot 1, one ROI readback per frame">
|
||
<mxGeometry x="470" y="522" width="340" height="56" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="osdBgra" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=12;" value="<b>standalone BGRA8888 renderer</b><br>gvfg_render_osd_frame_bgra (no capture handle)">
|
||
<mxGeometry x="470" y="590" width="340" height="45" as="geometry" />
|
||
</mxCell>
|
||
|
||
<!-- 3. Internals: Playback column -->
|
||
<mxCell id="pbCore" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=12;" value="<b>Playback core</b> (gvfg_playback.cpp)<br>modes, master clock, shared bounded queues,<br>AudioTimeline, DriftFilter, audio reconnect, signal card">
|
||
<mxGeometry x="870" y="440" width="340" height="70" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="preview" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=12;" value="<b>gvfg_preview</b> - STATIC, linked into Playback<br>D3D11 upload slots, conversion, Present">
|
||
<mxGeometry x="870" y="522" width="340" height="56" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="audioOut" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=12;" value="<b>gvfg_audio_playback</b> - STATIC, linked into Playback<br>WASAPI shared mode, rate adjustment">
|
||
<mxGeometry x="870" y="590" width="340" height="45" as="geometry" />
|
||
</mxCell>
|
||
|
||
<!-- 4. Vendor / driver / OS -->
|
||
<mxCell id="session" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#666666;fontSize=12;" value="<b>GigabyteCaptureSession</b> × CH0 / CH1<br>gigabyte_device (SetupAPI enumeration)<br>gigabyte_driver_extensions (register R/W gap)">
|
||
<mxGeometry x="70" y="730" width="340" height="62" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="vendorLib" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#666666;fontSize=12;" value="<b>GvfgSdk.lib 1.0.5</b> (third_party/GigabyteLib)<br>static, linked into gvfg.dll; not shipped separately">
|
||
<mxGeometry x="470" y="730" width="340" height="50" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="driver" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#f5f5f5;strokeColor=#666666;dashed=1;fontColor=#333333;fontSize=12;" value="vfg100.sys / FPGA / DMA - frames and events">
|
||
<mxGeometry x="470" y="815" width="340" height="32" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="osOut" parent="1" vertex="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#f5f5f5;strokeColor=#666666;dashed=1;fontColor=#333333;fontSize=12;" value="<b>Windows outputs</b><br>DXGI swap chain on the application HWND<br>WASAPI default audio endpoint">
|
||
<mxGeometry x="870" y="730" width="340" height="62" as="geometry" />
|
||
</mxCell>
|
||
|
||
<!-- Edges -->
|
||
<mxCell id="eLink" parent="1" edge="1" source="laneApps" target="lanePublic" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;strokeWidth=2;fontSize=12;labelBackgroundColor=#ffffff;" value="include headers · link import libraries · deploy DLLs from the same SDK build">
|
||
<mxGeometry relative="1" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="eCapImpl" parent="1" edge="1" source="capDll" target="facade" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;strokeWidth=2;entryX=0.75;entryY=0;exitX=0.75;exitY=1;" value="">
|
||
<mxGeometry relative="1" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="eOsdImpl" parent="1" edge="1" source="osdDll" target="osdCore" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;strokeWidth=2;" value="">
|
||
<mxGeometry relative="1" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="ePbImpl" parent="1" edge="1" source="pbDll" target="pbCore" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;strokeWidth=2;entryX=0.7;entryY=0;exitX=0.7;exitY=1;" value="">
|
||
<mxGeometry relative="1" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="eAppPath" parent="1" edge="1" source="facade" target="pbCore" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;strokeWidth=2;dashed=1;strokeColor=#b85450;fontColor=#b85450;fontSize=12;labelBackgroundColor=#fff2cc;exitX=0.9;exitY=0;entryX=0.2;entryY=0;" value="">
|
||
<mxGeometry relative="1" as="geometry">
|
||
<Array as="points">
|
||
<mxPoint x="376" y="380" />
|
||
<mxPoint x="938" y="380" />
|
||
</Array>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="eOsdHook" parent="1" edge="1" source="osdGpu" target="frameProc" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;strokeWidth=2;fontSize=10;labelBackgroundColor=#fff2cc;exitX=0;exitY=0.5;entryX=1;entryY=0.5;" value="attaches<br>channel OSD">
|
||
<mxGeometry relative="1" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="eBackend" parent="1" edge="1" source="facade" target="session" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;strokeWidth=2;fontSize=11;labelBackgroundColor=#ffffff;exitX=0;exitY=0.5;entryX=0;entryY=0.5;" value="backend calls /<br>frames, events">
|
||
<mxGeometry relative="1" as="geometry">
|
||
<Array as="points">
|
||
<mxPoint x="55" y="475" />
|
||
<mxPoint x="55" y="761" />
|
||
</Array>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="eVendor" parent="1" edge="1" source="session" target="vendorLib" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;strokeWidth=2;fontSize=11;labelBackgroundColor=#f5f5f5;exitX=1;exitY=0.4;entryX=0;entryY=0.5;" value="vendor API">
|
||
<mxGeometry relative="1" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="eDriver" parent="1" edge="1" source="vendorLib" target="driver" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;strokeWidth=2;dashed=1;" value="">
|
||
<mxGeometry relative="1" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="eAudioOut" parent="1" edge="1" source="audioOut" target="osOut" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;strokeWidth=2;fontSize=11;labelBackgroundColor=#ffffff;exitX=0.3;exitY=1;entryX=0.3;entryY=0;" value="WASAPI render">
|
||
<mxGeometry relative="1" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="ePresent" parent="1" edge="1" source="preview" target="osOut" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;endArrow=block;strokeWidth=2;fontSize=11;labelBackgroundColor=#ffffff;exitX=1;exitY=0.5;entryX=1;entryY=0.5;" value="DXGI<br>Present">
|
||
<mxGeometry relative="1" as="geometry">
|
||
<Array as="points">
|
||
<mxPoint x="1228" y="550" />
|
||
<mxPoint x="1228" y="761" />
|
||
</Array>
|
||
</mxGeometry>
|
||
</mxCell>
|
||
|
||
<mxCell id="appPathLabel" parent="1" vertex="1" style="text;html=1;strokeColor=none;fillColor=#ffffff;fontSize=12;fontColor=#b85450;align=center;verticalAlign=middle;" value="read → submit (Playback copies) → release">
|
||
<mxGeometry x="660" y="369" width="250" height="22" as="geometry" />
|
||
</mxCell>
|
||
|
||
<!-- Legend -->
|
||
<mxCell id="legend" parent="1" vertex="1" style="text;html=1;strokeColor=none;fillColor=none;fontSize=12;fontColor=#555555;align=left;verticalAlign=top;" value="Solid border: always shipped · dashed border: optional DLL or external component · red dashed arrow: data passes through the application, not a direct DLL-to-DLL call">
|
||
<mxGeometry x="40" y="870" width="1200" height="22" as="geometry" />
|
||
</mxCell>
|
||
</root>
|
||
</mxGraphModel>
|
||
</diagram>
|
||
</mxfile>
|