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
This commit is contained in:
@@ -43,16 +43,16 @@
|
||||
<mxGeometry x="1280" y="310" width="260" height="120" as="geometry"/>
|
||||
</mxCell>
|
||||
|
||||
<mxCell id="wait" value="captureLoop()
backend->wait_frame(1000, frame)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=14;fontStyle=1" vertex="1" parent="1">
|
||||
<mxCell id="wait" value="gvfg_read_frame()
backend->wait_frame(timeout, frame)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=14;fontStyle=1" vertex="1" parent="1">
|
||||
<mxGeometry x="80" y="560" width="270" height="80" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="select" value="wait_frame() selects newest ready slot
slot.ready = false
slot.in_use = true
out.data = slot.data.data()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=14" vertex="1" parent="1">
|
||||
<mxGeometry x="430" y="540" width="310" height="120" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="render" value="renderGpuFrame(frame)
SDK preview uses same slot pointer" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=14" vertex="1" parent="1">
|
||||
<mxCell id="render" value="app/private preview renderer
uses frame before release" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=14" vertex="1" parent="1">
|
||||
<mxGeometry x="820" y="540" width="270" height="90" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="callback" value="emitNativeFrame(frame)
customer callback gets out.data = frame.data" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=14" vertex="1" parent="1">
|
||||
<mxCell id="callback" value="app uses frame
data valid until gvfg_release_frame()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=14" vertex="1" parent="1">
|
||||
<mxGeometry x="1160" y="540" width="300" height="90" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="release" value="release_frame(frame)
slot.in_use = false
data_cv_.notify_all()" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=14;fontStyle=1" vertex="1" parent="1">
|
||||
|
||||
Reference in New Issue
Block a user