I got it!
The samsung eternity displays 5bits per pixel. Each pixel takes up 2
byes (16 bits)
Of this 16 bit number we have
Bits 0 - 4 - Blue
Bit 5 - Unused
Bits 6 - 10 Green
Bits 11-15 Red
So each color has a maximum intensity of 1F (or 31 in case your
wondering :P
So
Red = ((int16)(((double)(RVal / 255.0)) * 31)) << 11
Green = ((int16)(((double)(RVal / 255.0)) * 31)) << 6
Blue = ((int16)((double)BVal / 255.0))
int16 pixel = Red | Green | Blue