| java.lang.Object com.sun.media.jai.opimage.FCT com.sun.media.jai.mlib.FCTmediaLib
FCTmediaLib | public class FCTmediaLib extends FCT (Code) | | The Fast Cosine Transform (FCT) class. This classes calculates the FCT
using mediaLib's 1D double precision FFT.
since: EA4 |
Field Summary | |
protected double[] | imag Work array for imaginary part. | protected double[] | real Work array for real part. |
Constructor Summary | |
public | FCTmediaLib(boolean isForwardTransform, int length) Construct a new FCT object. |
Method Summary | |
public void | getData(int dataType, Object data, int offset, int stride) Get data from the internal work data array of the FCT object.
Parameters: dataType - The data type of the source data according toone of the DataBuffer TYPE_* flags. | public void | setData(int dataType, Object data, int offset, int stride, int count) Set the internal work data array of the FCT object.
Parameters: dataType - The data type of the source data according toone of the DataBuffer TYPE_* flags. | public void | setLength(int length) Initialize the length-dependent fields. | public void | transform() Calculate the DCT of a sequence using the FFT algorithm. |
imag | protected double[] imag(Code) | | Work array for imaginary part.
|
real | protected double[] real(Code) | | Work array for real part.
|
FCTmediaLib | public FCTmediaLib(boolean isForwardTransform, int length)(Code) | | Construct a new FCT object.
Parameters: length - The length of the FCT; must be a positive power of 2. |
getData | public void getData(int dataType, Object data, int offset, int stride)(Code) | | Get data from the internal work data array of the FCT object.
Parameters: dataType - The data type of the source data according toone of the DataBuffer TYPE_* flags. This should be eitherDataBuffer.TYPE_FLOAT or DataBuffer.TYPE_DOUBLE. Parameters: data - Float or double array of data. Parameters: offset - Offset into the data array. Parameters: stride - The data array stride value. |
setData | public void setData(int dataType, Object data, int offset, int stride, int count)(Code) | | Set the internal work data array of the FCT object.
Parameters: dataType - The data type of the source data according toone of the DataBuffer TYPE_* flags. This should be eitherDataBuffer.TYPE_FLOAT or DataBuffer.TYPE_DOUBLE. Parameters: data - Float or double array of data. Parameters: offset - Offset into the data array. Parameters: stride - The data array stride value. Parameters: count - The number of values to copy. |
setLength | public void setLength(int length)(Code) | | Initialize the length-dependent fields.
Parameters: length - The length of the FCT; must be a positive power of 2. |
transform | public void transform()(Code) | | Calculate the DCT of a sequence using the FFT algorithm.
|
Fields inherited from com.sun.media.jai.opimage.FCT | protected boolean isForwardTransform(Code)(Java Doc)
|
|
|