h264idct: 12 and 14 bit support