summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* imlib2_view: Avoid clang errorHEADmasterKim Woelders2022-01-211-1/+1
| | | | | | imlib2_view.c:206:33: error: initializer element is not a compile-time constant static rect_t r_prev = r_zero; ^~~~~~
* 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.
* test: Add some more PNM type loading testsKim Woelders2022-01-198-2/+868
| | | | Also avoid that .gz file contents depend on contained file's time stamp.
* PNM loader: Fix "XV thumbnail" (P7 332) loadingKim Woelders2022-01-191-48/+44
| | | | Not sure this has ever worked.
* PNM loader: Fix P1 when spaces are omittedKim Woelders2022-01-181-7/+28
|
* test: Add makefile to generate test imagesKim Woelders2022-01-1811-270/+358
|
* test: Move generated image files out of source dirKim Woelders2022-01-189-33/+43
| | | | Simplifies cleaning up.
* Drop change log from before first version tagKim Woelders2022-01-182-885/+27
|
* 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.
* test: Check __imlib_FileKey()Kim Woelders2022-01-171-1/+65
|
* PNG loader: Add multiframe supportKim Woelders2022-01-161-1/+285
|
* PNG loader: Rewrite to use callback APIKim Woelders2022-01-161-75/+171
| | | | Preparing for multiframe support.
* PNG loader: Disable Imlib2-Comment stuffKim Woelders2022-01-161-1/+12
| | | | Not useful, AFAICT.
* Add dispose-to-previous frame handlingKim Woelders2022-01-163-12/+56
| | | | Dispose to previous appears to be used often by apng's.
* imlib2_load: Add no-data optionKim Woelders2022-01-161-14/+20
| | | | Also start using stdbool for boolean stuff.
* SVG loader: Avoid problems when loading the module more than onceKim Woelders2022-01-081-1/+1
| | | | | | | | | | | | | | | | | | | | It appears that the svg loader fails when dlopen'ed a second time, presumably due to some issue in librsvg2: thread '<unnamed>' panicked at 'Type RsvgHandle has already been registered', /builddir/build/BUILD/librsvg-2.52.4/vendor/glib/src/subclass/types.rs:751:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace fatal runtime error: failed to initiate panic, error 5 A second load of a loader will only happen if an application calls imlib_flush_loaders(), which I don't see why regular applications would need to do. However, calling imlib_flush_loaders() shouldn't cause applications to potentially fail (abort) anyway. The failure can be avoided by dlopen'ing with RTLD_NODELETE, but that would apply to all loaders, which doesn't seem right. With the solution here the svg.so module is marked to be un-unloadable which seems to solve the problem and doesn't affect other modules.
* Add svg loaderKim Woelders2022-01-086-0/+229
|
* XBM loader: Correct load2() result when no header is foundKim Woelders2022-01-071-3/+7
| | | | | | Also require that the header is found within the first 30 lines in the file. Otherwise we may waste some time parsing large C files.
* configure.ac: Correct simplification changes some moreKim Woelders2022-01-071-3/+4
|
* configure.ac: Correct simplification changesKim Woelders2022-01-041-3/+2
|
* LZMA loader: Fix potential warningKim Woelders2022-01-041-1/+1
|
* ICO loader: Fix compilation on big endian architecturesSören Tempel2022-01-031-0/+3
| | | | | | | | | | | | | | Commit ff79901a071a76ec73cc98c7ff15102c514afb7b refactors the ico_read_idir function and removed the local nr variable. Unfortunately, this variable is still used within an `#ifdef WORDS_BIGENDIAN` block on big endian architectures as a for loop index variable. As such, the code does presently not compile since the aforementioned commit. This patch fixes this issue by re-introducing the variable conditionally on big endian architectures. Note: It would likely be cleaner to declare the nr variable as part of the loop declaration, however, this C99 feature does not seem to be used anywhere in the code base, hence I refrained from using it here.
* imlib2_load: Verbosity twaeksKim Woelders2022-01-021-2/+5
|
* imlib2_view: Verbosity twaeksKim Woelders2022-01-021-3/+4
|
* imlib2_grab: Print error message if saving failsKim Woelders2021-12-301-1/+4
|
* Add lzma loaderKim Woelders2021-12-287-1/+102
|
* BZ2, ZLIB loaders: Move duplicated code to separate fileKim Woelders2021-12-285-130/+146
| | | | Also change decompressors to use mmap'ed data.
* Introduce more loader return codesKim Woelders2021-12-2821-254/+217
| | | | | Used to avoid potentially wasting time trying to load corrupt images by trying loaders which won't recognize the image anyway.
* imlib2_view: Rework display of animated imagesKim Woelders2021-12-281-84/+155
|
* GIF loader: Always set BLEND flagKim Woelders2021-12-281-0/+1
| | | | ... always?
* ICO loader: Mostly cosmetic changes (inline ico_read())Kim Woelders2021-12-261-51/+26
| | | | Avoids unnecessary memory allocation, simplifies error handling.
* ICO loader: Minor optimizationKim Woelders2021-12-261-15/+10
| | | | Or maybe not. A decent compiler would probably do this anyway.
* test: Add a couple of ico depth test imagesKim Woelders2021-12-265-0/+5
|
* imlib2_view: Fix(?) animated image frame dispose handlingKim Woelders2021-12-261-45/+84
| | | | Still need to deal with the blend flag.
* Updates for animated image handlingKim Woelders2021-12-265-8/+14
|
* configure.ac: Simplify loader setupKim Woelders2021-12-231-228/+57
|
* autofoo/loader cosmeticsKim Woelders2021-12-233-146/+146
| | | | Consistently place loaders in same order.
* Drop some intermediate type definitionsKim Woelders2021-12-2122-180/+132
| | | | 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
|
* IndentKim Woelders2021-12-211-2/+2
|
* ICO loader: Debug tweaksKim Woelders2021-12-191-5/+5
|
* GIF loader: Multiframe supportKim Woelders2021-12-191-13/+65
|
* GIF loader: Some refactoring, add debugKim Woelders2021-12-191-42/+87
|
* ICO loader: Multiframe supportKim Woelders2021-12-191-19/+25
|
* WEBP loader: Multiframe supportKim Woelders2021-12-191-10/+22
|
* debug: Add DL macro for additional loader debugKim Woelders2021-12-191-1/+6
|
* imlib2_view: Add support for multiframe imagesKim Woelders2021-12-191-15/+123
|