Here you can find the source of getAsIntArray(ByteBuffer yuv, int size)
public static int[] getAsIntArray(ByteBuffer yuv, int size)
//package com.java2s; //License from project: Open Source License import java.nio.ByteBuffer; public class Main { public static int[] getAsIntArray(ByteBuffer yuv, int size) { byte[] b = new byte[size]; int[] result = new int[size]; yuv.get(b);/*from w w w . j a va 2s.com*/ for (int i = 0; i < b.length; i++) { result[i] = b[i] & 0xff; } return result; } }