Java ByteBuffer Get getAsIntArray(ByteBuffer yuv, int size)

Here you can find the source of getAsIntArray(ByteBuffer yuv, int size)

Description

get As Int Array

License

Open Source License

Declaration

public static int[] getAsIntArray(ByteBuffer yuv, int size) 

Method Source Code

//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;
    }
}

Related

  1. getArray(ByteBuffer buffer)
  2. getAsByteBuffer()
  3. getAsBytes(List buffers)
  4. getAscii(ByteBuffer bytes)
  5. getAsciiString(ByteBuffer buffer)
  6. getAttrs(Map fields)
  7. getBatch(ByteBuffer bb)
  8. getBigDecimalFromByteBuffer( ByteBuffer bytebuf, int start, int length, int scale)
  9. getBit(ByteBuffer in, int pos)