private static byte[][] TIFFjpeg_alloc_sarray(int samplesperrow, int numrows) { byte[][] result = new byte[numrows][]; for (int i = 0; i < numrows; i++) result[i] = new byte[samplesperrow]; return result; }