List of usage examples for android.hardware.camera2.params LensShadingMap getRowCount
public int getRowCount()
From source file:com.android.camera2.its.ItsSerializer.java
@SuppressWarnings("unchecked") private static Object serializeLensShadingMap(LensShadingMap map) throws org.json.JSONException { JSONArray mapObj = new JSONArray(); for (int row = 0; row < map.getRowCount(); row++) { for (int col = 0; col < map.getColumnCount(); col++) { for (int ch = 0; ch < 4; ch++) { mapObj.put(map.getGainFactor(ch, col, row)); }// w w w. j av a 2 s. c o m } } return mapObj; }