NativeBuffer
interface NativeBuffer
An unmanaged memory pointer to a native platform buffer.
Consumers (GPU renderers, ML runtimes…) can use the pointer to unwrap the native buffer, and must release it as soon as they are done with it.
val nativeBuffer = frame.getNativeBuffer()
// your processing...
nativeBuffer.release()
frame.dispose()Content copied to clipboard