Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec *DCT(TMtxVec *Vec, int VecIndex, int Index, int Len); | The forward discrete cosine transform (DCT). |
| 2 | TVec *DCT(); | The forward discrete cosine transform (DCT). |
| 3 | TVec *DCT(TVec *Vec); | Calculates the forward discrete cosine transform (DCT) of the Vec. |
Overload 1: TMtxVec *DCT(TMtxVec *Vec, int VecIndex, int Index, int Len);
The forward discrete cosine transform (DCT).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec * | |
| 2 | VecIndex | int | |
| 3 | Index | int | |
| 4 | Len | int |
Calculates the forward discrete cosine transform (DCT) of the Vec and writes the result in the calling vector. If Vec.Length is a power of 2, the function uses an efficient algorithm that is significantly faster than the direct computation of DCT. For other values of Vec Length, this function uses the direct formulas given below; however, the symmetry of cosine function is taken into account, which allows to perform about half of the multiplication operations in the formulas. In the following definition of DCT, N=Vec.Length and V is the calling vector:
Overload 2: TVec *DCT();
The forward discrete cosine transform (DCT).
Calculates the forward discrete cosine transform (DCT) of all calling vector elements in-place. If vector TVec::Length is a power of 2, the function uses an efficient algorithm that is significantly faster than the direct computation of DCT. For different lengths this function uses the direct formulas given below; however, the symmetry of cosine function is taken into account, which allows to perform about half of the multiplication operations in the formulas. In the following definition of DCT, N=Vec.Length and V is the calling vector:
Overload 3: TVec *DCT(TVec *Vec);
Calculates the forward discrete cosine transform (DCT) of the Vec.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TVec * |
Writes the result in the calling vector. If Vec.Length is a power of 2, the function uses an efficient algorithm that is significantly faster than the direct computation of DCT. For other values of Vec Length, this function uses the direct formulas.