这是我的相机设置:
param = camera.getParameters();
param.setPictureFormat(ImageFormat.YV12); // Removing this line fixes the error
param.setPreviewSize(800, 480)
param.setPictureSize(800, 480);
camera.setDisplayOrientation(90);
camera.setParameters(param);
设置 ImageFormat 会导致setParameters failed
错误。所以它显然不是问题所在。我还检查了设备上支持的图片/预览分辨率,所以肯定没有问题。
这种图像格式应该在所有设备上兼容......故事是什么?