private void rescaleMCU(Block[] dataUnits, int hSize, int vSize, Block[] ret)
{
for (int i = 0; i < dataUnits.length; i++)
{
Block block = dataUnits[i];
if (block.width == hSize && block.height == vSize)
System.arraycopy(block.samples, 0, ret[i].samples, 0, hSize*vSize);
else
{
int hScale = hSize / block.width;