Resizer

Represents a GPU-accelerated Frame resizer and converter.

You can create instances of the Resizer via createResizer.

The Resizer internally allocates a memory pool, which can grow quite large, depending on texture size. When you are done with the Resizer, it is recommended to dispose it (or use it in a use { } block) to free up resources.

Functions

Link copied to clipboard
open override fun close()

Same as dispose, to use a Resizer with use { }.

Link copied to clipboard
abstract fun dispose()

Disposes this Resizer, releasing its GPU resources. It must not be used afterwards. If a GPUFrame of this Resizer is still alive, the resources are released once that GPUFrame is disposed. Calling it more than once is a no-op.

Link copied to clipboard
abstract fun resize(frame: Frame): GPUFrame

Resize the given frame using the options this Resizer was configured with.