qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch for png_save(), QEMU v8.0


From: Валентин
Subject: Patch for png_save(), QEMU v8.0
Date: Tue, 02 May 2023 16:48:00 +0300

Hello! 
 
Currently, png_save() in "console.c" uses "PIXMAN_a8r8g8b8" format when saving png. 
 
( https://gitlab.com/qemu-project/qemu/-/blob/7c18f2d663521f1b31b821a13358ce38075eaf7d/ui/console.c#L314 ) 
 
It should probably use "PIXMAN_a8b8g8r8" (red<>blue exchanged). 
Without it I'm getting PNGs with blue and red channels swapped (QEMU 8.0, qemu-system-x86_64, Arm64 host, libpng 1.6.39). 
 
Steps to reproduce: in QEMU 8.0 console execute "screendump /path/to/screenshot.png -f png". 
 
The patch is in attachment. 
With best regards, 
Valentine.

Attachment: 800_abgr.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]