Fixed
Status Update
Comments
er...@google.com <er...@google.com>
ni...@google.com <ni...@google.com>
ap...@google.com <ap...@google.com> #2
SDK Revision 5
er...@google.com <er...@google.com>
ni...@google.com <ni...@google.com> #3
Successful workaround: Kill the ADB process if it does not return within 120 seconds.
Description
androidx.camera:camera-view:1.0.0-alpha09
androidx.camera:camera-camera2:1.0.0-beta02
ANDROID OS BUILD NUMBER: QQ2A.200305.002
DEVICE NAME: Pixel 3
LIST ANY EXPERIMENTAL FEATURES: ExperimentalGetImage
REPRODUCIBILITY: 100%
CODE FRAGMENTS:
cameraView.takePicture(cameraExecutor, new ImageCapture.OnImageCapturedCallback() {
@Override
@ExperimentalGetImage
public void onCaptureSuccess(@NonNull ImageProxy imageProxy) {
Image image = imageProxy.getImage();
// THIS IS THE MAGIC LINE: without that you cant use <image>
image.getPlanes()[0].getBuffer().rewind(); // <----------
// now i can use image buffer
super.onCaptureSuccess(imageProxy);
}
});
buffer is already used ? is strange that i need to rewind buffer before usage, i lost 4 hours before understand it