Fixed
Status Update
Comments
le...@google.com <le...@google.com> #2
Thanks for reporting. We will look into the issue and update the status here.
eu...@gmail.com <eu...@gmail.com> #3
Hi Thanks for reporting the issue. To have more context, can you help provide the following information ?
-
Can you show us how you configure the ImageCapture in the codes ?
-
Did you enable CameraX Extensions ?
-
so the occurrence rate is like 20%, right ?
er...@google.com <er...@google.com>
le...@google.com <le...@google.com> #4
Thanks for your response.
Sure. I can provide more data.
1.
ImageCapture.Builder builder = new ImageCapture.Builder();
builder.setCaptureMode(ImageCapture.CAPTURE_MODE_MINIMIZE_LATENCY);
if (!extensionAvailable) {
builder.setBufferFormat(ImageFormat.YUV_420_888);
}
imageCapture = builder.build();
UseCaseGroup useCaseGroup = new UseCaseGroup.Builder()
.addUseCase(preview)
.addUseCase(imageCapture)
.setViewPort(viewPort)
.build();
cameraProvider.unbindAll();
camera = cameraProvider.bindToLifecycle(this, cameraSelector, useCaseGroup);
-
Yes, Extensions are enabled, which means that the code is not configuring the buffer format and therefore will use the JPEG format. If I disable the extensions, than the error disapears. But I think its more a jpeg format issue then an extension problem.
-
Yes, occurrence rate is 20%.
xi...@google.com <xi...@google.com>
ap...@google.com <ap...@google.com> #5
Thanks for the information! We will look into this.
Description
CAMERA VIEW VERSION 1.0.0-alpha20
DESCRIPTION: There is no method to get torch availability in CameraController. Also, the camera is completely encapsulated so I can not check hasTroch() method.
ADDITIONAL INFORMATION: I managed to do it with the next, but it is not something I would like to do further:
or something a bit safer but maybe not accurate: