AdaptingRequestUpdateProcessor

public final class AdaptingRequestUpdateProcessor implements ImageInfoProcessor, CloseableProcessor


A ImageInfoProcessor that calls a vendor provided preview processing implementation.

Summary

Public constructors

Public methods

@Override @NonNull void

Close the processor.

@Override @Nullable CaptureStage

Returns the CaptureStage which should be issued for the processing.

@Override @NonNull boolean

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

Public constructors

AdaptingRequestUpdateProcessor

public AdaptingRequestUpdateProcessor(
    @NonNull PreviewExtenderImpl previewExtenderImpl
)

Public methods

close

@Override
@NonNull
public @Override void close()

Close the processor.

getCaptureStage

@Override
@Nullable
@NonNull
public @Override CaptureStage getCaptureStage()

Returns the CaptureStage which should be issued for the processing.

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

process

@Override
@NonNull
public @Override boolean process(@NonNull ImageInfo imageInfo)

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

Returns
@Override 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.