public class Image { /** * @param tempData * @param width * @param height * @return * @throws NullPointerException * @throws IllegalArgumentException */ public static int[] decodeYUV(byte[] tempData, int width, int height) throws NullPointerException, IllegalArgumentException { int size = width * height; if (tempData == null) { throw new NullPointerException("buffer tempData is null"); } if (tempD