ImageInfoProcessor

@RequiresApi(21) interface ImageInfoProcessor
androidx.camera.core.impl.ImageInfoProcessor

A processing step that updates the necessary CaptureStage based on the current ImageInfo.

Summary

Public methods
abstract CaptureStage?

Returns the CaptureStage which should be issued for the processing.

abstract Boolean
process(@NonNull imageInfo: ImageInfo)

Processes the metadata from a capture and updates the CaptureStage used for subsequent captures if necessary.

Public methods

getCaptureStage

@Nullable abstract fun getCaptureStage(): CaptureStage?

Returns the CaptureStage which should be issued for the processing.

This will be updated whenever process(ImageInfo) is called and returns true.

process

abstract fun process(@NonNull imageInfo: ImageInfo): Boolean

Processes the metadata from a capture and updates the CaptureStage used for subsequent captures if necessary.

Return
Boolean if true then the output of getCaptureStage() will be updated. This means the stream which produced the processed ImageInfo should be updated to use the new CaptureStage.