GNOME Bugzilla – Bug 516401
gdk_pixdata_to_csource does not always add a macro for rle stream decoding to the code
Last modified: 2014-10-21 17:39:18 UTC
Please describe the problem:
When gdk_pixdata_to_csource is called with both GDK_PIXDATA_DUMP_RLE_DECODER and GDK_PIXDATA_DUMP_PIXDATA_STREAM flags set, the *_RUN_LENGTH_DECODE macro is missing from the generated C code ("*" is the value of "name" parameter, e.g. "MY_IMAGE")
If GDK_PIXDATA_DUMP_RLE_DECODER flag is used with GDK_PIXDATA_DUMP_PIXDATA_STRUCT or GDK_PIXDATA_DUMP_MACROS flags (defining other forms of C source to be generated), *_RUN_LENGTH_DECODE macro is successfully generated.
But description of the GDK_PIXDATA_DUMP_RLE_DECODER flag states that *_RUN_LENGTH_DECODE macro have to be generated if the flag is set regardless of values of other flags.
The detailed bug description can be found at:
Steps to reproduce:
Does this happen every time?
GdkPixdata is deprecated, please port to GResource instead.
Author: Bastien Nocera <email@example.com>
Date: Tue Oct 21 19:24:11 2014 +0200
lib: Deprecate GdkPixdata
GdkPixdata has a number of problems, including:
- it doesn't use the original files, losing metadata
- its RLE compression is ineffecient, even more so for lossy formats
- the way it's implemented doesn't support data > 64 kB on Windows