]>
Commit | Line | Data |
---|---|---|
d2ec7e24 GH |
1 | #ifndef QEMU_PIXMAN_H |
2 | #define QEMU_PIXMAN_H | |
3 | ||
4 | #include <pixman.h> | |
5 | ||
6 | #include "console.h" | |
7 | ||
8 | /* | |
9 | * pixman image formats are defined to be native endian, | |
10 | * that means host byte order on qemu. So we go define | |
11 | * fixed formats here for cases where it is needed, like | |
12 | * feeding libjpeg / libpng and writing screenshots. | |
13 | */ | |
14 | ||
15 | #ifdef HOST_WORDS_BIGENDIAN | |
16 | # define PIXMAN_BE_r8g8b8 PIXMAN_r8g8b8 | |
17 | #else | |
18 | # define PIXMAN_BE_r8g8b8 PIXMAN_b8g8r8 | |
19 | #endif | |
20 | ||
21 | /* -------------------------------------------------------------------- */ | |
22 | ||
23 | int qemu_pixman_get_type(int rshift, int gshift, int bshift); | |
24 | pixman_format_code_t qemu_pixman_get_format(PixelFormat *pf); | |
25 | ||
26 | pixman_image_t *qemu_pixman_linebuf_create(pixman_format_code_t format, | |
27 | int width); | |
28 | void qemu_pixman_linebuf_fill(pixman_image_t *linebuf, pixman_image_t *fb, | |
29 | int width, int y); | |
30 | void qemu_pixman_image_unref(pixman_image_t *image); | |
31 | ||
32 | #endif /* QEMU_PIXMAN_H */ |