Example usage for android.hardware.camera2.params BlackLevelPattern copyTo

List of usage examples for android.hardware.camera2.params BlackLevelPattern copyTo

Introduction

In this page you can find the example usage for android.hardware.camera2.params BlackLevelPattern copyTo.

Prototype

public void copyTo(int[] destination, int offset) 

Source Link

Document

Copy the ColorChannel offsets into the destination vector.

Usage

From source file:com.android.camera2.its.ItsSerializer.java

@SuppressWarnings("unchecked")
private static Object serializeBlackLevelPattern(BlackLevelPattern pat) throws org.json.JSONException {
    int patVals[] = new int[4];
    pat.copyTo(patVals, 0);
    JSONArray patObj = new JSONArray();
    patObj.put(patVals[0]);/*ww  w  .  ja v a  2s  .  c  o m*/
    patObj.put(patVals[1]);
    patObj.put(patVals[2]);
    patObj.put(patVals[3]);
    return patObj;
}