move dct_quantize and denoise_dct function pointers initialization to C