private void regionOffset2size(Granule g){
  g.regionSize[2]=576 / 2;
  for (int i=0, j=0; i < 3; i++) {
    int k=Math.min(g.regionSize[i],g.bigValues);
    g.regionSize[i]=k - j;
    j=k;
  }
}

private void regionOffset2size ( Granule g ) { g . regionSize [ 2 ] = 576 / 2 ; for ( int i = 0 , j = 0 ; i < 3 ; i ++ ) { int k = Math . min ( g . regionSize [ i ] , g . bigValues ) ; g . regionSize [ i ] = k - j ; j = k ; } }
convert region offsets to region sizes and truncate size to big_values .
