Simplify dual-channel capture and error handling
Compared with b5b045a:
- Model CH0 and CH1 as independent channel sessions sharing one device connection.
- Keep one outstanding frame per channel and tighten read/release ownership validation.
- Unify facade and PCIES2MM diagnostic details in a per-channel ChannelErrorState.
- Treat polling timeouts and stop wakeups as expected control flow instead of persistent faults.
- Report detailed errors only when an API operation actually fails.
- Remove obsolete preview timing/error diagnostics and the redundant debug error API.
- Refresh the public and internal API references, architecture diagrams, and learning guides.
This commit is contained in:
@@ -30,13 +30,13 @@
|
||||
<mxRectangle height="34" width="240" x="50" y="515" as="alternateBounds" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="backendTypes" parent="backendLayer" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=14;" value="pcies2mm_backend_types.h<br>internal frame/event/status types" vertex="1">
|
||||
<mxCell id="backendTypes" parent="backendLayer" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=14;" value="PcieS2mmDeviceConnection<br>one shared Windows HANDLE<br>giga_ioctl.dll / DeviceIoControl" vertex="1">
|
||||
<mxGeometry height="58" width="285" x="30" y="95" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="workers" parent="backendLayer" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=14;" value="single capture thread<br>WaitForMultipleObjects: DMA / format / plug events" vertex="1">
|
||||
<mxCell id="workers" parent="backendLayer" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=14;" value="per-channel workers<br>caller read thread waits DMA<br>event thread waits format / plug events" vertex="1">
|
||||
<mxGeometry height="52" width="280" x="510" y="173" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="pcies2mmSession" parent="backendLayer" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=14;" value="sdk/gvfg/src/backend/pcies2mm/pcies2mm_capture_session.cpp<br>internal session / events / direct frame read" vertex="1">
|
||||
<mxCell id="pcies2mmSession" parent="backendLayer" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=14;" value="CH0 + CH1 PcieS2mmCaptureSession<br>independent events / state / direct frame read" vertex="1">
|
||||
<mxGeometry height="58" width="340" x="420" y="65" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="e6" edge="1" parent="backendLayer" source="pcies2mmSession" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeWidth=2;" target="backendTypes" value="uses">
|
||||
@@ -53,16 +53,16 @@
|
||||
<mxCell id="customerApp" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#6c8ebf;fontSize=14;" value="Customer application" vertex="1">
|
||||
<mxGeometry height="52" width="230" x="715" y="85" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="facade" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#82b366;fontSize=14;" value="sdk/gvfg/src/gvfg_capture.cpp<br>session facade / lifecycle / pull API" vertex="1">
|
||||
<mxCell id="facade" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#82b366;fontSize=14;" value="gvfg_handle_t<br>shared device connection<br>channels[0] + channels[1] facade state" vertex="1">
|
||||
<mxGeometry height="58" width="340" x="470" y="385" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="ring" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=14;" value="single frame buffer<br>read / held / release" vertex="1">
|
||||
<mxCell id="ring" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=14;" value="one outstanding frame per channel<br>copy_buffer_ or driver pointer<br>read / held / release" vertex="1">
|
||||
<mxGeometry height="58" width="270" x="880" y="610" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="eventFlow" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#ffffff;strokeColor=#d6b656;fontSize=13;" value="Public event flow<br>driver format IRQ -> FORMAT_CHANGE_BEGIN<br>first new frame published -> STREAM_READY" vertex="1">
|
||||
<mxGeometry height="82" width="330" x="850" y="690" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="externalBoundary" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#f5f5f5;strokeColor=#666666;dashed=1;fontColor=#333333;fontSize=14;" value="External frame/event source" vertex="1">
|
||||
<mxCell id="externalBoundary" parent="1" style="rounded=1;whiteSpace=wrap;html=1;arcSize=8;fillColor=#f5f5f5;strokeColor=#666666;dashed=1;fontColor=#333333;fontSize=14;" value="vfg100.sys / FPGA / DMA frame and events" vertex="1">
|
||||
<mxGeometry height="52" width="280" x="410" y="900" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="e1" edge="1" parent="1" source="qtSample" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;strokeWidth=2;" target="publicHeader" value="include / link">
|
||||
|
||||
Reference in New Issue
Block a user