ExperimentalGetImage
class ExperimentalGetImage
androidx.camera.core.ExperimentalGetImage |
Denotes that the annotated method uses the experimental ImageProxy#getImage()
method.
The getImage() method makes the assumptions that each ImageProxy
is the sole owner of the underlying android.media.Image
which might not be the case. In the case where the Image is shared by multiple ImageProxy, if the Image is closed then it will invalidate multiple ImageProxy without a way to clearly indicate this has occurred.
When using this method it would be recommended to not close the Image via Image#close()
. Instead when the Image needs to be closed, ImageProxy#close()
should be called on the ImageProxy from which the Image was retrieved.
Summary
Public constructors | |
---|---|
<init>() Denotes that the annotated method uses the experimental |
Public constructors
<init>
ExperimentalGetImage()
Denotes that the annotated method uses the experimental ImageProxy#getImage()
method.
The getImage() method makes the assumptions that each ImageProxy
is the sole owner of the underlying android.media.Image
which might not be the case. In the case where the Image is shared by multiple ImageProxy, if the Image is closed then it will invalidate multiple ImageProxy without a way to clearly indicate this has occurred.
When using this method it would be recommended to not close the Image via Image#close()
. Instead when the Image needs to be closed, ImageProxy#close()
should be called on the ImageProxy from which the Image was retrieved.