Hmm ... looking at this SNAP SDK it seems they did not think about ~"non-native-endianess 15/16 bit
pixel formats".
For example little endian 15/16 bit modes (PC gfx
card) on big endian machine (Mac/A1).
One cannot describe such pixel formats with
red/green/blue shifts/masks alone. As RECTFMT_RGB15PC for example looks like this
in memory:
GGGBBBBB 0RRRRRGG
No problem to describe as mask/shift operations
on little endian machines, but on big endian machines you have to additionally swap bytes before
the WORD (pixel) write.