| java.lang.Object com.sun.media.jai.opimage.FCT
All known Subclasses: com.sun.media.jai.mlib.FCTmediaLib,
FCT | public class FCT (Code) | | The Fast Cosine Transform (FCT) class.
since: EA3 |
Constructor Summary | |
public | FCT() | public | FCT(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 FCT algorithm. |
isForwardTransform | protected boolean isForwardTransform(Code) | | |
FCT | public FCT()(Code) | | Default constructor
|
FCT | public FCT(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 FCT algorithm.
|
|
|