Home | History | Annotate | Download | only in camera

Lines Matching full:static_cast

82 #define R16(rgb)    static_cast<uint8_t>(rgb & kRed5)
83 #define G16(rgb) static_cast<uint8_t>((rgb & kGreen6) >> 5)
84 #define B16(rgb) static_cast<uint8_t>((rgb & kBlue5) >> 11)
86 #define R16_32(rgb) static_cast<uint8_t>(((rgb & kRed5) << 3) | ((rgb & kRed5) >> 2))
87 #define G16_32(rgb) static_cast<uint8_t>(((rgb & kGreen6) >> 3) | ((rgb & kGreen6) >> 9))
88 #define B16_32(rgb) static_cast<uint8_t>(((rgb & kBlue5) >> 8) | ((rgb & kBlue5) >> 14))
90 #define R32(rgb) static_cast<uint8_t>(rgb & kRed8)
91 #define G32(rgb) static_cast<uint8_t>(((rgb & kGreen8) >> 8) & 0xff)
92 #define B32(rgb) static_cast<uint8_t>(((rgb & kBlue8) >> 16) & 0xff)
94 #define RGB565(r, g, b) static_cast<uint16_t>((((static_cast<uint16_t>(b) << 6) | g) << 5) | r)
96 #define RGB32(r, g, b) static_cast<uint32_t>((((static_cast<uint32_t>(b) << 8) | g) << 8) | r)
99 #define R16(rgb) static_cast<uint8_t>((rgb & kRed5) >> 11)
100 #define G16(rgb) static_cast<uint8_t>((rgb & kGreen6) >> 5)
101 #define B16(rgb) static_cast<uint8_t>(rgb & kBlue5)
103 #define R16_32(rgb) static_cast<uint8_t>(((rgb & kRed5) >> 8) | ((rgb & kRed5) >> 14))
104 #define G16_32(rgb) static_cast<uint8_t>(((rgb & kGreen6) >> 3) | ((rgb & kGreen6) >> 9))
105 #define B16_32(rgb) static_cast<uint8_t>(((rgb & kBlue5) << 3) | ((rgb & kBlue5) >> 2))
107 #define R32(rgb) static_cast<uint8_t>((rgb & kRed8) >> 16)
108 #define G32(rgb) static_cast<uint8_t>((rgb & kGreen8) >> 8)
109 #define B32(rgb) static_cast<uint8_t>(rgb & kBlue8)
111 #define RGB565(r, g, b) static_cast<uint16_t>((((static_cast<uint16_t>(r) << 6) | g) << 5) | b)
113 #define RGB32(r, g, b) static_cast<uint32_t>((((static_cast<uint32_t>(r) << 8) | g) << 8) | b)