示例#1
0
 // Creation of 2-D block arrays.
 private static JBLOCK[][] allocJpegBlocks(int blocksPerRow, int numberOfRows)
 {
     JBLOCK[][] result = new JBLOCK[numberOfRows][];
     for (int i = 0; i < numberOfRows; ++i)
     {
         result[i] = new JBLOCK[blocksPerRow];
         for (int j = 0; j < blocksPerRow; ++j)
             result[i][j] = new JBLOCK();
     }
     return result;
 }
 // Creation of 2-D block arrays.
 private static JBLOCK[][] allocJpegBlocks(int blocksPerRow, int numberOfRows)
 {
     JBLOCK[][] result = new JBLOCK[numberOfRows][];
     for (int i = 0; i < numberOfRows; ++i)
     {
         result[i] = new JBLOCK[blocksPerRow];
         for (int j = 0; j < blocksPerRow; ++j)
             result[i][j] = new JBLOCK();
     }
     return result;
 }