oa::ScreenCapture
ScreenCapture class in the OA Vision public surface.
Public Methods
Static Public Methods
Constructor & Destructor Documentation
Public Method Documentation
Stops the producer thread, completes exact frame-consumer dependencies, and releases portal, PipeWire, and vulkan resources.
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::U32The declared return value.
No public source comment is attached to this declaration.
Returns
boolThe declared return value.
Non-blocking. Returns true when a newer frame than the previous poll() is published through the common video-frame contract.
Parameters
outFrameVideoFrame &—
Returns
boolThe declared return value.
release a frame returned by poll(). The no-token overload declares that no asynchronous consumer remains.
Parameters
inFrameconst VideoFrame &—
Returns
voidThe declared return value.
GPU-deferred release. DMA-BUF ownership returns to PipeWire only after inConsumed completes. mapped fallback ring slots are likewise withheld from producer reuse until the exact completion becomes ready.
Parameters
inFrameconst VideoFrame &—
inConsumedconst oa::Event &—
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::U32The declared return value.
No public source comment is attached to this declaration.
Returns
boolThe declared return value.
No public source comment is attached to this declaration.
Parameters
inEngineoa::Engine &—
inConfigconst ScreenCaptureConfig &Default: {}
Returns
oa::Result<ScreenCapture>The declared return value.