idct: Convert IDCT permutation #defines to an enum

Also rename the enum values to be consistent with other DCT permutations.