Home | History | Annotate | Download | only in camera

Lines Matching refs:RGB565

47  * RGB565 color masks
79 /* Extract red, green, and blue bytes from RGB565 word. */
83 /* Make 8 bits red, green, and blue, extracted from RGB565 word. */
91 /* Build RGB565 word from red, green, and blue bytes. */
92 #define RGB565(r, g, b) (uint16_t)(((((uint16_t)(b) << 6) | (g)) << 5) | (r))
96 /* Extract red, green, and blue bytes from RGB565 word. */
100 /* Make 8 bits red, green, and blue, extracted from RGB565 word. */
108 /* Build RGB565 word from red, green, and blue bytes. */
109 #define RGB565(r, g, b) (uint16_t)(((((uint16_t)(r) << 6) | (g)) << 5) | (b))
168 /* Converts RGB565 color to YUV. */
209 /* Converts YUV color to RGB565. */
218 return RGB565(r, g, b);
621 /* Loads R, G, and B colors from a RGB565 framebuffer. */
630 /* Saves R, G, and B colors to a RGB565 framebuffer. */
634 *(uint16_t*)rgb = RGB565(r & 0x1f, g & 0x3f, b & 0x1f);
651 *(uint16_t*)rgb = RGB565(b & 0x1f, g & 0x3f, r & 0x1f);