SimpleGlFrameProcessor


@RequiresApi(value = 26)
@ExperimentalApi
class SimpleGlFrameProcessor : FrameProcessor


Composites the HardwareBufferFrames from the input frames onto the output HardwareBufferFrame using OpenGL.

Summary

Public functions

open Unit

Blocks until all resources are released.

open Boolean
queue(frames: List<AsyncFrame>)

Attempts to queue a List of frames for processing.

open Unit

Notifies this processor that the current stream has ended.

Public functions

close

open fun close(): Unit

Blocks until all resources are released.

queue

open fun queue(frames: List<AsyncFrame>): Boolean

Attempts to queue a List of frames for processing.

All frames provided in a single invocation of this method represent the exact same point in time.

If this consumer is at capacity, this method returns false and the onWakeup will be invoked when capacity becomes available.

If this method returns true, onFrameProcessed must be called once with every input frame instance queued, once the FrameProcessor has finished processing the frames.

Parameters
frames: List<AsyncFrame>

The frames to queue.

Returns
Boolean

true if the frames were queued, false if the consumer is at capacity.

signalEndOfStream

open fun signalEndOfStream(): Unit

Notifies this processor that the current stream has ended.

More frames may be queued after calling this method, if the current stream changes.