summaryrefslogtreecommitdiff
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* image.c: Avoid potential compile errorKim Woelders2022-01-211-4/+3
| | | | | | | | | | | | | | gcc 11.2.1 with -pedantic: image.c: In function ‘__imlib_LoadImage’: image.c:567:9: error: a label can only be part of a statement and a declaration is not a statement [-Werror=pedantic] 567 | ImlibLoader ** loaders = __imlib_GetLoaderList(); clang 13.0.0: image.c:567:9: error: expected expression ImlibLoader ** loaders = __imlib_GetLoaderList(); ^ Also remove pointless self-assignment.
* Avoid redundant operations when non-existing file has no "key"Kim Woelders2022-01-171-2/+5
|
* Simplify __imlib_FileKey()Kim Woelders2022-01-171-30/+13
| | | | And avoid malloc when not needed.
* Add dispose-to-previous frame handlingKim Woelders2022-01-162-6/+8
| | | | Dispose to previous appears to be used often by apng's.
* Add svg loaderKim Woelders2022-01-081-0/+6
|
* Add lzma loaderKim Woelders2021-12-281-0/+6
|
* Introduce more loader return codesKim Woelders2021-12-283-13/+52
| | | | | Used to avoid potentially wasting time trying to load corrupt images by trying loaders which won't recognize the image anyway.
* Updates for animated image handlingKim Woelders2021-12-262-4/+6
|
* autofoo/loader cosmeticsKim Woelders2021-12-231-12/+15
| | | | Consistently place loaders in same order.
* Drop some intermediate type definitionsKim Woelders2021-12-2118-166/+118
| | | | Not helpful, IMO.
* updates: Reduce memory usageKim Woelders2021-12-211-20/+13
| | | | | | | | Apparently, sizeof(struct _tile) was 4 (gcc 11.2.1) ?!? Weird - I think that once upon a time it was 1. Anyway, avoid having ill defined struct size. Also, simplify logic a bit (no need to deal with .usage as bit flags.
* Loader loading: Avoid access to uninitialized load() itemKim Woelders2021-12-211-1/+2
|
* debug: Avoid use of uninitialized dataKim Woelders2021-12-211-0/+1
|
* debug: Add DL macro for additional loader debugKim Woelders2021-12-191-1/+6
|
* Enable caching for multiframe imagesKim Woelders2021-12-192-10/+11
|
* Add support for multiframe (animated) imagesKim Woelders2021-12-194-0/+74
|
* debug: Add some image caching debugKim Woelders2021-12-191-0/+8
|
* Pass parameters to __imlib_LoadImage() by structKim Woelders2021-12-183-64/+51
| | | | Makes it much easier to change stuff.
* Use __func__ instead of open coded function namesKim Woelders2021-12-181-246/+169
| | | | | We are already requiring C99, at least since the recent initial context changes.
* Drop context check/init in API functionsKim Woelders2021-12-101-226/+0
| | | | Obsolete as we now have an initial static one.
* Make initial context staticKim Woelders2021-12-081-47/+30
| | | | Avoids having to check on every API function call.
* Drop context image save/restore around __imlib_Load/SaveImage() callsKim Woelders2021-12-061-30/+24
| | | | Should not be necessary.
* Update doc for imlib_load_image_fd()Kim Woelders2021-12-061-4/+7
|
* Refactor condition for using assembly functionsKim Woelders2021-12-048-15/+51
| | | | | | Makes it easier to override the decision for testing. Setting IMLIB2_ASM_OFF will now disable use of assembly functions.
* Refactoring around mmx and scaling function callsKim Woelders2021-12-044-36/+38
| | | | | | | Move call to __imlib_Scale_mmx_AARGBA() into __imlib_ScaleAARGBA() and __imlib_ScaleAARGB(). Similar to mmx/rotation handling.
* Refactoring around mmx and rotate function callsKim Woelders2021-12-042-33/+17
| | | | | | Move call to __imlib_mmx_RotateAA() into __imlib_RotateAA(). Avoids some code duplication.
* Simplify build wrt. asm filesKim Woelders2021-12-041-15/+5
|
* blend.c: Tweaks, cleanupsKim Woelders2021-12-042-10/+12
|
* Speedup in imlib_create_scaled_image_from_drawable()Kim Woelders2021-11-291-3/+13
| | | | Avoid intermediate pixmap copy when scaling 1:1 with no offset.
* x11_grab.c: Introduce function to get shape maskKim Woelders2021-11-291-57/+51
| | | | Avoiding some code duplication.
* x11_grab.c: CosmeticsKim Woelders2021-11-291-15/+24
|
* Only set MAINTAINERCLEANFILES in top-level Makefile.amKim Woelders2021-11-291-1/+0
| | | | Less likely to forget one (currently in test/).
* Fix y-upscaling in imlib_create_scaled_image_from_drawable()Kim Woelders2021-11-251-9/+27
|
* x11_grab.c: Rename source/destination variables for clarityKim Woelders2021-11-252-169/+183
|
* Refactor imlib_create_scaled_image_from_drawable() - take 2Kim Woelders2021-11-253-111/+117
| | | | | The X11 stuff should be in x11_grab.c, like the imlib_create_image_from_drawable() implementation.
* Revert "Refactor imlib_create_scaled_image_from_drawable()"Kim Woelders2021-11-253-116/+111
| | | | | | This reverts commit eebe5a274765dfda7ba809de08692a7d6319e966. Got source/destination mixed up.
* Refactor imlib_create_scaled_image_from_drawable()Kim Woelders2021-11-233-111/+116
| | | | | The X11 stuff should be in x11_grab.c, like the imlib_create_image_from_drawable() implementation.
* Trivial changes in __imlib_Grab...() function prototypesKim Woelders2021-11-232-6/+7
|
* Move pixmap stuff to x11_pixmap.c/hKim Woelders2021-11-237-364/+360
|
* Move ImlibImagePixmap population to __imlib_AddImagePixmapToCache()Kim Woelders2021-11-233-29/+49
| | | | For similarity with __imlib_FindCachedImagePixmap().
* Rename X11 related files for clarityKim Woelders2021-11-2316-114/+76
| | | | And only build them when BUILD_X11.
* Remove some unneeded headersKim Woelders2021-11-231-2/+0
|
* Drop unnecessary free() NULL argument checksKim Woelders2021-11-209-38/+20
|
* Loader loading: Don't bother looking up load() if we have load2()Kim Woelders2021-11-051-1/+2
|
* Loader loading: Avoid always loading all loadersKim Woelders2021-11-051-3/+144
| | | | | | | 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.
* Loader loading: Minor loader lookup refactoringKim Woelders2021-11-051-8/+21
| | | | | Split off __imlib_LookupLoadedLoader() which just does lookup in loaded loader list.
* Loader loading: Move __imlib_GetLoaderList()Kim Woelders2021-11-051-6/+6
| | | | Paving the way for other changes.
* Loader loading: Move to __imlib_FindBestLoaderForFormat()Kim Woelders2021-11-053-9/+4
|
* Loader loading: TweaksKim Woelders2021-11-051-11/+7
|
* Introduce ARRAY_SIZE()Kim Woelders2021-11-051-0/+2
|