RawFramePullPush

class RawFramePullPush(frameProcessor: IFrameProcessor<RawFrame>, val onFrame: suspend (RawFrame) -> Unit, frameFactory: IRawFrameFactory, processDispatcher: CoroutineDispatcher)

A component that pull a frame from an input and push it to onFrame output.

Parameters

frameProcessor

the frame processor

onFrame

the output frame callback

frameFactory

the frame factory to create frames

processDispatcher

the dispatcher to process frames on

Constructors

Link copied to clipboard
constructor(frameProcessor: IFrameProcessor<RawFrame>, onFrame: suspend (RawFrame) -> Unit, frameFactory: IRawFrameFactory, processDispatcher: CoroutineDispatcher)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val onFrame: suspend (RawFrame) -> Unit

Functions

Link copied to clipboard
fun release()
Link copied to clipboard
suspend fun removeInput()
Link copied to clipboard
suspend fun setInput(getFrame: suspend (frameFactory: IRawFrameFactory) -> RawFrame)
Link copied to clipboard
Link copied to clipboard