fi.helsinki.cs.ohtu.mpeg2.video
Class DiscreteCosineTransformUtils

java.lang.Object
  extended by fi.helsinki.cs.ohtu.mpeg2.video.DiscreteCosineTransformUtils

public class DiscreteCosineTransformUtils
extends java.lang.Object

This class contains simple auxiliary functions used in the process of encoding blocks.


Constructor Summary
DiscreteCosineTransformUtils()
           
 
Method Summary
static int[] round(double[] input)
          Round the values of the input array, half integers away from zero.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscreteCosineTransformUtils

public DiscreteCosineTransformUtils()
Method Detail

round

public static int[] round(double[] input)
Round the values of the input array, half integers away from zero.

Parameters:
input - The array to be rounded
Returns:
The rounded array