diff options
author | 2017-04-25 03:31:15 -0700 | |
---|---|---|
committer | 2017-05-22 06:48:08 +0000 | |
commit | bb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch) | |
tree | ca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/include/ui/qemu-pixman.h | |
parent | a14b48d18a9ed03ec191cf16b162206998a895ce (diff) |
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to
kvmfornfv repo and make use of the updated latest qemu for the
execution of all testcase
Change-Id: I1280af507a857675c7f81d30c95255635667bdd7
Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/include/ui/qemu-pixman.h')
-rw-r--r-- | qemu/include/ui/qemu-pixman.h | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/qemu/include/ui/qemu-pixman.h b/qemu/include/ui/qemu-pixman.h deleted file mode 100644 index 4a67e0123..000000000 --- a/qemu/include/ui/qemu-pixman.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * This work is licensed under the terms of the GNU GPL, version 2 or later. - * See the COPYING file in the top-level directory. - */ - -#ifndef QEMU_PIXMAN_H -#define QEMU_PIXMAN_H - -/* pixman-0.16.0 headers have a redundant declaration */ -#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wredundant-decls" -#endif -#include <pixman.h> -#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE -#pragma GCC diagnostic pop -#endif - -/* - * pixman image formats are defined to be native endian, - * that means host byte order on qemu. So we go define - * fixed formats here for cases where it is needed, like - * feeding libjpeg / libpng and writing screenshots. - */ - -#ifdef HOST_WORDS_BIGENDIAN -# define PIXMAN_BE_r8g8b8 PIXMAN_r8g8b8 -# define PIXMAN_BE_x8r8g8b8 PIXMAN_x8r8g8b8 -# define PIXMAN_BE_a8r8g8b8 PIXMAN_a8r8g8b8 -# define PIXMAN_BE_b8g8r8x8 PIXMAN_b8g8r8x8 -# define PIXMAN_BE_b8g8r8a8 PIXMAN_b8g8r8a8 -# define PIXMAN_BE_r8g8b8x8 PIXMAN_r8g8b8x8 -# define PIXMAN_BE_r8g8b8a8 PIXMAN_r8g8b8a8 -# define PIXMAN_BE_x8b8g8r8 PIXMAN_x8b8g8r8 -# define PIXMAN_BE_a8b8g8r8 PIXMAN_a8b8g8r8 -# define PIXMAN_LE_x8r8g8b8 PIXMAN_b8g8r8x8 -#else -# define PIXMAN_BE_r8g8b8 PIXMAN_b8g8r8 -# define PIXMAN_BE_x8r8g8b8 PIXMAN_b8g8r8x8 -# define PIXMAN_BE_a8r8g8b8 PIXMAN_b8g8r8a8 -# define PIXMAN_BE_b8g8r8x8 PIXMAN_x8r8g8b8 -# define PIXMAN_BE_b8g8r8a8 PIXMAN_a8r8g8b8 -# define PIXMAN_BE_r8g8b8x8 PIXMAN_x8b8g8r8 -# define PIXMAN_BE_r8g8b8a8 PIXMAN_a8b8g8r8 -# define PIXMAN_BE_x8b8g8r8 PIXMAN_r8g8b8x8 -# define PIXMAN_BE_a8b8g8r8 PIXMAN_r8g8b8a8 -# define PIXMAN_LE_x8r8g8b8 PIXMAN_x8r8g8b8 -#endif - -/* -------------------------------------------------------------------- */ - -PixelFormat qemu_pixelformat_from_pixman(pixman_format_code_t format); -pixman_format_code_t qemu_default_pixman_format(int bpp, bool native_endian); -int qemu_pixman_get_type(int rshift, int gshift, int bshift); -pixman_format_code_t qemu_pixman_get_format(PixelFormat *pf); -bool qemu_pixman_check_format(DisplayChangeListener *dcl, - pixman_format_code_t format); - -pixman_image_t *qemu_pixman_linebuf_create(pixman_format_code_t format, - int width); -void qemu_pixman_linebuf_fill(pixman_image_t *linebuf, pixman_image_t *fb, - int width, int x, int y); -void qemu_pixman_linebuf_copy(pixman_image_t *fb, int width, int x, int y, - pixman_image_t *linebuf); -pixman_image_t *qemu_pixman_mirror_create(pixman_format_code_t format, - pixman_image_t *image); -void qemu_pixman_image_unref(pixman_image_t *image); - -pixman_color_t qemu_pixman_color(PixelFormat *pf, uint32_t color); -pixman_image_t *qemu_pixman_glyph_from_vgafont(int height, const uint8_t *font, - unsigned int ch); -void qemu_pixman_glyph_render(pixman_image_t *glyph, - pixman_image_t *surface, - pixman_color_t *fgcol, - pixman_color_t *bgcol, - int x, int y, int cw, int ch); - -#endif /* QEMU_PIXMAN_H */ |