Added function to apply dct so I could test it.

Signed-off-by: Paulo Hack <ph_hack@hotmail.com>