target-i386: Use mulu2 and muls2
[qemu/pbrook.git] / include / ui / qemu-pixman.h
blobb032f529aa73b0190230fe9bae92863b140d9389
1 /*
2 * This work is licensed under the terms of the GNU GPL, version 2 or later.
3 * See the COPYING file in the top-level directory.
4 */
6 #ifndef QEMU_PIXMAN_H
7 #define QEMU_PIXMAN_H
9 /* pixman-0.16.0 headers have a redundant declaration */
10 #ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
11 #pragma GCC diagnostic ignored "-Wredundant-decls"
12 #endif
13 #include <pixman.h>
14 #ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
15 #pragma GCC diagnostic error "-Wredundant-decls"
16 #endif
18 #include "qemu/typedefs.h"
21 * pixman image formats are defined to be native endian,
22 * that means host byte order on qemu. So we go define
23 * fixed formats here for cases where it is needed, like
24 * feeding libjpeg / libpng and writing screenshots.
27 #ifdef HOST_WORDS_BIGENDIAN
28 # define PIXMAN_BE_r8g8b8 PIXMAN_r8g8b8
29 #else
30 # define PIXMAN_BE_r8g8b8 PIXMAN_b8g8r8
31 #endif
33 /* -------------------------------------------------------------------- */
35 int qemu_pixman_get_type(int rshift, int gshift, int bshift);
36 pixman_format_code_t qemu_pixman_get_format(PixelFormat *pf);
38 pixman_image_t *qemu_pixman_linebuf_create(pixman_format_code_t format,
39 int width);
40 void qemu_pixman_linebuf_fill(pixman_image_t *linebuf, pixman_image_t *fb,
41 int width, int x, int y);
42 pixman_image_t *qemu_pixman_mirror_create(pixman_format_code_t format,
43 pixman_image_t *image);
44 void qemu_pixman_image_unref(pixman_image_t *image);
46 #endif /* QEMU_PIXMAN_H */