ImageProcessor

interface ImageProcessor : Processor

Defines a Processor that is able to take ImageProcessor.Input, run some image processing operations on it and render the final result to ImageProcessor.Output.

Types

Failure
Link copied to clipboard
sealed class Failure : RuntimeException
Defines known failure modes of an image processor.
Input
Link copied to clipboard
interface Input
Defines the image input source model that is available to be read from by the processor.
Output
Link copied to clipboard
interface Output
Defines the image output model that is available to write to by a ImageProcessor.

Functions

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.

Inheritors

Session
Link copied to clipboard
AdjustmentsComponent
Link copied to clipboard
LensesComponent
Link copied to clipboard