Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | image.c: Avoid potential compile error | Kim Woelders | 2022-01-21 | 1 | -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 Woelders | 2022-01-17 | 1 | -2/+5 |
| | |||||
* | Simplify __imlib_FileKey() | Kim Woelders | 2022-01-17 | 1 | -30/+13 |
| | | | | And avoid malloc when not needed. | ||||
* | Add dispose-to-previous frame handling | Kim Woelders | 2022-01-16 | 2 | -6/+8 |
| | | | | Dispose to previous appears to be used often by apng's. | ||||
* | Add svg loader | Kim Woelders | 2022-01-08 | 1 | -0/+6 |
| | |||||
* | Add lzma loader | Kim Woelders | 2021-12-28 | 1 | -0/+6 |
| | |||||
* | Introduce more loader return codes | Kim Woelders | 2021-12-28 | 3 | -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 handling | Kim Woelders | 2021-12-26 | 2 | -4/+6 |
| | |||||
* | autofoo/loader cosmetics | Kim Woelders | 2021-12-23 | 1 | -12/+15 |
| | | | | Consistently place loaders in same order. | ||||
* | Drop some intermediate type definitions | Kim Woelders | 2021-12-21 | 18 | -166/+118 |
| | | | | Not helpful, IMO. | ||||
* | updates: Reduce memory usage | Kim Woelders | 2021-12-21 | 1 | -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() item | Kim Woelders | 2021-12-21 | 1 | -1/+2 |
| | |||||
* | debug: Avoid use of uninitialized data | Kim Woelders | 2021-12-21 | 1 | -0/+1 |
| | |||||
* | debug: Add DL macro for additional loader debug | Kim Woelders | 2021-12-19 | 1 | -1/+6 |
| | |||||
* | Enable caching for multiframe images | Kim Woelders | 2021-12-19 | 2 | -10/+11 |
| | |||||
* | Add support for multiframe (animated) images | Kim Woelders | 2021-12-19 | 4 | -0/+74 |
| | |||||
* | debug: Add some image caching debug | Kim Woelders | 2021-12-19 | 1 | -0/+8 |
| | |||||
* | Pass parameters to __imlib_LoadImage() by struct | Kim Woelders | 2021-12-18 | 3 | -64/+51 |
| | | | | Makes it much easier to change stuff. | ||||
* | Use __func__ instead of open coded function names | Kim Woelders | 2021-12-18 | 1 | -246/+169 |
| | | | | | We are already requiring C99, at least since the recent initial context changes. | ||||
* | Drop context check/init in API functions | Kim Woelders | 2021-12-10 | 1 | -226/+0 |
| | | | | Obsolete as we now have an initial static one. | ||||
* | Make initial context static | Kim Woelders | 2021-12-08 | 1 | -47/+30 |
| | | | | Avoids having to check on every API function call. | ||||
* | Drop context image save/restore around __imlib_Load/SaveImage() calls | Kim Woelders | 2021-12-06 | 1 | -30/+24 |
| | | | | Should not be necessary. | ||||
* | Update doc for imlib_load_image_fd() | Kim Woelders | 2021-12-06 | 1 | -4/+7 |
| | |||||
* | Refactor condition for using assembly functions | Kim Woelders | 2021-12-04 | 8 | -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 calls | Kim Woelders | 2021-12-04 | 4 | -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 calls | Kim Woelders | 2021-12-04 | 2 | -33/+17 |
| | | | | | | Move call to __imlib_mmx_RotateAA() into __imlib_RotateAA(). Avoids some code duplication. | ||||
* | Simplify build wrt. asm files | Kim Woelders | 2021-12-04 | 1 | -15/+5 |
| | |||||
* | blend.c: Tweaks, cleanups | Kim Woelders | 2021-12-04 | 2 | -10/+12 |
| | |||||
* | Speedup in imlib_create_scaled_image_from_drawable() | Kim Woelders | 2021-11-29 | 1 | -3/+13 |
| | | | | Avoid intermediate pixmap copy when scaling 1:1 with no offset. | ||||
* | x11_grab.c: Introduce function to get shape mask | Kim Woelders | 2021-11-29 | 1 | -57/+51 |
| | | | | Avoiding some code duplication. | ||||
* | x11_grab.c: Cosmetics | Kim Woelders | 2021-11-29 | 1 | -15/+24 |
| | |||||
* | Only set MAINTAINERCLEANFILES in top-level Makefile.am | Kim Woelders | 2021-11-29 | 1 | -1/+0 |
| | | | | Less likely to forget one (currently in test/). | ||||
* | Fix y-upscaling in imlib_create_scaled_image_from_drawable() | Kim Woelders | 2021-11-25 | 1 | -9/+27 |
| | |||||
* | x11_grab.c: Rename source/destination variables for clarity | Kim Woelders | 2021-11-25 | 2 | -169/+183 |
| | |||||
* | Refactor imlib_create_scaled_image_from_drawable() - take 2 | Kim Woelders | 2021-11-25 | 3 | -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 Woelders | 2021-11-25 | 3 | -116/+111 |
| | | | | | | This reverts commit eebe5a274765dfda7ba809de08692a7d6319e966. Got source/destination mixed up. | ||||
* | Refactor imlib_create_scaled_image_from_drawable() | Kim Woelders | 2021-11-23 | 3 | -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 prototypes | Kim Woelders | 2021-11-23 | 2 | -6/+7 |
| | |||||
* | Move pixmap stuff to x11_pixmap.c/h | Kim Woelders | 2021-11-23 | 7 | -364/+360 |
| | |||||
* | Move ImlibImagePixmap population to __imlib_AddImagePixmapToCache() | Kim Woelders | 2021-11-23 | 3 | -29/+49 |
| | | | | For similarity with __imlib_FindCachedImagePixmap(). | ||||
* | Rename X11 related files for clarity | Kim Woelders | 2021-11-23 | 16 | -114/+76 |
| | | | | And only build them when BUILD_X11. | ||||
* | Remove some unneeded headers | Kim Woelders | 2021-11-23 | 1 | -2/+0 |
| | |||||
* | Drop unnecessary free() NULL argument checks | Kim Woelders | 2021-11-20 | 9 | -38/+20 |
| | |||||
* | Loader loading: Don't bother looking up load() if we have load2() | Kim Woelders | 2021-11-05 | 1 | -1/+2 |
| | |||||
* | Loader loading: Avoid always loading all loaders | Kim Woelders | 2021-11-05 | 1 | -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 refactoring | Kim Woelders | 2021-11-05 | 1 | -8/+21 |
| | | | | | Split off __imlib_LookupLoadedLoader() which just does lookup in loaded loader list. | ||||
* | Loader loading: Move __imlib_GetLoaderList() | Kim Woelders | 2021-11-05 | 1 | -6/+6 |
| | | | | Paving the way for other changes. | ||||
* | Loader loading: Move to __imlib_FindBestLoaderForFormat() | Kim Woelders | 2021-11-05 | 3 | -9/+4 |
| | |||||
* | Loader loading: Tweaks | Kim Woelders | 2021-11-05 | 1 | -11/+7 |
| | |||||
* | Introduce ARRAY_SIZE() | Kim Woelders | 2021-11-05 | 1 | -0/+2 |
| |