Closed Fordi closed 7 years ago
Big-endian, obviously. That is b31..28 is x[0] and b3..0 is x[7].
It occurred to me that this would be more readable. Each nibble represents a pixel, so:
{ { 0x00110000 }, { 0x01112000 }, { 0x11112000 }, { 0x02112000 }, { 0x00112000 }, { 0x00112000 }, { 0x11111120 }, { 0x02222220 } }
Is a bit more visually obvious as a number '1' than:
{ { 0x00, 0x11, 0x00, 0x00 }, { 0x01, 0x11, 0x20, 0x00 }, { 0x11, 0x11, 0x20, 0x00 }, { 0x02, 0x11, 0x20, 0x00 }, { 0x00, 0x11, 0x20, 0x00 }, { 0x00, 0x11, 0x20, 0x00 }, { 0x11, 0x11, 0x11, 0x20 }, { 0x02, 0x22, 0x22, 0x20 }, }
Big-endian, obviously. That is b31..28 is x[0] and b3..0 is x[7].
It occurred to me that this would be more readable. Each nibble represents a pixel, so:
Is a bit more visually obvious as a number '1' than: