AcquiredFrameHandle class final
Owner of one native handle.
A rendered frame that the caller holds to read or show.
See mln_acquired_frame in the
C API reference.
- Implemented types
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The native handle id.
no setter
- isClosed → bool
-
Whether the binding has accepted a release, dispose, or discard of
this handle.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
discard(
) → void - Gives up an acquired frame without saying when your GPU stops reading it.
-
getResult(
) → RenderFrameResult - Reads the frame result of an acquired frame.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
GpuSync consumerCompletion) → void - Gives an acquired frame back to the session once you're done reading it.
-
toString(
) → String -
A string representation of this object.
override
-
withAndroidHardwareBuffer<
T> (T use(ScopedAndroidHardwareBufferFrame view)) → T - Gets the Android hardware buffer of an acquired frame.
-
withDmaBuf<
T> (T use(ScopedDmaBufFrame view)) → T - Gets the dmabuf of an acquired frame.
- Gets the DXGI shared texture of an acquired frame.
-
withIoSurface<
T> (T use(ScopedIoSurfaceFrame view)) → T - Gets the IOSurface of an acquired frame.
-
withMetalTexture<
T> (T use(ScopedMetalTextureFrame view)) → T - Gets the Metal texture of an acquired frame.
-
withOpenGlTexture<
T> (T use(ScopedOpenGlTextureFrame view)) → T - Gets the OpenGL texture of an acquired frame.
-
withProducerSync<
T> (T use(ScopedGpuSync view)) → T - Reads what to wait for before you read an acquired frame's texture.
-
withVulkanTexture<
T> (T use(ScopedVulkanTextureFrame view)) → T - Gets the Vulkan image of an acquired frame.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited