4 * Created on: 29.11.2010
8 * License: LGPL 2.1+ with static linking exception
16 #include "endianness.h"
20 #ifdef IS_LITTLE_ENDIAN
41 #ifdef IS_LITTLE_ENDIAN
42 #define RGB(x,y,z) ((rgb_t) {{0, z, y, x}})
44 #define RGB(x,y,z) ((rgb_t) {{x, y, z, 0}})
47 #define RGB_INIT(R,G,B) {.r = R, .g = G, .b = B, .a = 0}
48 #define RGBA_INIT(R,G,B,A) {.r = R, .g = G, .b = B, .a = A}