Processor

interface Processor : ImageProcessor

Extension of ImageProcessor that allows to apply and remove adjustments on top of the incoming image input stream rendered to connected outputs.

Types

Noop
Link copied to clipboard
object Noop : AdjustmentsComponent.Processor
Convenience implementation of Processor that does nothing.
Result
Link copied to clipboard
sealed class Result<out T : AdjustmentsComponent.Adjustment>
Defines the possible outcomes of the apply operation.

Functions

apply
Link copied to clipboard
abstract fun <T : AdjustmentsComponent.Adjustment> apply(adjustment: T, callback: Consumer<AdjustmentsComponent.Processor.Result<T>> = Consumer {})
Attempts to apply the provided adjustment model.
available
Link copied to clipboard
abstract fun available(adjustment: AdjustmentsComponent.Adjustment, callback: Consumer<Boolean>)
Checks whether the provided adjustment is available to the current client environment.
connectInput
Link copied to clipboard
abstract fun connectInput(input: ImageProcessor.Input): Closeable
Connects the provided input to this processor and returns a Closeable to release the connection when required.
open fun connectInput(input: ImageProcessor.Input, options: Set<ImageProcessor.Input.Option>): Closeable
Connects the provided input to this processor and returns a Closeable to release the connection when required.
connectOutput
Link copied to clipboard
abstract fun connectOutput(output: ImageProcessor.Output): Closeable
Connects the provided output to this processor and returns a Closeable to release the connection when required.
open fun connectOutput(output: ImageProcessor.Output, options: Set<ImageProcessor.Output.Option>): Closeable
Connects the provided output to this processor and returns a Closeable to release the connection when required.
observeRequiredCapabilities
Link copied to clipboard
abstract fun observeRequiredCapabilities(onCapabilitiesRequested: Consumer<Set<ImageProcessor.Input.Capability>>): Closeable
Takes in onCapabilitiesRequested that will be notified when image processing operations require additional data from connected Input.
remove
Link copied to clipboard
abstract fun remove(adjustment: AdjustmentsComponent.Adjustment, callback: Consumer<Boolean> = Consumer {})
Removes the provided adjustment model, if applied.

Inheritors

AdjustmentsComponent.Processor
Link copied to clipboard