fix idct 1/sqrt(2) factor and rgb-conversion shifting