-1
在Camera2中,我找到了一個名爲SENSOR_BLACK_LEVEL_PATTERN的API。我正在嘗試獲取與此API相關的設備信息。不知怎的,我不明白如何得到它。我已經做到了這裏:Android Camera2:如何使用SENSOR_BLACK_LEVEL_PATTERN API?
CameraCharacteristics mCameraCharacteristics = manager.getCameraCharacteristics(cameraId);
BlackLevelPattern blackLevelPattern = mCameraCharacteristics.get(CameraCharacteristics.SENSOR_BLACK_LEVEL_PATTERN);
//What to do next with blackLevelPattern?
想要使用getOffsetForIndex()
方法。
UPDATE: 這是蠻好用的是這樣的:blackLevelPattern.getOffsetForIndex(0, 0)
請建議。提前致謝。
什麼實際問題?你想用它做什麼? BlackLevelPattern對象並不是多層面的,你真的已經注意到它唯一有趣的方法。 – rcsumner 2015-04-06 16:23:01