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