如何使用camera2.CameraCharacteristics
获取摄像机的mp?我正在尝试以下方式
CameraCharacteristics characteristics = cameraManager.getCameraCharacteristics(cameraId);
Size[] sizes = characteristics.get(CameraCharacteristics.JPEG_AVAILABLE_THUMBNAIL_SIZES);
for (int i = 0; i < sizes.length; i++) {
Size size = sizes[i];
map.putString("size_"+i, size.toString());
double mp = Math.ceil((size.getWidth() * size.getHeight() )/ (1000 * 1000));
}