Fast DCT code in C

161 Views Asked by At

I wrote this code in c for fast DCT (type II) of 8 values: https://anotepad.com/note/read/99kdhg

The method works, but is this as fast as other existing algorithms, or are there any faster ways? The goal is to be as fast and efficient as possible (CPU wise)

(first function is ran once to fill the constants array (c) and the 2nd function does the fast dct for 8 values n=input o=output)

Thanks