...but this DCT algorithm doesn't produce correct results. I'm doing it according to the version found Note: This code currently sets all input values to 1, and prints the output to a file called "DCT.txt". Yes, I do know that the code is very messy and unoptimized... so shoot me. This was originally posted to the DivX.com forums, where a suggestion to go to XviD's forums was posted, but the XviD forum is apparently down right now. I knew there were some programmers here, so here I am... Since part of the code is: "[i.]", I'll have to post it as an attachment (So it has to get approved)... What am I doing wrong? [EDIT]Uploaded the source [/EDIT]