Commit Graph

101 Commits

Author SHA1 Message Date
db0f7a7b77 libimg: Implement more bit depth conversion routines
git-svn-id: svn://kolibrios.org@9713 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-02-10 00:50:25 +00:00
Kirill Lipatov (Leency)
b4a6b076d8 add KMatrix into Appearance app
git-svn-id: svn://kolibrios.org@9640 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-15 12:38:25 +00:00
vitalkrilov
46d9482bb0 Fixed misuse of "/rd/1" (changed to "/sys") for all other programs
git-svn-id: svn://kolibrios.org@9587 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-07 12:42:44 +00:00
c3b7833e72 libimg: Avoid SSE pinsrw instruction in blend_mmx.asm
pinsrw can act on MMX registers, but it is still an SSE instruction.

git-svn-id: svn://kolibrios.org@9273 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-11-15 21:20:52 +00:00
a16331c816 kiv and libimg.asm: Follow asm style guide, no semantic changes.
git-svn-id: svn://kolibrios.org@8497 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-30 05:32:02 +00:00
IgorA
e532373af8 libimg: can save 32 bit png
git-svn-id: svn://kolibrios.org@8463 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-21 13:58:19 +00:00
459cb3ec5b 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.

git-svn-id: svn://kolibrios.org@8449 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-18 22:08:51 +00:00
IgorA
9a54fc6aed tinygl: add some double functions, add bcc32 example
libimg: small optimize

git-svn-id: svn://kolibrios.org@8408 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-14 16:48:32 +00:00
eb01893ff6 libimg: fix transparency in indexed png images.
git-svn-id: svn://kolibrios.org@8399 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-13 21:26:28 +00:00
11e69b4021 libimg: export img.resize_data
git-svn-id: svn://kolibrios.org@8395 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-13 18:07:49 +00:00
201cf02d85 libimg: transparency fixes.
img.convert doesn't make opaque pixels transparent.
gif decoder considers palette pixels opaque.

git-svn-id: svn://kolibrios.org@8394 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-13 17:22:19 +00:00
Kirill Lipatov (Leency)
5d3b2a031a libimg: img.decode now checks that length is not null
WebView: img tag: proceed data-src= if src= is empty, fix crash

git-svn-id: svn://kolibrios.org@8363 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-11 03:05:01 +00:00
a19ce6df66 Add img.blend example, add libimg examples to autobuild
git-svn-id: svn://kolibrios.org@8342 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-08 17:50:26 +00:00
263f2855f2 libimg: Add and export img.blend function
git-svn-id: svn://kolibrios.org@8341 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-08 17:40:34 +00:00
a0a18277da libimg: tiff: Don't rely on EOI tag at the end of the strip.
Reference implementation (libtiff) has a workaround: precalculate data
size of the strip and don't rely on EOI tag of specific bit length.

This allow to read some invalid TIFF LZW images by my old scanner.

git-svn-id: svn://kolibrios.org@7735 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-03-07 12:54:18 +00:00
633d75c969 libini: Fix ini.del_section to not lose the last byte of a file.
git-svn-id: svn://kolibrios.org@7705 a494cfbc-eb01-0410-851d-a64ba20cac60
2019-12-04 22:44:16 +00:00
c7f696b50f Libimg: Fix bug with 16-bit BMP padding.
git-svn-id: svn://kolibrios.org@7523 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-11-03 17:36:45 +00:00
IgorA
c87db09b6e libimg: fix save small png images
git-svn-id: svn://kolibrios.org@7279 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-05-15 16:43:23 +00:00
6cf659fe71 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.


git-svn-id: svn://kolibrios.org@7105 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-10-31 21:33:52 +00:00
IgorA
dc5527c5ca update docs sys function 54.1
git-svn-id: svn://kolibrios.org@6891 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-04-29 09:12:39 +00:00
IgorA
c162817dfc add filter 'paeth', fix in 'build_bl_tree'
git-svn-id: svn://kolibrios.org@6888 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-04-18 09:45:38 +00:00
IgorA
6bc316c46e fix continue crc calculation in 'archiver.obj'
git-svn-id: svn://kolibrios.org@6883 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-04-06 06:42:07 +00:00
IgorA
ff3cee003b small fixes
git-svn-id: svn://kolibrios.org@6881 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-03-31 18:34:26 +00:00
IgorA
c5ce2bec50 fix calculation 'adler32',
other small fixes

git-svn-id: svn://kolibrios.org@6873 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-03-04 19:17:49 +00:00
IgorA
19552bad79 fix r6860, small change in 'libimg.obj'
git-svn-id: svn://kolibrios.org@6870 a494cfbc-eb01-0410-851d-a64ba20cac60
2017-02-28 18:02:53 +00:00
741b6ad89c img.scale and img.convert fix for multiframe images
new function: img.get_scaled_size


git-svn-id: svn://kolibrios.org@6807 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-22 23:29:25 +00:00
IgorA
2c0a9cbf44 optimize struct 'z_stream'
git-svn-id: svn://kolibrios.org@6797 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-14 14:54:51 +00:00
IgorA
9a564b1fbf fix compress size
git-svn-id: svn://kolibrios.org@6780 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-03 19:06:49 +00:00
IgorA
cdfe44d0b7 fix, optimize, clean code
git-svn-id: svn://kolibrios.org@6779 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-12-02 16:13:46 +00:00
IgorA
e73f2a8659 optimize 'libimg.obj',
fix in 'zlib.obj',
animage can save '*.png' files

git-svn-id: svn://kolibrios.org@6741 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-23 09:11:10 +00:00
Kirill Lipatov (Leency)
64b1d5344a move cubeline to ISO, add "fasm -m 32768" into libimg Tupfile
git-svn-id: svn://kolibrios.org@6734 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-21 20:12:44 +00:00
IgorA
722650c58d libimg can save 24-bit *.png images
git-svn-id: svn://kolibrios.org@6733 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-21 16:00:11 +00:00
CleverMouse
cd74d1af33 switch build system to Tup
git-svn-id: svn://kolibrios.org@5098 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-09-12 15:15:23 +00:00
GerdtR
a461856fa1 Fix bug: add at the end of the ini-file of the empty line, otherwise new section is added wrong
git-svn-id: svn://kolibrios.org@4422 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-01-01 12:32:09 +00:00
0a44c9a5ca libimg: check raw pnm payload size (broken files)
git-svn-id: svn://kolibrios.org@4229 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-11-14 11:12:21 +00:00
Marat Zakiyanov (Mario79)
c6da9f0129 Fixed a memory leak. Author of fix - GerdtR.
git-svn-id: svn://kolibrios.org@3920 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-09-21 12:01:31 +00:00
GerdtR
848a76b6e9 Fixed a bug when deleting section
git-svn-id: svn://kolibrios.org@3859 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-08-06 19:40:30 +00:00
GerdtR
ab10e61dba Fixed bug with recording negative Int and added function ini_del_section
git-svn-id: svn://kolibrios.org@3832 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-07-24 19:15:08 +00:00
ccaf3a054b libimg:
add new image types (Image.bpp2i, Image.bpp4i); update to_rgb, flip, rotate functions
decode .bpp2i and .bpp4i tiff images
disable memory limit for decoded images


git-svn-id: svn://kolibrios.org@3503 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-05-11 21:31:21 +00:00
a524093376 libimg: pcx: unpack scanlines, not color planes
git-svn-id: svn://kolibrios.org@3499 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-05-10 12:28:39 +00:00
CleverMouse
fdad5bfed3 revert libio-related changes from r3130 and do the fix in the correct place
git-svn-id: svn://kolibrios.org@3131 a494cfbc-eb01-0410-851d-a64ba20cac60
2012-12-21 19:26:30 +00:00
IgorA
55f8d8856f 1) fix in 'libio'
2) small optimize 'editbox'

git-svn-id: svn://kolibrios.org@3130 a494cfbc-eb01-0410-851d-a64ba20cac60
2012-12-21 18:57:14 +00:00
bef68cee11 libini: fix typo (allow f and f1-f12 shortcuts)
git-svn-id: svn://kolibrios.org@3112 a494cfbc-eb01-0410-851d-a64ba20cac60
2012-12-15 14:00:13 +00:00
9e218440da add convert.asm (fix previous revision)
git-svn-id: svn://kolibrios.org@3056 a494cfbc-eb01-0410-851d-a64ba20cac60
2012-11-18 16:12:36 +00:00
e9998d7f13 libimg:
introduce img.convert + example
update tga decoder
img.to_rgb and img.to_rgb2 are deprecated


git-svn-id: svn://kolibrios.org@3055 a494cfbc-eb01-0410-851d-a64ba20cac60
2012-11-18 16:10:28 +00:00
9fcea4ddbf libimg: new scale type (tile), some fixes
git-svn-id: svn://kolibrios.org@3053 a494cfbc-eb01-0410-851d-a64ba20cac60
2012-11-17 13:24:10 +00:00
a34e834d07 libimg: img.scale prototype and simple example
git-svn-id: svn://kolibrios.org@3036 a494cfbc-eb01-0410-851d-a64ba20cac60
2012-11-13 19:16:23 +00:00
0cc349060f merge mem.inc to dll.inc
place dll.inc in /programs
delete all the other dll.inc and mem.inc files
correct some programs to use common dll.inc


git-svn-id: svn://kolibrios.org@3014 a494cfbc-eb01-0410-851d-a64ba20cac60
2012-11-09 10:42:30 +00:00
e049b4d610 libimg:
read lzw-encoded tiff images
handle predictor tag in tiff files


git-svn-id: svn://kolibrios.org@2992 a494cfbc-eb01-0410-851d-a64ba20cac60
2012-10-29 16:17:45 +00:00
185caf04b2 libimg:
new image type: grayscale (Image.bpp9)
tiff fixes for grayscale+alpha images
xcf regression bug fixed (screen mode blending, r2388)


git-svn-id: svn://kolibrios.org@2733 a494cfbc-eb01-0410-851d-a64ba20cac60
2012-06-04 03:54:14 +00:00