查看相机支持的尺寸:
for (Camera.Size size : parameters.getSupportedPreviewSizes()) {
int width = Math.min(size.width, size.height);
int height = Math.max(size.width, size.height);
int max=WindowsUtils.getGYS(width,height);
Log.e("预览尺寸","屏宽比:"+width/max+","+height/max+"--->相机的预览尺寸为height="+height+"width="+width);
}