CamcorderProfile.QUALITY_HIGH不会返回最高分辨率。

时间:2016-01-13 10:21:26

标签: android android-camera

CamcorderProfile.QUALITY_HIGH:

  

与最高可用分辨率相对应的质量等级。

CamcorderProfile qualityProfile = CamcorderProfile.get(numCam,CamcorderProfile.QUALITY_HIGH);
Toast.makeText(context, qualityProfile.videoFrameWidth + " x " + qualityProfile.videoFrameHeight , Toast.LENGTH_LONG).show();

对于numCam = 0和numCam = 1,此代码返回640 x 480.设备有两个摄像头。

如果我在应用配置中打开设备本机应用相机,我可以看到:

后置摄像头:

  • 1280×720
  • 640×480
  • 320×240

前置摄像头:

  • 640×480
  • 320×240

¿为什么我在代码示例中没有得到1280x720?

1 个答案:

答案 0 :(得分:0)

是特定于设备的错误(Galaxy标签4)。

我看到设备相机原始数据并且包含可用的视频分辨率密钥(“视频大小值”)

可以检查相机原始数据here in + info