Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | imlib2_view: Avoid clang errorHEADmaster | Kim Woelders | 2022-01-21 | 1 | -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 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. | ||||
* | test: Add some more PNM type loading tests | Kim Woelders | 2022-01-19 | 8 | -2/+868 |
| | | | | Also avoid that .gz file contents depend on contained file's time stamp. | ||||
* | PNM loader: Fix "XV thumbnail" (P7 332) loading | Kim Woelders | 2022-01-19 | 1 | -48/+44 |
| | | | | Not sure this has ever worked. | ||||
* | PNM loader: Fix P1 when spaces are omitted | Kim Woelders | 2022-01-18 | 1 | -7/+28 |
| | |||||
* | test: Add makefile to generate test images | Kim Woelders | 2022-01-18 | 11 | -270/+358 |
| | |||||
* | test: Move generated image files out of source dir | Kim Woelders | 2022-01-18 | 9 | -33/+43 |
| | | | | Simplifies cleaning up. | ||||
* | Drop change log from before first version tag | Kim Woelders | 2022-01-18 | 2 | -885/+27 |
| | |||||
* | 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. | ||||
* | test: Check __imlib_FileKey() | Kim Woelders | 2022-01-17 | 1 | -1/+65 |
| | |||||
* | PNG loader: Add multiframe support | Kim Woelders | 2022-01-16 | 1 | -1/+285 |
| | |||||
* | PNG loader: Rewrite to use callback API | Kim Woelders | 2022-01-16 | 1 | -75/+171 |
| | | | | Preparing for multiframe support. | ||||
* | PNG loader: Disable Imlib2-Comment stuff | Kim Woelders | 2022-01-16 | 1 | -1/+12 |
| | | | | Not useful, AFAICT. | ||||
* | Add dispose-to-previous frame handling | Kim Woelders | 2022-01-16 | 3 | -12/+56 |
| | | | | Dispose to previous appears to be used often by apng's. | ||||
* | imlib2_load: Add no-data option | Kim Woelders | 2022-01-16 | 1 | -14/+20 |
| | | | | Also start using stdbool for boolean stuff. | ||||
* | SVG loader: Avoid problems when loading the module more than once | Kim Woelders | 2022-01-08 | 1 | -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 loader | Kim Woelders | 2022-01-08 | 6 | -0/+229 |
| | |||||
* | XBM loader: Correct load2() result when no header is found | Kim Woelders | 2022-01-07 | 1 | -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 more | Kim Woelders | 2022-01-07 | 1 | -3/+4 |
| | |||||
* | configure.ac: Correct simplification changes | Kim Woelders | 2022-01-04 | 1 | -3/+2 |
| | |||||
* | LZMA loader: Fix potential warning | Kim Woelders | 2022-01-04 | 1 | -1/+1 |
| | |||||
* | ICO loader: Fix compilation on big endian architectures | Sören Tempel | 2022-01-03 | 1 | -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 twaeks | Kim Woelders | 2022-01-02 | 1 | -2/+5 |
| | |||||
* | imlib2_view: Verbosity twaeks | Kim Woelders | 2022-01-02 | 1 | -3/+4 |
| | |||||
* | imlib2_grab: Print error message if saving fails | Kim Woelders | 2021-12-30 | 1 | -1/+4 |
| | |||||
* | Add lzma loader | Kim Woelders | 2021-12-28 | 7 | -1/+102 |
| | |||||
* | BZ2, ZLIB loaders: Move duplicated code to separate file | Kim Woelders | 2021-12-28 | 5 | -130/+146 |
| | | | | Also change decompressors to use mmap'ed data. | ||||
* | Introduce more loader return codes | Kim Woelders | 2021-12-28 | 21 | -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 images | Kim Woelders | 2021-12-28 | 1 | -84/+155 |
| | |||||
* | GIF loader: Always set BLEND flag | Kim Woelders | 2021-12-28 | 1 | -0/+1 |
| | | | | ... always? | ||||
* | ICO loader: Mostly cosmetic changes (inline ico_read()) | Kim Woelders | 2021-12-26 | 1 | -51/+26 |
| | | | | Avoids unnecessary memory allocation, simplifies error handling. | ||||
* | ICO loader: Minor optimization | Kim Woelders | 2021-12-26 | 1 | -15/+10 |
| | | | | Or maybe not. A decent compiler would probably do this anyway. | ||||
* | test: Add a couple of ico depth test images | Kim Woelders | 2021-12-26 | 5 | -0/+5 |
| | |||||
* | imlib2_view: Fix(?) animated image frame dispose handling | Kim Woelders | 2021-12-26 | 1 | -45/+84 |
| | | | | Still need to deal with the blend flag. | ||||
* | Updates for animated image handling | Kim Woelders | 2021-12-26 | 5 | -8/+14 |
| | |||||
* | configure.ac: Simplify loader setup | Kim Woelders | 2021-12-23 | 1 | -228/+57 |
| | |||||
* | autofoo/loader cosmetics | Kim Woelders | 2021-12-23 | 3 | -146/+146 |
| | | | | Consistently place loaders in same order. | ||||
* | Drop some intermediate type definitions | Kim Woelders | 2021-12-21 | 22 | -180/+132 |
| | | | | 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 |
| | |||||
* | Indent | Kim Woelders | 2021-12-21 | 1 | -2/+2 |
| | |||||
* | ICO loader: Debug tweaks | Kim Woelders | 2021-12-19 | 1 | -5/+5 |
| | |||||
* | GIF loader: Multiframe support | Kim Woelders | 2021-12-19 | 1 | -13/+65 |
| | |||||
* | GIF loader: Some refactoring, add debug | Kim Woelders | 2021-12-19 | 1 | -42/+87 |
| | |||||
* | ICO loader: Multiframe support | Kim Woelders | 2021-12-19 | 1 | -19/+25 |
| | |||||
* | WEBP loader: Multiframe support | Kim Woelders | 2021-12-19 | 1 | -10/+22 |
| | |||||
* | debug: Add DL macro for additional loader debug | Kim Woelders | 2021-12-19 | 1 | -1/+6 |
| | |||||
* | imlib2_view: Add support for multiframe images | Kim Woelders | 2021-12-19 | 1 | -15/+123 |
| |