Separate code in imdct_and_windowing() into distinct IMDCT, windowing and