Kim Woelders
52b0752af4
Pass parameters to __imlib_LoadImage() by struct
...
Makes it much easier to change stuff.
2021-12-18 06:07:08 +01:00
Kim Woelders
8470ecec66
Use __func__ instead of open coded function names
...
We are already requiring C99, at least since the recent initial context
changes.
2021-12-18 06:07:08 +01:00
Kim Woelders
89def8bab3
Drop context check/init in API functions
...
Obsolete as we now have an initial static one.
2021-12-10 19:29:46 +01:00
Kim Woelders
8370777a31
Make initial context static
...
Avoids having to check on every API function call.
2021-12-08 19:12:29 +01:00
Kim Woelders
01d76b56a0
Drop context image save/restore around __imlib_Load/SaveImage() calls
...
Should not be necessary.
2021-12-06 14:30:30 +01:00
Kim Woelders
dbdea2a4a6
test: Add context test
2021-12-06 14:30:30 +01:00
Kim Woelders
fe8ef27575
1.7.5
2021-12-06 07:26:23 +01:00
Kim Woelders
1216f11686
Update doc for imlib_load_image_fd()
2021-12-06 07:08:06 +01:00
Kim Woelders
273a7aaac3
Refactor condition for using assembly functions
...
Makes it easier to override the decision for testing.
Setting IMLIB2_ASM_OFF will now disable use of assembly functions.
2021-12-04 15:14:50 +01:00
Kim Woelders
b1208a1333
Refactoring around mmx and scaling function calls
...
Move call to __imlib_Scale_mmx_AARGBA() into __imlib_ScaleAARGBA() and
__imlib_ScaleAARGB().
Similar to mmx/rotation handling.
2021-12-04 06:55:21 +01:00
Kim Woelders
1411f6ac69
Refactoring around mmx and rotate function calls
...
Move call to __imlib_mmx_RotateAA() into __imlib_RotateAA().
Avoids some code duplication.
2021-12-04 06:55:21 +01:00
Kim Woelders
9b29249619
test: Add some scaling/rotation tests
2021-12-04 06:55:21 +01:00
Kim Woelders
074c408608
test_save: Check images with alpha too
2021-12-04 06:55:21 +01:00
Kim Woelders
f935f31bad
Simplify build wrt. asm files
2021-12-04 06:55:21 +01:00
Kim Woelders
8f28d7d706
blend.c: Tweaks, cleanups
2021-12-04 06:55:11 +01:00
Kim Woelders
152366c87e
Avoid "exceeds maximum object size" warning
...
..for 32 bit arch too.
2021-12-02 18:10:18 +01:00
Kim Woelders
84343e5a61
Avoid signedness warning
2021-12-02 18:10:18 +01:00
Kim Woelders
5627edbb76
Speedup in imlib_create_scaled_image_from_drawable()
...
Avoid intermediate pixmap copy when scaling 1:1 with no offset.
2021-11-29 17:37:20 +01:00
Kim Woelders
b2d7af466e
x11_grab.c: Introduce function to get shape mask
...
Avoiding some code duplication.
2021-11-29 17:37:20 +01:00
Kim Woelders
314fb50e92
x11_grab.c: Cosmetics
2021-11-29 17:37:20 +01:00
Kim Woelders
5ab0fa77f1
imlib2_view: Enable grabbing/viewing drawables
2021-11-29 17:37:20 +01:00
Kim Woelders
1471e92f62
Only set MAINTAINERCLEANFILES in top-level Makefile.am
...
Less likely to forget one (currently in test/).
2021-11-29 17:37:20 +01:00
NRK
524d439adf
WEBP loader: fix key selecting last frame
...
as far as i can tell, iter is being used uninitialized here leading to
reading garbage values resulting in the last frame always being selected
when key is present.
2021-11-29 17:37:20 +01:00
Kim Woelders
e0e4f883e9
test_grab: Add scale-down tests
2021-11-25 15:46:23 +01:00
Kim Woelders
00d050901d
test_grab: Cleanups, cosmetics
2021-11-25 15:46:23 +01:00
Kim Woelders
6e27c1e2c3
Fix y-upscaling in imlib_create_scaled_image_from_drawable()
2021-11-25 15:45:56 +01:00
Kim Woelders
add72b4023
x11_grab.c: Rename source/destination variables for clarity
2021-11-25 09:17:50 +01:00
Kim Woelders
86a5a73b5e
Refactor imlib_create_scaled_image_from_drawable() - take 2
...
The X11 stuff should be in x11_grab.c, like the
imlib_create_image_from_drawable() implementation.
2021-11-25 09:17:50 +01:00
Kim Woelders
4019015a47
Revert "Refactor imlib_create_scaled_image_from_drawable()"
...
This reverts commit eebe5a2747
.
Got source/destination mixed up.
2021-11-25 09:16:54 +01:00
Kim Woelders
eebe5a2747
Refactor imlib_create_scaled_image_from_drawable()
...
The X11 stuff should be in x11_grab.c, like the
imlib_create_image_from_drawable() implementation.
2021-11-23 20:33:25 +01:00
Kim Woelders
892af451f2
Trivial changes in __imlib_Grab...() function prototypes
2021-11-23 20:33:25 +01:00
Kim Woelders
63a0279785
Move pixmap stuff to x11_pixmap.c/h
2021-11-23 20:33:25 +01:00
Kim Woelders
008e4e9fd4
test: Add X11 drawable grabbing test
2021-11-23 20:33:25 +01:00
Kim Woelders
21a4172e81
Move ImlibImagePixmap population to __imlib_AddImagePixmapToCache()
...
For similarity with __imlib_FindCachedImagePixmap().
2021-11-23 20:07:56 +01:00
Kim Woelders
59d6b148f5
Rename X11 related files for clarity
...
And only build them when BUILD_X11.
2021-11-23 20:07:56 +01:00
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