diff options
| author | Clement Sibille <clements+git@lisible.xyz> | 2024-03-05 16:02:17 +0900 |
|---|---|---|
| committer | Clement Sibille <clements+git@lisible.xyz> | 2024-03-05 16:45:45 +0900 |
| commit | bb6f08f3c79efc7bb7877aca97cebd3dab8b7838 (patch) | |
| tree | 9b3405e607c1f746a7061730adcf831c50a9f70b /lisiblepng-bin/src/main.c | |
| parent | e1e5b4e92bcd460b43ce1b852560751b6525593e (diff) | |
Implement PNG decompression
This patch adds PNG decompression for images without interlacing and
without alpha channel.
Only basic image data is supported. Background, transparency, gamma,
paletted images are not supported.
Diffstat (limited to 'lisiblepng-bin/src/main.c')
| -rw-r--r-- | lisiblepng-bin/src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisiblepng-bin/src/main.c b/lisiblepng-bin/src/main.c index 7979326..62dea31 100644 --- a/lisiblepng-bin/src/main.c +++ b/lisiblepng-bin/src/main.c @@ -1,8 +1,11 @@ #include <errno.h> #include <lisiblepng.h> -#include <log.h> +#include <stdio.h> #include <string.h> +#define LOG0(msg) fprintf(stderr, msg) +#define LOGN(fmt, ...) fprintf(stderr, fmt, __VA_ARGS__) + int main(int argc, char **argv) { if (argc != 2) { LOG0("Usage: lisiblepng <png filepath>"); |
