我想在PreviewFrame 上获得1920 x 1080 jpeg。
onPreviewFrame 上的帧大小取决于 Camera.setPictureSize/Camera.setPreviewSize(如果我错了,请纠正我)
目前,当我使用默认摄像机拍摄 1080p 视频时,我能够获得分辨率为 1920 x 1080 的视频。因此,我假设我应该能够从 onPreviewFrame 获得 1920 x 1080 帧。
然而,当我要求我的相机打印所有支持的 PictureSize 和 Supported PreviewSize 时,它显示 1280 x 720 作为最大尺寸。
因为相机说最大尺寸是 1280 x 720,所以我无法捕捉 1920 x 1080 的帧。
我是否在这里遗漏了阻止我获得 1920 x 1080 帧的内容,或者是否有任何走动可以让我设置大于 SupportedPictureSize 和 SupportedPreviewSize 的 setPictureSize 和 PreviewSize
以下是nexus 4 后置摄像头支持预览和图片大小列表的日志。
感谢您的阅读,并希望得到任何帮助或建议。
11-05 13:37:57.987 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ picturesize: 1280===720
11-05 13:37:57.987 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ picturesize: 800===480
11-05 13:37:57.987 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ picturesize: 768===432
11-05 13:37:57.987 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ picturesize: 720===480
11-05 13:37:57.987 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ picturesize: 640===480
11-05 13:37:57.987 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ picturesize: 576===432
11-05 13:37:57.987 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ picturesize: 480===320
11-05 13:37:57.987 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ picturesize: 384===288
11-05 13:37:57.987 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ picturesize: 352===288
11-05 13:37:57.987 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ picturesize: 320===240
11-05 13:37:57.987 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ picturesize: 240===160
11-05 13:37:57.987 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ picturesize: 176===144
11-05 13:37:57.987 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ previewSize: 1280===720
11-05 13:37:57.987 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ previewSize: 800===480
11-05 13:37:57.987 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ previewSize: 768===432
11-05 13:37:57.987 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ previewSize: 720===480
11-05 13:37:57.997 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ previewSize: 640===480
11-05 13:37:57.997 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ previewSize: 576===432
11-05 13:37:57.997 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ previewSize: 480===320
11-05 13:37:57.997 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ previewSize: 384===288
11-05 13:37:57.997 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ previewSize: 352===288
11-05 13:37:57.997 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ previewSize: 320===240
11-05 13:37:57.997 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ previewSize: 240===160
11-05 13:37:57.997 5576-5576/com.example.mediacodecapp E/CamcorderProfile﹕ previewSize: 176===144