Better switch/case in R_PixelFormatSize