public @interface

ImageAnalysis.BackpressureStrategy

implements java.lang.annotation.Annotation

 androidx.camera.core.ImageAnalysis.BackpressureStrategy

Overview

How to apply backpressure to the source producing images for analysis.

Sometimes, images may be produced faster than they can be analyzed. Since images generally reserve a large portion of the device's memory, they cannot be buffered unbounded and indefinitely. The backpressure strategy defines how to deal with this scenario.

The receiver of the ImageProxy is responsible for explicitly closing the image by calling ImageProxy.close(). However, the image will only be valid when the ImageAnalysis instance is bound to a camera.

Summary