oa::ImagePlanes
ImagePlanes class in the OA Ui public surface.
Public Methods
Static Public Methods
Constructor & Destructor Documentation
Public Method Documentation
No public source comment is attached to this declaration.
Returns
oa::U8The declared return value.
No public source comment is attached to this declaration.
Returns
oa::I32The declared return value.
No public source comment is attached to this declaration.
Returns
boolThe declared return value.
Records the exact UI consumer completion. Abandoning the value before completion transfers all owned plane buffers to engine retirement.
Parameters
inCompletionconst oa::Event &—
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Parameters
inChanneloa::U32—
Returns
ImageDtypeThe declared return value.
No public source comment is attached to this declaration.
Parameters
inChanneloa::U32—
Returns
oa::U32The declared return value.
No public source comment is attached to this declaration.
Returns
oa::I32The declared return value.
upload caller-provided planes. inPlanes and inDtypes must have the same length (1–4). Each span is W*H * sizeof(dtype) bytes. Synchronous.
Parameters
inRtoa::Engine &—
inPlanesoa::Span<const oa::Span<const oa::U8>>—
inDtypesoa::Span<const ImageDtype>—
inWoa::I32—
inHoa::I32—
Returns
oa::Result<ImagePlanes>The declared return value.
Decode any stb_image-supported file to planar U8. 1-channel files → gray (channelCount=1). 3-channel files → RGB (channelCount=3). 4-channel files → RGBA (channelCount=4). HDR (.hdr) → planar F32. synchronous (transfer completes on return).
Parameters
inRtoa::Engine &—
inPathoa::StringView—
Returns
oa::Result<ImagePlanes>The declared return value.