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

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

Introduction

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

Prototype

public float getBlue() 

Source Link

Document

Get the blue 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());/*from  ww  w .j  a  va 2  s  . c o m*/
    vecObj.put(vec.getGreenEven());
    vecObj.put(vec.getGreenOdd());
    vecObj.put(vec.getBlue());
    return vecObj;
}