Fixed
Status Update
Comments
er...@google.com <er...@google.com>
ni...@google.com <ni...@google.com>
ap...@google.com <ap...@google.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
er...@google.com <er...@google.com>
ni...@google.com <ni...@google.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
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