Commit Graph

1637 Commits

Author SHA1 Message Date
Kim Woelders 601cdb4d0d Remove some unneeded headers 2021-11-23 20:07:56 +01:00
Kim Woelders 688ab0edba Drop unnecessary free() NULL argument checks 2021-11-20 17:02:23 +01:00
Kim Woelders 78a682cdc9 configure.ac: Fixup after recent change 2021-11-06 21:00:36 +01:00
Kim Woelders d4fa61dc50 WEBP loader: Enable loading animated images (first frame by default) 2021-11-05 17:22:01 +01:00
Kim Woelders d9e2854f23 Loader loading: Don't bother looking up load() if we have load2() 2021-11-05 17:22:01 +01:00
Kim Woelders ac1f75daf0 Loader loading: Avoid always loading all loaders
Introduce "known loaders" list associating the known loader modules
with the usual file name extensions they handle.
If file name extensions match known ones we will only load the required
loader.
2021-11-05 17:22:01 +01:00
Kim Woelders 1cf913701c Loader loading: Minor loader lookup refactoring
Split off __imlib_LookupLoadedLoader() which just does lookup in loaded
loader list.
2021-11-05 17:22:01 +01:00
Kim Woelders a0b32e292b Loader loading: Move __imlib_GetLoaderList()
Paving the way for other changes.
2021-11-05 17:22:01 +01:00
Kim Woelders b45ea50c4b Loader loading: Move to __imlib_FindBestLoaderForFormat() 2021-11-05 17:22:01 +01:00
Kim Woelders 3b2d26deac Loader loading: Tweaks 2021-11-05 17:22:01 +01:00
Kim Woelders 96426fee70 Loader cosmetics 2021-11-05 17:22:01 +01:00
Kim Woelders 59561dcb1b Introduce ARRAY_SIZE() 2021-11-05 17:22:01 +01:00
Kim Woelders 5433232308 Introduce UPDATE_FLAG()
Somewhat simpler.
2021-11-05 17:22:01 +01:00
Kim Woelders 55a27d01f8 imlib2_view: Add option to cache images 2021-11-05 17:22:01 +01:00
Kim Woelders 0ef105d43c test: test_load improvements 2021-11-05 17:22:01 +01:00
Kim Woelders 88231b52eb XPM loader: Use mmap() for loading 2021-10-22 19:27:47 +02:00
Kim Woelders d812457afe XBM loader: Ignore comments and other stuff in header
Add naive signature check to avoid trivial cases where we might
otherwise scan through large non-xbm file.
2021-10-22 19:27:47 +02:00
Kim Woelders 868f2434f1 XBM loader: Use mmap() for loading 2021-10-22 19:27:47 +02:00
Kim Woelders 9caccf41f6 XBM loader: Cosmetics 2021-10-22 19:27:47 +02:00
Kim Woelders 3e1783b846 XBM loader: Fix potential buffer overrun 2021-10-22 19:27:47 +02:00
Kim Woelders 59dc04fe56 PNM loader: Use mmap() for loading 2021-10-22 19:27:47 +02:00
Kim Woelders 164e628951 LBM loader: Use mmap() for loading 2021-10-22 19:27:47 +02:00
Kim Woelders 64bf73d851 LBM loader: Cleanups 2021-10-22 19:27:47 +02:00
Kim Woelders ff79901a07 ICO loader: Use mmap() for loading 2021-10-22 19:27:47 +02:00
Kim Woelders 7c0ec91fe2 ICO loader: Cosmetics 2021-10-22 19:27:47 +02:00
Kim Woelders b99b984bb8 BMP loader: Use mmap() for loading 2021-10-22 19:27:47 +02:00
Kim Woelders 902427c428 BMP loader: Cosmetics 2021-10-22 19:27:47 +02:00
Kim Woelders ffd356a43a ARGB loader: Use mmap() for loading 2021-10-22 19:27:47 +02:00
Kim Woelders 670a4a41f8 ARGB loader: Cosmetics 2021-10-22 19:27:47 +02:00
Kim Woelders a40971035e FF loader: Use mmap() for loading 2021-10-22 19:27:47 +02:00
Kim Woelders c4e4741cc8 FF loader: Cosmetics 2021-10-22 19:27:47 +02:00
Kim Woelders 51999ad031 WEBP loader: Use mmap() for loading 2021-10-22 19:27:47 +02:00
Kim Woelders 546bb20f52 WEBP loader: Cosmetics
Some variable renaming for consistency.
2021-10-22 19:27:47 +02:00
Kim Woelders b7b72ce0b5 TGA loader: Use im->fsize, cosmetics, debug 2021-10-22 19:27:47 +02:00
Kim Woelders 66c941c267 TIFF loader: Use mmap() during signature check 2021-10-22 19:27:47 +02:00
Kim Woelders 07deb8c893 PNG loader: Use mmap() during signature check 2021-10-22 19:27:47 +02:00
Kim Woelders df050d2dbc PNG loader: Cosmetics 2021-10-22 19:27:47 +02:00
Kim Woelders ae01ddf0b2 Introduce im->fsize 2021-10-22 19:27:47 +02:00
Kim Woelders 9996028e7d debug: Add some debug related to file access and image loading 2021-10-22 19:26:58 +02:00
Kim Woelders e47e32a247 debug: Infrastructure
Add some debug infrastructure.
Disabled by default, enable with --enable-debug.
When enabled, the environment variable IMLIB2_DEBUG controls the amount
of debug output.
2021-10-22 19:24:15 +02:00
Kim Woelders 5a2490eb7f imlib2_load: Use clock_gettime() when available 2021-10-22 15:41:44 +02:00
Kim Woelders e3a2bd5fa6 imlib2_view: If verbose show error message on failure 2021-10-19 09:19:37 +02:00
Kim Woelders 81b4e7b56b test: Add test_load_2
Checking signature (CRC) of loaded images.
2021-10-18 19:33:25 +02:00
Kim Woelders 579b1b3366 test: Add icon-64.pbm 2021-10-16 20:46:49 +02:00
Kim Woelders 4e15a7974c Fix build (Imlib2.h is now built) 2021-10-08 19:43:14 +02:00
Kim Woelders 675d0084f8 imlib2_load: Add verbose option 2021-10-04 05:19:47 +02:00
Kim Woelders 1f7ef0225e Imlib.h: Add version macros 2021-09-26 17:38:09 +02:00
Kim Woelders ab52c354fe autofoo: Drop support for libungif
Obsolete for 15+ years.
2021-09-26 17:38:09 +02:00
Kim Woelders b200f57e92 JPEG loader: Parse EXIF data and handle orientation 2021-09-25 13:02:06 +02:00
Kim Woelders c5e0e786f9 JPEG loader: Cosmetics
Mostly trivial name changes to facilitate debugging.
2021-09-25 13:02:06 +02:00