问题描述
目前,我正在使用以下代码在 texture view
上显示相机的预览。那么有人可以帮我处理从 applying LUT
到 cube file
的 preview
过滤器吗?
private void startPreview() {
mCamera = Camera.open(camId);
if (mCamera == null) {
throw new RuntimeException("Default camera not available");
}
try {
mCamera.setPreviewTexture(mSurfaceTexture);
Display display = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefaultDisplay();
if (display.getRotation() == Surface.ROTATION_0) {
mCamera.setDisplayOrientation(90);
}
if (display.getRotation() == Surface.ROTATION_270) {
mCamera.setDisplayOrientation(180);
}
mCamera.startPreview();
inPreview = true;
} catch (IOException ioe) {
inPreview = false;
Log.e(TAG,"Exception starting preview",ioe);
}
}
谢谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)