在Camera2
中,我发现了一个名为SENSOR_BLACK_LEVEL_PATTERN的 API 。我正在尝试获取与此 API 相关的设备信息。不知怎的,我不明白如何得到它。我已经做到了:
CameraCharacteristics mCameraCharacteristics = manager.getCameraCharacteristics(cameraId);
BlackLevelPattern blackLevelPattern = mCameraCharacteristics.get(CameraCharacteristics.SENSOR_BLACK_LEVEL_PATTERN);
//What to do next with blackLevelPattern?
想用getOffsetForIndex()
方法。
更新:
这样使用可以吗:blackLevelPattern.getOffsetForIndex(0, 0)
请建议。提前致谢。