Move the functions in h264idct into a new file h264idct_template.c.