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

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

Introduction

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

Prototype

public final float getRed() 

Source Link

Document

Get the red 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());
    vecObj.put(vec.getGreenEven());//from   w  w  w  .j ava2  s. c om
    vecObj.put(vec.getGreenOdd());
    vecObj.put(vec.getBlue());
    return vecObj;
}