previewhighspeedCamera回调方法读取输入框,使用camera2
oncaptureCompleted((我们正在尝试将超过120fps的相机预览设置,即使用Camera2 API的PreviewSessionHighSpeed,以下是代码片段
private void updatePreview() {
if (null == mCameraDevice) {
return;
}
try {
setUpCaptureRequestBuilder(mPreviewRequestBuilder);
HandlerThread thread = new HandlerThread("CameraPreview");
thread.start();
List<CaptureRequest> mPreviewBuilderBurst = mPreviewHighSpeedCamera.createHighSpeedRequestList(mPreviewRequestBuilder.build());
mPreviewHighSpeedCamera.setRepeatingBurst( mPreviewBuilderBurst, new CameraCaptureSession.CaptureCallback(){
@Override
public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, TotalCaptureResult result) {
super.onCaptureCompleted(session, request, result);
// We want to read the captured image buffer here
// We tried to use ImageReader but highSpeedCameraSession doesnnot support ImageReader surface
// HighSpeedcameraSession only supports preview or recording surface
}
}, mBackgroundHandler);
} catch (Exception e) {
e.printStackTrace();
}
}
我们能够为PreviewSessionHighSpeed设置相机预览框
有人知道如何在Oncapturecompete((之后获得帧缓冲区?
预先感谢
受约束的高速记录会话非常受限(因此名称(;不支持应用程序访问高帧速率数据 - 只能发送到视频编码器。
预览也只有30fps,因此在这里无法使用SurfaceTexture来获取高速数据。
仅在其常规目标FPS范围内列出高帧速率的设备支持更灵活的输出;截至今天,我还不知道有任何此类设备。当今,高速录音在移动电话功能的边缘。