Files
GVFG_Standalone/docs/GVFG_ARCHITECTURE_OVERVIEW.drawio
T
iverson3yaandClaude Opus 5.5 784aa5c579 Update SDK 3.2 documentation and add English and Traditional Chinese versions
- 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>
2026-12-01 16:03:38 +08:00

161 lines
15 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<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="&lt;b&gt;Customer Sample (Qt)&lt;/b&gt;&lt;br&gt;../Costomer_SDK_Release/GVFG_Customer_Sample&lt;br&gt;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="&lt;b&gt;Customer application&lt;/b&gt;&lt;br&gt;uses Capture;&lt;br&gt;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="&lt;b&gt;Full Viewer&lt;/b&gt;&lt;br&gt;../srcroot&lt;br&gt;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="&lt;b&gt;gvfg.dll - Capture&lt;/b&gt;&lt;br&gt;gvfg_capture.h · gvfg.lib&lt;br&gt;devices, channels, video/audio read/release, events,&lt;br&gt;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="&lt;b&gt;gvfg_osd.dll - OSD (optional)&lt;/b&gt;&lt;br&gt;gvfg_osd.h · gvfg_osd.lib&lt;br&gt;font list, text measurement, 2 slots per channel,&lt;br&gt;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="&lt;b&gt;gvfg_playback.dll - Playback (optional)&lt;/b&gt;&lt;br&gt;gvfg_playback.h · gvfg_playback.lib&lt;br&gt;video-only / audio-only / audio-video,&lt;br&gt;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="&lt;b&gt;gvfg_handle_t facade&lt;/b&gt; (sdk/gvfg/src/gvfg_capture.cpp)&lt;br&gt;channels[0] + channels[1], one held frame each&lt;br&gt;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="&lt;b&gt;sdk/gvfg/src/gpu&lt;/b&gt; - D3D11 conversion&lt;br&gt;YUY2/Y210 to BGRA8 / RGB10A2 / NV12&lt;br&gt;(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="&lt;b&gt;channel frame processor hook&lt;/b&gt;&lt;br&gt;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="&lt;b&gt;OSD core&lt;/b&gt; (DirectWrite)&lt;br&gt;text to YUV422 surface + A8 coverage mask&lt;br&gt;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="&lt;b&gt;GPU OSD blend&lt;/b&gt; (gvfg_gpu_osd)&lt;br&gt;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="&lt;b&gt;standalone BGRA8888 renderer&lt;/b&gt;&lt;br&gt;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="&lt;b&gt;Playback core&lt;/b&gt; (gvfg_playback.cpp)&lt;br&gt;modes, master clock, shared bounded queues,&lt;br&gt;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="&lt;b&gt;gvfg_preview&lt;/b&gt; - STATIC, linked into Playback&lt;br&gt;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="&lt;b&gt;gvfg_audio_playback&lt;/b&gt; - STATIC, linked into Playback&lt;br&gt;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="&lt;b&gt;GigabyteCaptureSession&lt;/b&gt; × CH0 / CH1&lt;br&gt;gigabyte_device (SetupAPI enumeration)&lt;br&gt;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="&lt;b&gt;GvfgSdk.lib 1.0.5&lt;/b&gt; (third_party/GigabyteLib)&lt;br&gt;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="&lt;b&gt;Windows outputs&lt;/b&gt;&lt;br&gt;DXGI swap chain on the application HWND&lt;br&gt;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&lt;br&gt;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 /&lt;br&gt;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&lt;br&gt;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>