summaryrefslogtreecommitdiffstats
path: root/ui/qemu-pixman.c
Commit message (Collapse)AuthorAgeFilesLines
* ui/pixman: add qemu_pixman_check_formatGerd Hoffmann2015-01-191-0/+27
| | | | | | Convinience check_format function for UIs using pixman. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* ui: Make qemu_default_pixman_format() return 0 on unsupported formatsBenjamin Herrenschmidt2015-01-191-1/+1
| | | | | | | | | In order to remove the logic for detecting supported shared pixmap formats from device models, make qemu_default_pixman_format() capable for failing by returning 0 which is not a possible format value rather than asserting. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* pixman: fix qemu_default_pixman_format (32bpp non-native endian)Gerd Hoffmann2014-09-301-1/+1
| | | | | | | | Bug breaks SDL display of bigendian guests on little endian hosts. Reported-by: BALATON Zoltan <balaton@eik.bme.hu> Reported-by: Valentin Manea <valentin.manea@gmail.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* console: add qemu_pixman_linebuf_copyGerd Hoffmann2014-09-051-0/+9
| | | | | | | Helper function for copying data from linebuf to framebuffer using pixman, possibly converting in case src and dst formats differ. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* console: add qemu_default_pixman_formatGerd Hoffmann2014-09-051-0/+25
| | | | | | Function returning the default pixman format for a given depth. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* console: add qemu_pixelformat_from_pixmanGerd Hoffmann2014-09-051-0/+56
| | | | | | | | Function to convert pixman format codes to qemu PixelFormat. [ Benjamin Herrenschmidt: fix BGRA+RGBA shifts ] Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* pixman: render vgafont glyphs into pixman imagesGerd Hoffmann2013-04-161-0/+43
| | | | | | | Add helper functions to create pixman mask images for glyphs and to render these glyphs into a pixman image. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* pixman: add qemu_pixman_color()Gerd Hoffmann2013-04-161-0/+11
| | | | | | | Helper function to map qemu colors (32bit integer + matching PixelFormat) into pixman_color_t. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* qemu-pixman.h: Avoid mutual inclusion loop with console.hPeter Maydell2013-01-301-1/+2
| | | | | | | | | | | | Remove an unnecessary mutual inclusion loop between qemu-pixman.h and console.h, since the former was only including the latter for 'PixelFormat*', which can be provided by typedefs.h. This requires a minor adjustment to the files which included qemu-pixman.h, since they were relying on it implicitly dragging in all of console.h. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
* ui: move files to ui/ and include/ui/Paolo Bonzini2012-12-191-0/+80
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
OpenPOWER on IntegriCloud