Subversion Repositories Kolibri OS

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
9713 809 d 23 h dunkaist /programs/develop/libraries/libs-dev/ libimg: Implement more bit depth conversion routines  
8449 1228 d 1 h dunkaist /programs/develop/libraries/libs-dev/libimg/ libimg: Improve support of transparent PNG images.

* Support grayscale images with alpha channel.
* Support rgb images with transparent color.
* Process 'tRNS' chunk (simple transparency).

Transparent png images were already supported for color type 6, which
is RGBA. Now indexed images (color type 3) can also have transparency
via 'tRNS' chunk data.
 
8394 1233 d 6 h dunkaist /programs/develop/libraries/libs-dev/libimg/ libimg: transparency fixes.

img.convert doesn't make opaque pixels transparent.
gif decoder considers palette pixels opaque.
 
7105 2372 d 2 h dunkaist /programs/develop/libraries/libs-dev/libimg/ libimg: add img.from_file, refactor img.convert.

Add new function, img.from_file: gets file name and returns decoded Image.
Make img.convert code less spaghetti: use jump table, not a chain of jmp's.
 
6807 2685 d 0 h dunkaist /programs/develop/libraries/libs-dev/libimg/ img.scale and img.convert fix for multiframe images
new function: img.get_scaled_size
 
3056 4180 d 7 h dunkaist /programs/develop/libraries/libs-dev/libimg/ add convert.asm (fix previous revision)