hello, where i can find a dct3/dct4 calculator algorithm?

Thanks..