Example usage for android.hardware.camera2.params RggbChannelVector getGreenEven

List of usage examples for android.hardware.camera2.params RggbChannelVector getGreenEven

Introduction

In this page you can find the example usage for android.hardware.camera2.params RggbChannelVector getGreenEven.

Prototype

public float getGreenEven() 

Source Link

Document

Get the green (even rows) component.

Usage

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

@SuppressWarnings("unchecked")
private static Object serializeRggbChannelVector(RggbChannelVector vec) throws org.json.JSONException {
    JSONArray vecObj = new JSONArray();
    vecObj.put(vec.getRed());/* w ww  . j  av  a  2  s  . c o m*/
    vecObj.put(vec.getGreenEven());
    vecObj.put(vec.getGreenOdd());
    vecObj.put(vec.getBlue());
    return vecObj;
}