mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
ui/console: Remove PixelFormat from qemu/typedefs.h
Header files requiring PixelFormat already include "ui/qemu-pixman.h". To clean "qemu/typedefs.h", move the declaration to "ui/qemu-pixman.h" (removing the forward declaration). Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
5a4c2e5905
commit
0a323e66b5
3 changed files with 10 additions and 11 deletions
|
@ -53,6 +53,16 @@
|
|||
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
typedef struct PixelFormat {
|
||||
uint8_t bits_per_pixel;
|
||||
uint8_t bytes_per_pixel;
|
||||
uint8_t depth; /* color depth in bits */
|
||||
uint32_t rmask, gmask, bmask, amask;
|
||||
uint8_t rshift, gshift, bshift, ashift;
|
||||
uint8_t rmax, gmax, bmax, amax;
|
||||
uint8_t rbits, gbits, bbits, abits;
|
||||
} PixelFormat;
|
||||
|
||||
PixelFormat qemu_pixelformat_from_pixman(pixman_format_code_t format);
|
||||
pixman_format_code_t qemu_default_pixman_format(int bpp, bool native_endian);
|
||||
pixman_format_code_t qemu_drm_format_to_pixman(uint32_t drm_format);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue