GNOME Bugzilla – Bug 671550
pngdec: add support for video/x-raw-gray formats
Last modified: 2012-03-12 14:19:38 UTC
Created attachment 209156 [details] [review] pngdec: add support for video/x-raw-gray formats We work with 16-bit gray PNG images in our project, so we need support for this. I attached my patch for the pngdec. It can be applied on 0.10.30 and on master branch.
Created attachment 209162 [details] [review] fix typo in the patch
commit 38372eb199fc38ce64d755ee4a0caeeb1c31446c Author: Andrej Gelenberg <andrej.gelenberg@udo.edu> Date: Wed Mar 7 13:39:50 2012 +0100 pngdec: add support for video/x-raw-gray formats pngdec can now decode gray 8- and 16-bit images without alpha channel direct to video/x-raw-gray format. 16-bit gray images have big-endian format, because it's native PNG endianness. Gray images with alpha channel still converted to RGBA. Signed-off-by: Andrej Gelenberg <andrej.gelenberg@udo.edu>