Pipelined DCT/IDCT