Sign in

username:

password:



Not a member?

Search compdsp



Search tips

comp.dsp by Keywords

Adaptive Filter | ADPCM | ADSP | ADSP-2181 | Aliasing | AMR | Anti-Aliasing | ARMA | Autocorrelation | AutoCovariance | Beamforming | Bessel | Blackfin | Butterworth | C6713 | CCS | Chebyshev | CIC Filter | Circular Convolution | Code Composer Studio | Comb Filter | Compression | Convolution | Cross Correlation | DCT | Decimation | Deconvolution | Demodulation | DM642 | DSP Boards | DSP/BIOS | DTMF | Echo Cancellation | Equalization | Equalizer | ETSI | EZLITE (Ez-kit Lite) | FFT | FFTW | FIR Filter | Fixed Point | FSK | G.711 | G.723 | G.729 | Gaussian Noise | Goertzel | GPIO | Hilbert Transform | IFFT | IIR Filter | Interpolation | Invariance | JTAG | Kalman | Laplace Transform | Levinson | LPC | McBSP | MIPS | Modulation | MPEG | Multirate | Notch Filter | Nyquist | OFDM | Oversampling | Pink Noise | Pitch | PLL | Polyphase | QAM | QDMA | Quantization | Quantizer | Radar | Random Noise | Reed Solomon | Remez | Resampling | RTDX | Sampling | Sharc | TI C6711 | Undersampling | Viterbi | Wavelets | White Noise | Wiener Filter | Windowing | XDS510PP | Z Transform

Sponsor

Industry's highest performing at the lowest power DSPs now as low as $5.00*
Start development today!
*volume pricing for 10ku

Discussion Groups

Free Online Books

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | Comp.DSP | DCT source code.

There are 4 messages in this thread.

You are currently looking at messages 0 to 4.


DCT source code. - Ramya - 2004-04-19 03:35:00

Dear All,

I have DCT by B.G.Lee paper with me. I want to know whether source
code for this algorithm is available on web?.

If available where can I get ?.

Regards,
Ramya.
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: DCT source code. - Stephan M. Bernsee - 2004-04-19 11:27:00



What about this:

#define M_PI 3.14159265358979323846

long bin,k;
double arg;
for (bin = 0; bin < transformLength; bin++) { 
    transformData[bin] = 0.;
    for (k = 0; k < transformLength; k++) { 
        arg = (float)bin * M_PI *(float)k / (float)transformLength;
        transformData[bin] += inputData[k] * cos(arg);
    }
}

Modified from http://www.dspdimension.com

--smb


r...@yahoo.com (Ramya) wrote in message news:<3...@posting.google.com>...
> Dear All,
> 
> I have DCT by B.G.Lee paper with me. I want to know whether source
> code for this algorithm is available on web?.
> 
> If available where can I get ?.
> 
> Regards,
> Ramya.
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: DCT source code. - Peter J. Kootsookos - 2004-04-19 20:39:00

Did you pay royalties for that, Stephan??  :-)

Ciao,

Peter K.
-- 
Peter J. Kootsookos

"I will ignore all ideas for new works [..], the invention of which
 has reached its limits and for whose improvement I see no further
 hope."

- Julius Frontinus, c. AD 84
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: DCT source code. - Stephan M. Bernsee - 2004-04-20 05:11:00

Well, I think so... :-)

Cheers,
Stephan


p...@remove.ieee.org (Peter J. Kootsookos) wrote in message news:
>
> Did you pay royalties for that, Stephan??  :-)
> 
> Ciao,
> 
> Peter K.
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.