In an example, a method of transforming video data in video coding includes applying a first stage of a two-dimensional transform to a block of video data values to generate a block of first stage results, and applying a second stage of the two-dimensional transform to the block of first stage results without reordering the first stage results to generate a block of second stage results.