6 #define PACK_RGB16(r, g, b) \
7 (((r) << 8) & 0xf800) | (((g) << 3) & 0x7e0) | (((b) >> 3) & 0x1f)
9 #define UNPACK_R16(c) (((c) >> 8) & 0xf8)
10 #define UNPACK_G16(c) (((c) >> 3) & 0xfc)
11 #define UNPACK_B16(c) (((c) << 3) & 0xf8)
13 #define PACK_RGB32(r, g, b) \
14 ((((r) & 0xff) << 16) | (((g) & 0xff) << 8) | ((b) & 0xff))
16 int clip_line(int *x0, int *y0, int *x1, int *y1, int xmin, int ymin, int xmax, int ymax);
17 void draw_line(int x0, int y0, int x1, int y1, unsigned short color);
19 /* scale in 24.8 fixed point */
20 void blur_grey_horiz(uint16_t *dest, uint16_t *src, int xsz, int ysz, int radius, int scale);
21 void blur_grey_vert(uint16_t *dest, uint16_t *src, int xsz, int ysz, int radius, int scale);
23 #endif /* GFXUTIL_H_ */