diff --git a/ChangeLog b/ChangeLog index 23e24f53..5c93331e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4576 +1,6023 @@ +2018-06-10 Hayaki Saito + + * converters/img2sixel.1: Fix a typo: a_dither -> x_dither(issue #66) + +2018-07-23 Hayaki Saito + + * src/stb_image.h: Quickfix for issue #69: allocate buffer more 1 lines to + prevent heap-buffer-overflow + +2018-07-22 Hayaki Saito + + * src/stb_image.h: Quickfix for issue #70 + https://github.com/saitoha/libsixel/issues/70 + + * src/frompnm.c: Fix again for #71 + https://github.com/saitoha/libsixel/issues/71 + + * src/encoder.c: Fix a memory leak problem in encoder caused by bad + reference counting + + * src/decoder.c: Fix memory leak problems reported in #67 + https://github.com/saitoha/libsixel/issues/67 + + * src/dither.c, src/quant.c: Issue #68: check invalid color number(<1) + https://github.com/saitoha/libsixel/issues/68 + + * src/quant.c: Issue #68: fix for a bug detect color number of 1x1 image as + 0 https://github.com/saitoha/libsixel/issues/68 + + * src/frompnm.c: Prevent stack-buffer-overflow reported in #71 + https://github.com/saitoha/libsixel/issues/71 + +2018-06-10 Hayaki Saito + + * Makefile.in, config.h.in, configure, configure.ac, package.json: Bump + version: 1.8.1 + + * src/quant.c: Fix critical bug: sixel_dither_set_diffusion_type() (called + from img2sixel -d option) doesn't work well + +2018-06-09 Hayaki Saito + + * src/chunk.c: Suppress an uninitialized warning on GCC-4.1 + + * src/chunk.c: Move pragma GCC diagnostic to outside functions because it's + not allowed on gcc44 + +2018-06-05 Hayaki Saito + + * README.md: Update README, add Fedora Copr + +2018-06-04 Hayaki Saito + + * README.md: Update README.md + + * README.md: Update README.md + +2018-06-03 Hayaki Saito + + * NEWS: Update NEWS + + * src/loader.c: Add some debug message to png loader + + * README.md: Update README: GNUPLOT's "sixel" driver is renamed as + "sixeltek" + +2017-06-10 Hayaki Saito + + * README.md: Update README for adding some language bindings + +2017-05-18 Hayaki Saito + + * README.md: README: add mention for forth-sixel + +2018-06-03 Hayaki Saito + + * include/sixel.h.in, python/LICENSE, python/Makefile.am, + python/Makefile.in, python/libsixel/__init__.py, python/setup.py: Add python + interface to missing pixelformat constants, + SIXEL_PIXELFORMAT_{BGRA,ABGR}8888 + + * NEWS: Update NEWS, added announcement for package maintainers + +2018-06-02 Hayaki Saito + + * LICENSE.pnmcolormap, converters/img2sixel.c: Minor fixes + +2018-06-01 Hayaki Saito + + * src/encoder.c: Avoid memory access violation with img2sixel -v option + +2018-05-28 Hayaki Saito + + * NEWS, README.md, compile, config.guess, config.h.in, config.sub, + configure, configure.ac, converters/Makefile.am, converters/img2sixel.1, + converters/img2sixel.c, depcomp, install-sh, missing, py-compile, + src/allocator.c, src/chunk.c, src/decoder.c, src/dither.c, src/encoder.c, + src/frame.c, src/fromgif.c, src/loader.c, src/pixelformat.c, src/quant.c, + src/status.c, src/stb_image.h, src/writer.c: Add __declspec(dllexport) to + test routines for MinGW + + * Makefile.in, configure, configure.ac, converters/Makefile.am: Suppress + strict-overflow warnings on MinGW + +2018-05-27 Hayaki Saito + + * src/stb_image.h: Suppress unused function waringns (nothings/stb pull + request #610) + + * src/stb_image.h: Upgrade stb_image to v2.19 + + * NEWS, README.md, converters/Makefile.am, converters/img2sixel.1, + converters/img2sixel.c: Marks -D option (read source images from stdin + continuously) as deprecated + + * Makefile.in, compile, config.guess, config.h.in, config.sub, configure, + configure.ac, depcomp, install-sh, missing, py-compile, src/encoder.c: Use + nanosleep(2) instead of usleep(2) + + * configure, configure.ac: Define _BSD_SOURCE to use uleep(2) + + * configure.ac: Define _BSD_SOURCE to use uleep(2) + + * configure, configure.ac, src/stb_image.h: Fix warnings on gcc-4.7/4.8/4.9 + + * .travis.yml: Fix typo s/--enable--tests/enable-tests/g + + * configure, configure.ac, src/quant.c: Don't use variable length array in + sixel_quant_apply_palette() + + * configure, configure.ac, src/encoder.c: Add -D_POSIX_C_SOURCE=200809L + compiler option to use usleep + + * configure.ac: Define _POSIX_SOURCE + + * src/chunk.c: Use S_ISDIR macro instead of S_IFDIR + + * src/chunk.c: Add missing sys/select.h inclusion + + * src/quant.c: Initialize function pointer variables for suppressing + warnings -Wmaybe-uninitialized + + * Makefile.in, aclocal.m4, configure, configure.ac, converters/Makefile.in, + include/Makefile.in, python/Makefile.in, src/Makefile.in, tools/Makefile.in: + Add compiler flag -std=c99 + + * src/tosixel.c: Remove comma at end of the enumerator PALETTE_CHANGE + + * src/fromsixel.c: Remove comma at end of enumerator list parse_state + + * include/sixel.h.in: Remove comma at end of enumerator list for suppressing + -Wpedantic warnings. + + * NEWS: Update NEWS + + * ChangeLog, converters/img2sixel.1: Update ChangeLog + 2017-06-22 Hayaki Saito - * src/fromsixel.c: Fix wrong HLS color handling + * src/fromsixel.c: Fix wrong HLS color handling 2018-05-11 IWAMOTO Kouichi - * src/tosixel.c: fix to use dcs_end_size with dcs_start use - dcs_start_size instead of dcs_end_size. + * src/tosixel.c: fix to use dcs_end_size with dcs_start use dcs_start_size + instead of dcs_end_size. 2018-04-04 Yusuke Endoh - * src/fromgif.c: Allow a deferred clear code in a GIF format - img2sixel says `corrupt GIF(reason: too many codes)` but this is a - wrong behavior. GIF decoder must do nothing when the table is - full. See Section "DEFERRED CLEAR CODE IN LZW COMPRESSION" in [this - document](https://www.w3.org/Graphics/GIF/spec-gif89a.txt). + * src/fromgif.c: Allow a deferred clear code in a GIF format img2sixel says + `corrupt GIF(reason: too many codes)` but this is a wrong behavior. GIF + decoder must do nothing when the table is full. See Section "DEFERRED CLEAR + CODE IN LZW COMPRESSION" in [this + document](https://www.w3.org/Graphics/GIF/spec-gif89a.txt). + +2017-05-18 Hayaki Saito + + * converters/Makefile.am, converters/Makefile.in: Minor fixes 2017-05-03 Hayaki Saito - * README.md: Fix stupid typo, a_dither -> x_dither. - * converters/shell-completion/bash/img2sixel, converters/shell- - completion/zsh/_img2sixel: Add shell completion info -d option - arguments a_dither/x_dither. - * converters/img2sixel.c: Fix typo a_dither -> x_dither - * src/encoder.c: Fix for Issue #57, lack of O_TRUNC when open() is - called. Thanks to @set135. + * README.md: Fix stupid typo, a_dither -> x_dither. + + * converters/shell-completion/bash/img2sixel, + converters/shell-completion/zsh/_img2sixel: Add shell completion info -d + option arguments a_dither/x_dither. + + * converters/img2sixel.c: Fix typo a_dither -> x_dither + + * .travis.yml: Reduce test cases for OSX. + + * src/encoder.c: Fix for Issue #57, lack of O_TRUNC when open() is called. + Thanks to @set135. 2017-05-02 Hayaki Saito - * Makefile.in, aclocal.m4, config.h.in, configure, - converters/Makefile.am, converters/Makefile.in: Add tests for - a_dither/x_dither - * src/encoder.c, src/quant.c, src/tosixel.c: Style fixes - * converters/img2sixel.c, include/sixel.h.in, - python/libsixel/__init__.py, src/encoder.c: Update comments and - help information - * Makefile.in, aclocal.m4, config.h.in, configure, configure.ac, - package.json: Update package version to 1.8.0 - * NEWS: Update NEWS - * include/sixel.h.in, python/libsixel/__init__.py: Add constants - SIXEL_DIFFUSE_{A,X}_DITHER to python interface - * src/loader.c: Minor fix - * Makefile.in, aclocal.m4, config.h.in, configure: pkg-config v0.29.2 - * Makefile.in, aclocal.m4, config.h.in, configure, configure.ac, - src/loader.c, src/stb_image.h: Use stb_image v2.15 + * Makefile.in, aclocal.m4, config.h.in, configure, converters/Makefile.am, + converters/Makefile.in: Add tests for a_dither/x_dither + + * src/encoder.c, src/quant.c, src/tosixel.c: Style fixes + + * converters/img2sixel.c, include/sixel.h.in, python/libsixel/__init__.py, + src/encoder.c: Update comments and help information + + * Makefile.in, aclocal.m4, config.h.in, configure, configure.ac, + package.json: Update package version to 1.8.0 + + * NEWS: Update NEWS + + * include/sixel.h.in, python/libsixel/__init__.py: Add constants + SIXEL_DIFFUSE_{A,X}_DITHER to python interface + + * src/loader.c: Minor fix + + * Makefile.in, aclocal.m4, config.h.in, configure: pkg-config v0.29.2 + + * Makefile.in, aclocal.m4, config.h.in, configure, configure.ac, + src/loader.c, src/stb_image.h: Use stb_image v2.15 2017-04-25 Hayaki Saito - * src/tosixel.c: Fixed a bug that makes 15bpp dither no effect. - * src/tosixel.c: Strip trailing spaces + * src/tosixel.c: Fixed a bug that makes 15bpp dither no effect. + + * src/tosixel.c: Strip trailing spaces 2017-04-21 Hayaki Saito - * converters/sixel2png.c: Show error details when sixel2png fails - * README.md: Amend fixes - * README.md: More information + * converters/sixel2png.c: Show error details when sixel2png fails + + * README.md: Amend fixes + + * README.md: More information 2017-04-19 Hayaki Saito - * README.md: Additional catching-up - * README.md: Catching up + * README.md: Additional catching-up + + * README.md: Catching up 2017-04-11 Hayaki Saito - * src/sixel.5: Fix a type fixed a typo pointed out by - @silverhammermba(#58). - * converters/img2sixel.c, converters/sixel2png.c, src/loader.c: Print - configuration info about libsixel, with "img2sixel -V" + * src/sixel.5: Fix a type fixed a typo pointed out by @silverhammermba(#58). + + * converters/img2sixel.c, converters/sixel2png.c, src/loader.c: Print + configuration info about libsixel, with "img2sixel -V" + +2016-12-18 Hayaki Saito + + * README.md: Update README + +2016-12-10 Hayaki Saito + + * ChangeLog, Makefile.in: Update ChangeLog + + * converters/Makefile.am, converters/Makefile.in: Amend + +2016-12-09 Hayaki Saito + + * .travis.yml: Fix travis build + + * .travis.yml, converters/Makefile.am, converters/Makefile.in: Avoid travis + Build times out problem + +2016-12-08 Hayaki Saito + + * Makefile.in, README.md, configure, configure.ac, package.json: Update + package version to 1.7.3 + +2016-11-12 Turenar + + * src/decoder.c: fix wrong ref counting in sixel_decoder_decode + +2016-10-11 Hayaki Saito + + * .travis.yml: travis: change --prefix path to /usr/local in OSX build + +2016-10-08 Øyvind Kolås + + * include/sixel.h.in, src/encoder.c, src/quant.c, src/tosixel.c: add + positional/ordered dithers a_dither and x_dither These are dithering + methods arising from searching the paramater spaces for simple 2d pattern / + pseudo random number generators - optimizing a fitness metric of both + statistical measures and human perceptual preference - see + http://pippin.gimp.org/a_dither/ - these dithering methods are similar to + other AM/FM hybrid digital halftoning methods. + +2016-10-10 Hayaki Saito + + * src/tosixel.c: Small fix for wrong error message + + * configure, configure.ac: Build with -Bsymbolic option if it's available + +2016-10-01 Hayaki Saito + + * src/sixel.5: manpage: fix wrong description of Xterm's ./configure option + (#51, Thanks to @nilqed) + + * README.md: README: fix wrong description of Xterm's ./configure option + (#51, Thanks to @nilqed) "--enable-sixel" -> "--enable-sixel-graphics" + +2016-09-14 Hayaki Saito + + * README.md: README: minor fixes + + * README.md: Update README + +2016-09-12 Hayaki Saito + + * examples/drawing/main.c: Ensure 256 color sixel register is available in + drawing demo + + * src/fromgif.c: Fix dangling pointer access in GIF loader + + * configure, configure.ac, package.json: Update version to 1.7.2 + +2016-09-10 Hayaki Saito + + * src/tty.c: Suppress unused-label warning + +2016-09-09 Hayaki Saito + + * src/tty.c: Suppress warning on mingw environment + +2016-09-08 Hayaki Saito + + * Makefile.in: Rebuild + + * src/tty.c: Fix wrong error handling after calling select(2) + + * src/tty.c: Additional inclusion of sys/time.h and sys/types.h for + traditional systems + + * src/tty.c: Fix a typo: selet -> select + +2016-08-11 Hayaki Saito + + * converters/img2sixel.c, converters/malloc_stub.c, + converters/malloc_stub.h, converters/sixel2png.c, include/sixel.h.in, + ruby/ext/libsixel/libsixel.c, src/allocator.c, src/allocator.h, src/chunk.c, + src/chunk.h, src/decoder.c, src/decoder.h, src/dither.c, src/dither.h, + src/encoder.h, src/frame.c, src/frame.h, src/fromgif.c, src/fromgif.h, + src/frompnm.c, src/frompnm.h, src/fromsixel.c, src/loader.c, src/loader.h, + src/malloc_stub.c, src/malloc_stub.h, src/output.c, src/output.h, + src/pixelformat.c, src/pixelformat.h, src/quant.c, src/quant.h, src/scale.c, + src/status.c, src/status.h, src/stb_image_write.c, src/tests.c, + src/tosixel.c, src/tty.c, src/tty.h, src/writer.c, src/writer.h: Correct + file variables for emacs + +2016-09-14 Hayaki Saito + + * README.md: README: minor fixes + + * README.md: Update README + +2016-09-12 Hayaki Saito + + * examples/drawing/main.c: Ensure 256 color sixel register is available in + drawing demo + + * Makefile.in, src/fromgif.c: Fix dangling pointer access in GIF loader + + * configure, configure.ac, package.json: Update version to 1.7.2 + +2016-09-10 Hayaki Saito + + * src/tty.c: Suppress unused-label warning + +2016-09-09 Hayaki Saito + + * src/tty.c: Suppress warning on mingw environment + +2016-09-08 Hayaki Saito + + * Makefile.in: Rebuild + + * src/tty.c: Fix wrong error handling after calling select(2) + + * src/tty.c: Additional inclusion of sys/time.h and sys/types.h for + traditional systems + + * src/tty.c: Fix a typo: selet -> select + +2016-08-23 Hayaki Saito + + * NEWS: Update README + +2016-08-22 Hayaki Saito + + * README.md: Fix wrong description about xterm -ti option + + * src/loader.c: loader: minor fix in load_jpeg() + +2016-08-13 Hayaki Saito + + * LICENSE.mesa, examples/opengl/Makefile.am, examples/opengl/Makefile.in, + examples/opengl/README.md, examples/opengl/main.c: Add missing license terms + for examples/opengl/main.c I've forgotten some parts of it are derived from + glxpbdemo.c + + * examples/opengl/main.c: OpenGL example: scroll more 1 line before emit + SIXELs + + * examples/python/Makefile: Add a Makefile to python example + + * examples/python/converter.py: PIL use Image.tobytes() insted of deprecated + Image.tostring() + +2016-08-12 Hayaki Saito + + * .travis.yml: travis: remove "brew install pkg-config" + + * .travis.yml: travis: prevent duplicated installation of pkg-config + + * .travis.yml: Correct brew package name: "libgdk-pixbuf" -> "gdk-pixbuf" + + * .travis.yml: travis: amend fix + + * .travis.yml: travis: "brew update" before osx build + + * .travis.yml: travis: use include: + + * .travis.yml: travis: use build matrix + +2016-08-11 Hayaki Saito + + * .travis.yml: test commit + + * src/loader.c: Don't use GIF/PNM loader in stb_image.h + + * converters/img2sixel.1: Update manpage of img2sixel + + * converters/img2sixel.c, converters/malloc_stub.c, + converters/malloc_stub.h, converters/sixel2png.c, include/sixel.h.in, + ruby/ext/libsixel/libsixel.c, src/allocator.c, src/allocator.h, src/chunk.c, + src/chunk.h, src/decoder.c, src/decoder.h, src/dither.c, src/dither.h, + src/encoder.h, src/frame.c, src/frame.h, src/fromgif.c, src/fromgif.h, + src/frompnm.c, src/frompnm.h, src/fromsixel.c, src/loader.c, src/loader.h, + src/malloc_stub.c, src/malloc_stub.h, src/output.c, src/output.h, + src/pixelformat.c, src/pixelformat.h, src/quant.c, src/quant.h, src/scale.c, + src/status.c, src/status.h, src/stb_image_write.c, src/tests.c, + src/tosixel.c, src/tty.c, src/tty.h, src/writer.c, src/writer.h: Correct + file variables for emacs + +2016-08-06 Hayaki Saito + + * Makefile.in, src/dither.c: Minor fixes + + * include/sixel.h.in: Add more comments to sixel.h + +2016-08-03 Hayaki Saito + + * configure, configure.ac, converters/Makefile.in, package.json: Rebuild + + * converters/Makefile.am: Amend fix + +2016-08-02 Hayaki Saito + + * .gitignore: Update .gitignore for ignoreing libsixel-config + + * configure, configure.ac, converters/Makefile.am, converters/Makefile.in: + Fix for cygport compilation + +2016-07-04 Hayaki Saito + + * examples/drawing/README.md, examples/python/README.md: Update README for + examples + + * README.md: Update README + +2016-06-16 Hayaki Saito + + * ChangeLog: Update ChangeLog + +2016-06-15 Hayaki Saito + + * python/setup.py: Update Python interface version + + * setup.py: Update Python interface version + + * NEWS, README.md: Update README + + * converters/Makefile.am, converters/Makefile.in: Add missing '$(WINE)' in + Makefile to prevent access violation error in mingw-w64 build + + * .travis.yml: display log with tail -n50 + + * .travis.yml: travis: display whole error log + +2016-06-12 Hayaki Saito + + * README.md: Minor fixes + + * examples/drawing/README.md, examples/opengl/README.md: Minor fixes + + * NEWS: Update NEWS + + * configure, configure.ac, package.json: Update package version to 1.7.0, + libtool version to 1.6.0 + + * ChangeLog: Update ChangeLog + + * examples/python/README.md: Update README.md of python example + + * examples/drawing/README.md: Update README.md of drawing example + + * converters/Makefile.am, converters/Makefile.in: converters: replace + relative path "../" to $(top_srcdir) + + * src/Makefile.am, src/Makefile.in: Add -no-undefined option to LDFLAGS of + libsixel + +2016-06-07 Hayaki Saito + + * Makefile.in: Update ChangeLog + + * ChangeLog, python/Makefile.in: Update ChangeLog + +2016-06-06 Hayaki Saito + + * examples/python/README.md, examples/python/converter.py: Add python + example + + * ChangeLog: Update ChangeLog + + * src/fromsixel.c: Don't skip image finalization + + * src/dither.c, src/encoder.c: Minor fixes + + * src/encoder.c: Minor fixes + + * ChangeLog: Update ChangeLog + + * src/fromsixel.c: Change default allocation size of image object to 1x1 + + * src/fromsixel.c: Strip an unused case label + + * src/fromsixel.c: Style fix + + * src/fromsixel.c: Fix a conditional expression detecting sixel characters + +2016-06-05 Hayaki Saito + + * ChangeLog: Update ChangeLog + + * python/libsixel/__init__.py: Add + sixel_dither_get_palette()/sixel_dither_set_palette() + + * libsixel/__init__.py: Add + sixel_dither_get_palette()/sixel_dither_set_palette() + + * src/dither.c: Set pixelformat in sixel_dither_get() + +2016-05-30 Hayaki Saito + + * libsixel/__init__.py: Add python interfaces for dither object + + * python/libsixel/__init__.py: Add python interfaces for dither object + + * src/dither.c, src/tosixel.c: Fix for loading G1/G2/G4 pixel format + + * include/sixel.h.in, src/encoder.c: Drop + sixel_encoder_encode_bytes_to_output() + + * NEWS: Update NEWS + +2016-05-23 Hayaki Saito + + * python/libsixel/__init__.py: Add sixel_output_* functions to python + interface + + * libsixel/__init__.py: Add sixel_output_* functions to python interface + +2016-05-22 Hayaki Saito + + * src/encoder.c, src/fromsixel.c: Minor fixes + +2016-05-11 Hayaki Saito + + * ChangeLog: Update ChangeLog + + * README.md: Update README + +2016-05-10 Hayaki Saito + + * src/fromsixel.c: Style fix + + * src/fromsixel.c: Fix wrong DCS parameter parsing + + * src/fromsixel.c: Add missing default case for switching by parser state + +2016-05-08 Hayaki Saito + + * src/fromsixel.c: decoder: parse SIXEL without forward tracking to prevent + access violation + +2016-05-07 Hayaki Saito + + * converters/img2sixel.1: Fix typoed email address + +2016-05-05 Hayaki Saito + + * src/fromsixel.c: Suppress a sign-conversion warning + + * src/fromsixel.c: Introduce parser_context_t structure for internal use in + sixel_decode_raw() + + * src/fromsixel.c: Remove external linkage of image_buffer_* functions + + * src/fromsixel.c: Tune buffer resize operations + + * src/Makefile.in, src/fromsixel.c: Introduce image_buffer_t structure for + internal use in sixel_decode_raw() + +2016-05-04 Hayaki Saito + + * src/encoder.c: Change function name: sixel_encoder_without_macro to + sixel_encoder_output_without_macro + +2016-05-03 Hayaki Saito + + * src/tosixel.c: Minor fix + + * examples/drawing/Makefile, examples/drawing/main.c: drawing example: clean + up + + * examples/drawing/README.md: Update README + + * examples/drawing/Makefile, examples/drawing/main.c: drawing example: fix + for linux + + * examples/drawing/main.c, src/Makefile.in: drawing example: scroll on + demand before drawing canvas + +2016-05-02 Hayaki Saito + + * examples/drawing/Makefile, examples/drawing/README.md, + examples/drawing/main.c, examples/opengl/README.md: Add drawing example + + * libsixel/__init__.py: Process list-based palette correctly in + encode.encode_bytes() + + * python/libsixel/__init__.py: Process list-based palette correctly in + encode.encode_bytes() + +2016-05-01 Hayaki Saito + + * libsixel/__init__.py: Accept string buffer as 1st argument of + encoder.encode_bytes() + + * python/libsixel/__init__.py: Accept string buffer as 1st argument of + encoder.encode_bytes() + + * python/Makefile.am, python/Makefile.in, src/encoder.c: Suppress a + sign-conversion warning on OSX + + * Makefile.am, Makefile.in: Suppress a sign-conversion warning on OSX + + * libsixel/__init__.py, libsixel/encoder.py: Add encoder.encode_bytes method + introduced from libsixel 1.6 + + * python/libsixel/__init__.py, python/libsixel/encoder.py: Add + encoder.encode_bytes method introduced from libsixel 1.6 + + * python/libsixel/encoder.py: Fix a typo pointed out by @ignisan + + * libsixel/encoder.py: Fix a typo pointed out by @ignisan + +2016-05-01 vagrant + + * src/Makefile.in, src/chunk.c, src/decoder.c, src/encoder.c, src/fromgif.c, + src/loader.c, src/quant.c, src/tty.c, src/writer.c: Suppress sign-conversion + warnings in MinGW environment + + * src/Makefile.am, src/Makefile.in, src/allocator.c, src/malloc_stub.c, + src/malloc_stub.h: Add missing rpl_malloc()/rpl_free() function + +2016-04-30 Hayaki Saito + + * Makefile.in, configure, configure.ac, src/quant.c: Suppress + sign-conversion warnings in MinGW environment + + * src/writer.c: Suppress -Wsign-conversion in 3rd argument of fwrite() + + * src/chunk.c: Avoid a warning when using FD_SET() with -Wsign-conversion + and _FORTIFY_SOURCE + + * src/pixelformat.c: Suppress -Wsign-conversion in 3rd argument of memcpy() + + * src/frame.c: Suppress -Wsign-conversion in 3rd argument of memmove() + + * src/quant.c: Minor fix + + * src/dither.c, src/quant.c: Suppress -Wsign-conversion in 2rd argument of + sixel_allocator_calloc() + + * src/dither.c, src/encoder.c, src/fromgif.c, src/frompnm.c, + src/fromsixel.c, src/loader.c, src/quant.c, src/tosixel.c: Suppress + -Wsign-conversion in 3rd argument of memcpy()/memset() + +2016-04-29 Hayaki Saito + + * Makefile.in, aclocal.m4, config.h.in, configure, configure.ac, + include/sixel.h.in, src/chunk.c, src/decoder.c, src/dither.c, src/encoder.c, + src/frame.c, src/fromgif.c, src/frompnm.c, src/fromsixel.c, src/loader.c, + src/quant.c, src/quant.h, src/scale.c, src/stb_image_write.c, src/tosixel.c, + src/tty.c, src/writer.c: Add -Wsign-conversion compile flags and fix + implicit type sign-conversions + +2016-04-20 Hayaki Saito + + * LICENSE.sixel: Update README + +2016-04-03 Hayaki Saito + + * README.md: Update README + + * src/stb_image_write.h: Update stb_image_write to v1.02 + + * README.md, converters/img2sixel.1: Update manpage and README + + * src/stb_image.h: Update stb_image to v2.12 + +2016-03-26 Hayaki Saito + + * README.md: Update README + + * README.md: Update README + + * README.md: Update README + + * README.md: Update README + +2016-03-25 Hayaki Saito + + * ChangeLog: Update ChangeLog + + * src/fromgif.c: Fix broken -S option + + * README.md: Add a notaion for avoiding xterm's color register limitation + (suggested by @ismail in #47) + + * src/stb_image_write.c: Ignore -Wdouble-promotion warnings during including + stb_image_write.h + +2016-03-24 Hayaki Saito + + * src/encoder.c: Don't reset encoder->pixel{width,height} in clipping + function + + * src/encoder.c: Don't reset encoder->pixel{width,height} in scaling + function + + * src/fromgif.c: Fix broken resize feature for animated GIF + +2016-03-23 Hayaki Saito + + * include/sixel.h.in: Suppress a warning(-Wundef) when including sixel.h + +2016-03-09 Hayaki Saito + + * src/tosixel.c: cleanup + +2016-03-07 Hayaki Saito + + * configure, configure.ac: update ABI version + +2016-03-06 Hayaki Saito + + * configure, configure.ac, package.json: Update ABI version + + * include/sixel.h.in, src/frame.c, src/pixelformat.c, src/writer.c: Add + support for new pixelformat ABGR/BGRA + + * NEWS: Update NEWS + + * ChangeLog: Update ChangeLog + + * ChangeLog: Update ChangeLog + + * Makefile.in, README.md, converters/img2sixel.1, + converters/shell-completion/bash/img2sixel, + converters/shell-completion/zsh/_img2sixel: Add -R option stuff to README, + manpage, shell-completion + +2016-03-05 Hayaki Saito + + * README.md, converters/img2sixel.1, converters/sixel2png.1: Update + descriptions in README and manpage for stbi/stbiw + + * converters/img2sixel.1, converters/sixel2png.1: Update contributors + section of manpages + +2016-03-03 Hayaki Saito + + * Makefile.in, configure, configure.ac, package.json: Update ABI version + + * converters/img2sixel.c, include/sixel.h.in, src/encoder.c, src/encoder.h: + New option -R, --gri-limit + + * Makefile.in, include/sixel.h.in, src/output.c: New API: + sixel_output_set_gri_arg_limit() + + * Makefile.in, configure, configure.ac, package.json: Update ABI version + + * include/sixel.h.in, src/encoder.c, src/loader.c, src/tosixel.c: Add new + API: sixel_encoder_encode_bytes + +2016-02-29 Hayaki Saito + + * README.md: Update README + + * README.md: Add @hattya to contributers list + +2016-02-27 Hayaki Saito + + * Makefile.in, src/output.c, src/output.h, src/quant.c, src/quant.h, + src/tosixel.c: Introduce DECGRI('!') compatibility flag + +2016-02-27 Akinori Hattori + + * configure, configure.ac: Fix check for gdImageCreateFromPngPtr + availability + +2016-02-22 Hayaki Saito + + * src/tty.c: Fix compile error on MinGW environment + + * src/Makefile.am, src/Makefile.in, src/encoder.c, src/tty.c, src/tty.h: Add + tty.c and tty.h + + * converters/Makefile.am, converters/Makefile.in, include/sixel.h.in, + src/encoder.c, src/encoder.h: Solve encoder option confliction between + -m/-e/-I/-b + +2016-02-21 Hayaki Saito + + * src/allocator.c, src/chunk.c, src/decoder.c: Add more tests + + * src/encoder.c: Minor fixes in encoder.c + + * src/decoder.c: Add more tests for decoder.c + + * src/decoder.c: Fix bad initialization check of decoder object + + * Makefile.in, src/decoder.c: Add more tests for decoder.c + + * include/sixel.h.in, src/decoder.c: Minor fixes for decoder.c + + * src/decoder.c, src/decoder.h, src/tests.c: Add tests for decoder.c + + * include/sixel.h.in, src/allocator.c: Add an allocation test with bad + allocator + + * src/decoder.c: Fix bad initalization problem of decoder object + +2016-02-20 Hayaki Saito + + * include/sixel.h.in, src/allocator.c: Publish bad allocators to test + functions + + * src/stb_image_write.c: Ignore strict-overflow warnings in + stb_image_write.h + + * src/stb_image_write.c, src/writer.c: Amend fix of 39042435e + + * src/writer.c: Suppress GCC warnings against stb_image_write.h + + * src/loader.c: Suppress warnings caused by shadowing global declarations + + * src/writer.c: Suppress a warning caused by missing default case in switch + statement + + * src/encoder.c, src/scale.c: Suppress warnings caused by shadowing global + declarations + + * src/fromgif.c: Suppress a warning caused by missing default case in switch + statement + + * src/frompnm.c: Suppress warnings caused by shadowing global declarations + + * config.h.in, configure, configure.ac, src/loader.c: Amend fix for + suppressing GCC warnings against stb_image.h + + * Makefile.in, config.h.in, configure, configure.ac, src/encoder.c, + src/loader.c: Suppress GCC warnings against stb_image.h + + * src/quant.c: Suppress warnings caused by shadowing global declarations + + * src/fromsixel.c: Suppress a warning caused by missing default case in + switch statement + + * include/sixel.h.in, src/decoder.c, src/encoder.c, src/frame.c, + src/output.c: Add some comments to functions + + * README.md: Update README + + * libsixel/__init__.py, libsixel/decoder.py, libsixel/encoder.py: Update + copyright notice + + * LICENSE, converters/img2sixel.c, converters/malloc_stub.c, + converters/malloc_stub.h, converters/sixel2png.c, + python/libsixel/__init__.py, python/libsixel/decoder.py, + python/libsixel/encoder.py, src/allocator.c, src/allocator.h, src/chunk.c, + src/chunk.h, src/decoder.c, src/decoder.h, src/dither.c, src/dither.h, + src/encoder.c, src/encoder.h, src/frame.c, src/frame.h, src/fromgif.c, + src/fromgif.h, src/frompnm.c, src/frompnm.h, src/loader.c, src/loader.h, + src/output.c, src/output.h, src/pixelformat.c, src/pixelformat.h, + src/quant.c, src/quant.h, src/scale.c, src/status.c, src/status.h, + src/stb_image_write.c, src/tests.c, src/writer.c, src/writer.h: Update + copyright notice + + * src/encoder.c: Minor improvements for encoder.c + + * Makefile.in, configure, configure.ac: Add some gcc/clang warning option + flags to CFLAGS + + * converters/img2sixel.c: Fix a overlength-strings warnings + + * src/loader.c: Fix for a warning with gcc -Wpedantic option + + * src/decoder.c, src/encoder.c: Fix warnings of declaration shadows a local + variable + + * LICENSE.stb: Update LICENSE file of stb project + + * src/stb_image_write.h: Upgrade stb_image_write.h to v1.01 + + * src/stb_image.h: Upgrade stb_image to 2.10 + + * src/quant.c: Fix a gnu-folding-constant warning + + * src/quant.c: Fix warnings of declaration shadows a local variable + +2016-02-17 Hayaki Saito + + * README.md: README Minor fixes + +2015-09-05 Hayaki Saito + + * ChangeLog: Update ChangeLog + + * configure, configure.ac, package.json: Update version + +2015-09-04 Hayaki Saito + + * configure, configure.ac: Let it build without python + + * tools/libsixel-config.in: Add --datarootdir option to libsixel-config + +2015-08-30 Hayaki Saito + + * LICENSE, README.rst, setup.py: Merge commit + '6a63778c44312484bdef9b3a3d394272f8bc98d3' + + * LICENSE, README.rst, setup.py: Include license file + + * LICENSE, package.xml, package2.xml, php_sixel.h, sixel.c, sixel.xml: + Change the license to MIT + +2015-08-26 Hayaki Saito + + * setup.py: Update version + + * README.rst, libsixel/__init__.py, libsixel/decoder.py, + libsixel/encoder.py, setup.py: Merge commit + '99bac207a2032e77717e376b17aec29fbac46727' + + * libsixel/__init__.py, libsixel/decoder.py, libsixel/encoder.py: Support + various python versions, 2.5 to 3.4 + + * README.rst: Update README + + * libsixel/decoder.py: Fix inconsistent use of tabs and spaces in + indentation + +2015-08-22 Hayaki Saito + + * ChangeLog, configure, configure.ac, package.json: Update version + + * NEWS: Update NEWS + + * sixel.c, sixel.xml: Use sixel_encoder_new() instead of + sixel_encoder_create() + + * README.md: Update README + +2015-08-08 Hayaki Saito + + * MANIFEST: Update MANIFEST + + * lib/Image/LibSIXEL.xs: Use sixel_encoder_new/sixel_decoder_new + + * builder/MyBuilder.pm, minil.toml: Add custom builder + +2015-08-07 Hayaki Saito + + * ext/libsixel/libsixel.c, lib/libsixel/version.rb: Use + sixel_encoder_new/sixel_decoder_new + +2015-08-04 Hayaki Saito + + * src/chunk.c, src/decoder.c, src/writer.c: Use fixed error message in some + case to prevent buffer overflow + + * src/decoder.c, src/encoder.c, src/fromgif.c, src/frompnm.c, + src/fromsixel.c, src/loader.c, src/output.c, src/tosixel.c: Set additional + messages when bad allocation error occured + +2015-08-03 Hayaki Saito + + * libsixel/decoder.py, libsixel/encoder.py, setup.py: Update version + + * src/loader.c: Suppress warning for using deprecated function + + * libsixel/__init__.py, libsixel/decoder.py, libsixel/encoder.py: Merge + commit 'ed4631fe8bcd0f777eb012a0c1661da7f31d6a35' into develop + + * libsixel/__init__.py, libsixel/decoder.py, libsixel/encoder.py: Add some + wrapper functions and constants + +2015-08-02 Hayaki Saito + + * README.md, include/sixel.h.in: Update README + + * README.md, include/sixel.h.in, src/loader.c: Make sixel_decode() as + deprecated + + * include/sixel.h.in, src/encoder.c, src/frame.c: Make sixel_frame_create() + as deprecated + + * converters/img2sixel.c, include/sixel.h.in, src/dither.c, src/encoder.c: + Make sixel_dither_create() as deprecated + + * include/sixel.h.in, src/dither.c, src/encoder.c: Mark + sixel_dither_create() function as deprecated + + * include/sixel.h.in, src/frame.c, src/scale.c: Use allocator object in + scale.c + + * include/sixel.h.in, src/encoder.c, src/output.c, src/output.h: Use + allocator object in output.c + + * src/tosixel.c: Use allocator object in tosixel.c + + * include/sixel.h.in, src/decoder.c, src/fromsixel.c, src/writer.c: Use + allocator object in writer.c + + * src/fromsixel.c: Use allocator object in fromsixel.c + + * src/chunk.c: Suppress a sign-compare warnings + + * src/frompnm.c, src/frompnm.h, src/loader.c: Use allocator object in + frompnm.c + + * src/loader.c: Use allocator object in STBI loader + + * src/dither.c, src/quant.c, src/quant.h: Use allocator object in quant.c + + * src/allocator.c, src/dither.c: Amend fix for miss-operation of reference + counter + + * src/fromgif.c, src/fromgif.h, src/loader.c: Use allocator object in + fromgif.c + + * include/sixel.h.in, src/allocator.c, src/allocator.h, src/chunk.c, + src/decoder.c, src/dither.c, src/dither.h, src/encoder.c, src/frame.c, + src/status.c, src/tests.c: Add new allocator API: sixel_allocator_calloc() + +2015-07-29 Hayaki Saito + + * configure, configure.ac, src/chunk.c, src/loader.c: Add more handlers for + libcurl errors + + * src/chunk.c, src/decoder.c, src/encoder.c: Fix leaks and segmentation + faults + + * src/chunk.c: Fix leaks around chunk object initialization + + * include/sixel.h.in, src/decoder.c, src/frame.c, src/frame.h: Use allocator + in frame.c + + * src/loader.c: Use allocator in loader.c + +2015-07-28 Hayaki Saito + + * src/chunk.c: Minor fixes around chunk.c + + * converters/img2sixel.c: Use sixel_encoder_new() in img2sixel + + * converters/sixel2png.c, include/sixel.h.in, src/decoder.c, src/decoder.h: + Introduce sixel_decoder_new(), the constructor of decoder with custom + allocator + +2015-07-25 Hayaki Saito + + * src/encoder.c: Additional test for encoder.c + + * src/encoder.c: Minor fixes + +2015-07-23 Hayaki Saito + + * include/sixel.h.in, src/allocator.c, src/encoder.c: Fix memory access + violation issue + +2015-07-22 Hayaki Saito + + * include/sixel.h.in, src/allocator.c, src/encoder.c: Add APIs for calling + custom allocator functions + + * include/sixel.h.in, src/allocator.c, src/allocator.h, src/encoder.c, + src/tests.c: Introduce reference counter to allocator object + +2015-07-21 Hayaki Saito + + * Makefile.in, config.h.in, configure, configure.ac, converters/img2sixel.c, + include/sixel.h.in, src/Makefile.am, src/Makefile.in, src/allocator.c, + src/allocator.h, src/chunk.c, src/chunk.h, src/encoder.c, src/encoder.h, + src/loader.c: Introduce allocator object + +2015-07-20 Hayaki Saito + + * src/tests.c: Enable tests for chunk.c + + * include/sixel.h.in, src/decoder.c, src/decoder.h, src/encoder.c, + src/encoder.h, src/frame.c, src/frame.h, src/tests.c: Minor fixes + + * include/sixel.h.in, src/dither.h, src/fromsixel.c, src/output.c, + src/output.h, src/tosixel.c: Minor fixes + + * src/chunk.c, src/chunk.h, src/loader.c, src/tests.c: Suppress build + warning: implicit-function-declaration + + * converters/Makefile.am, converters/Makefile.in: Fix travis build again + +2015-07-19 Hayaki Saito + + * converters/Makefile.am, converters/Makefile.in: Try to fix broken travis + build + + * LICENSE.stb: Add license notice of src/fromgif.c + + * converters/img2sixel.1: Add documentation for the environment variables + $SIXEL_COLORS + + * src/encoder.c: Introduce SIXEL_COLORS environment (for Issue #27) + + * converters/img2sixel.c: Minor fix + +2015-07-18 Hayaki Saito + + * src/encoder.c: Ammend fixes + + * src/encoder.c: Minor fixes + + * src/encoder.c: Minor fixes for encoder.c + +2015-07-14 Hayaki Saito + + * src/dither.c, src/encoder.c, src/frame.c, src/fromgif.c, src/fromgif.h, + src/frompnm.c, src/frompnm.h, src/fromsixel.c, src/loader.c, src/loader.h, + src/output.c, src/output.h, src/quant.c, src/scale.c, src/status.h, + src/tosixel.c: Minor fixes + +2015-07-13 Hayaki Saito + + * src/loader.c: Add missing stdio.h inclusion to loader.c + + * src/Makefile.am, src/Makefile.in, src/chunk.c, src/chunk.h, src/frame.h, + src/loader.c: Add chunk.c/chunk.h + + * src/loader.c: Minor fixes around sixel_chunk_t + +2015-07-12 Hayaki Saito + + * src/writer.c: Minor fixes + + * README.md, converters/img2sixel.1, converters/img2sixel.c: Add + documentation of the environment variables $SIXEL_BGCOLOR + + * src/decoder.c: Add missing header io.h to decoder.c + + * converters/sixel2png.c: Add missing header io.h to sixel2png.c + + * ChangeLog: Update ChangeLog + + * Makefile.in, src/Makefile.in: Rebuild + + * config.h.in, configure, configure.ac, src/loader.c: Add missing header: + _setmode() requires inclusion + + * config.h.in, configure, configure.ac, converters/loader.c: Add missing + header: _setmode() requires inclusion + + * Makefile.in, configure, configure.ac, package.json: Update version + + * ChangeLog: Update ChangeLog + + * Makefile.in, configure, configure.ac: Hotfix for broken + libcurl/libpng/libjpeg detection + + * src/encoder.c: Build fix for MinGW environment + + * src/encoder.c: Add error handling for sixel_write_callback() and sprintf() + +2015-07-11 Hayaki Saito + + * src/frame.c, src/loader.c: Minor fixes + + * src/fromgif.c: Fix broken GIF loader + +2015-07-05 Hayaki Saito + + * src/fromgif.c: Minor fixes + + * src/loader.c: Suppress gcc warnings + + * src/loader.c: Don't test memory_write() function if libcurl integration is + not enabled + + * src/fromgif.c: Add missing "config.h" inclusion to fromgif.c + + * src/encoder.c, src/fromgif.c, src/fromgif.h, src/quant.c, src/tests.c: + Minor fixes + + * include/sixel.h.in, src/encoder.c: Add more tests for encoder.c + + * src/encoder.c: Add more tests for encoder.c + + * include/sixel.h.in, src/encoder.c, src/frame.h: Add tests for encoder.c + + * include/sixel.h.in, src/Makefile.am, src/decoder.h, src/encoder.h, + src/loader.c, src/loader.h, src/tests.c: Add initial tests for loader.c + + * Makefile.in, config.h.in, configure, configure.ac, src/frame.c, + src/loader.c, src/writer.c: Checks availability of #pragma GCC diagnostic + ignored "-Wtypedef-redefinition" + + * ChangeLog: Update ChangeLog + + * converters/img2sixel.c, examples/opengl/main.c, src/encoder.c: Minor fixes + +2015-07-01 Hayaki Saito + + * src/encoder.c: Fix a bug of returning wrong status in + prepare_builtin_palette() + +2015-06-30 Hayaki Saito + + * src/fromgif.c, src/loader.c, src/quant.c: Minor improvements + +2015-06-29 Hayaki Saito + + * src/encoder.c: Use sixel_helper_set_additional_message() instead of using + stderr printing + + * src/decoder.c, src/dither.c, src/encoder.c, src/loader.c: Minor + improvements + +2015-06-28 Hayaki Saito + + * src/encoder.c, src/frame.c, src/loader.c, src/pixelformat.c: Minor + improvements + + * src/writer.c: Add more tests for status.c + + * src/status.c: Strip extra free() call + + * src/status.c: Strip extra '"' character + + * src/status.c: Update tests + + * src/writer.c: Add more error handling and tests to writer.c + + * src/status.c: Update tests in status.c + + * src/status.c, src/writer.c: Update tests + + * src/Makefile.am, src/Makefile.in, src/status.c, src/status.h, src/tests.c, + src/writer.c: Add more tests + + * ChangeLog: Update ChangeLog + + * src/loader.c: Fix segmentation error when set -e option with loading 1/2/4 + bpp grayscale image + + * converters/Makefile.am, converters/Makefile.in: Add tests for -B option + + * Makefile.in, config.h.in, configure, configure.ac, src/tosixel.c: Check + ldiv() availability with ./configure script + +2015-06-27 Hayaki Saito + + * src/encoder.c: Ammend fix + + * src/encoder.c: Set pixelformat to dither context when input format is + grayscale + + * src/loader.c, src/status.c: Fix regression of returning invalid status + when using libjpeg + + * src/tosixel.c: Use builtin functions instead of sprintf() + +2015-06-26 Hayaki Saito + + * META.json, META.yml: Update META.json/META.yml + + * Build.PL: Update Build.PL for linking to libsixel + + * lib/Image/LibSIXEL.xs: Remove debugging code + + * lib/Image/LibSIXEL.xs: Remove include derective "ppport.h" + + * Build.PL, Changes, META.json, README.md, minil.toml: Add missing files: + minil.toml and Changes + + * perl/Build.PL, perl/MANIFEST, perl/META.yml, perl/README.md, + perl/lib/Image/{Sixel.pm => LibSIXEL.pm}, perl/lib/Image/{Sixel.xs => + LibSIXEL.xs}, perl/lib/Image/LibSIXEL/Decoder.pm, + perl/lib/Image/LibSIXEL/Encoder.pm, perl/lib/Image/Sixel/Decoder.pm, + perl/lib/Image/Sixel/Encoder.pm, perl/t/{sixel.t => libsixel.t}: perl: + change module name: Image::Sixel -> Image::LibSIXEL + + * Build.PL, MANIFEST, META.yml, README.md, lib/Image/{Sixel.pm => + LibSIXEL.pm}, lib/Image/{Sixel.xs => LibSIXEL.xs}, + lib/Image/LibSIXEL/Decoder.pm, lib/Image/LibSIXEL/Encoder.pm, + lib/Image/Sixel/Decoder.pm, lib/Image/Sixel/Encoder.pm, t/{sixel.t => + libsixel.t}: perl: change module name: Image::Sixel -> Image::LibSIXEL + +2015-06-25 Hayaki Saito + + * php/README, php/sixel/.cvsignore, php/sixel/CREDITS, + php/sixel/EXPERIMENTAL, php/sixel/README, php/sixel/config.m4, + php/sixel/config.w32, php/sixel/manual/file-entities.ent, + php/sixel/manual/functions.xml, php/sixel/manual/manual.xml.in, + php/sixel/manual/sixel/configure.xml, php/sixel/manual/sixel/constants.xml, + php/sixel/manual/sixel/ini.xml, php/sixel/manual/sixel/reference.xml, + php/sixel/package.xml, php/sixel/package2.xml, php/sixel/php_sixel.h, + php/sixel/sixel.c, php/sixel/sixel.dsp, php/sixel/sixel.xml, + php/sixel/tests/SixelEncoder____construct.phpt, + php/sixel/tests/SixelEncoder____destruct.phpt, + php/sixel/tests/SixelEncoder__encode.phpt, + php/sixel/tests/SixelEncoder__setopt.phpt: Remove php extension directory + + * .gitmodules, ruby: Remove submodule directory + +2015-06-23 Hayaki Saito + + * include/sixel.h.in: core: Add SIXEL_OPTFLAG_xxx definitions + + * .gitignore, CREDITS, EXPERIMENTAL, LICENSE, README, config.m4, config.w32, + manual/Makefile, manual/file-entities.ent, manual/functions.xml, + manual/manual.xml.in, manual/sixel/configure.xml, + manual/sixel/constants.xml, manual/sixel/ini.xml, + manual/sixel/reference.xml, package.xml, package2.xml, php_sixel.h, sixel.c, + sixel.dsp, sixel.xml, tests/SixelEncoder____construct.phpt, + tests/SixelEncoder____destruct.phpt, tests/SixelEncoder__encode.phpt, + tests/SixelEncoder__setopt.phpt: Initial commit + + * NEWS: Update NEWS + + * README.md: Update README + + * .gitmodules, ruby: Add dubmodule libsixel-ruby + +2015-06-22 Hayaki Saito + + * ruby/README, ruby/images/egret.jpg, ruby/images/egret.six, ruby/setup.rb, + ruby/sixel.c: Drop Ruby interface + + * .gitignore, .travis.yml, Gemfile, LICENSE.txt, README.md, Rakefile, + ext/libsixel/extconf.rb, ext/libsixel/libsixel.c, ext/libsixel/libsixel.h, + images/egret.jpg, images/egret.six, lib/libsixel.rb, + lib/libsixel/version.rb, libsixel-ruby.gemspec, test/minitest_helper.rb, + test/test_libsixel.rb: Initial commit + +2015-06-16 Hayaki Saito + + * src/writer.c: Fix build error caused by calling undeclared function + + * NEWS: Update README + + * ruby/sixel.c: ruby: show detailed error messages + + * NEWS: Update NEWS + + * ruby/sixel.c: Minor fix + + * src/status.c: Add missing file: src/status.c + + * converters/img2sixel.c, include/sixel.h.in, src/decoder.c, src/encoder.c, + src/loader.c, src/writer.c: Improve error handling + + * Makefile.in, configure, configure.ac, converters/img2sixel.c, + include/sixel.h.in, src/Makefile.am, src/Makefile.in, src/loader.c: + Introduce newv APIs for semantic error handling: - + sixel_helper_set_additional_message() - + sixel_helper_get_additional_message() - sixel_helper_format_error() + +2015-06-15 Hayaki Saito + + * src/loader.c: Supperss uninitialized warnings caused by MinGW gcc + +2015-06-14 Hayaki Saito + + * ruby/README, ruby/images/egret.jpg, ruby/images/egret.six, ruby/setup.rb, + ruby/sixel.c: Add initial implementation of ruby interface + + * src/decoder.c, src/encoder.c: Handle some ignored allocation errors + + * converters/img2sixel.c, converters/sixel2png.c: Do semantic error handling + (on progress) + + * src/loader.c: Suppress unused-label GCC warning + + * src/encoder.c: Do semantic error handling (on progress) + + * include/sixel.h.in, src/loader.c: Handle curl errors + + * src/encoder.c, src/loader.c: Do semantic error handling (on progress) + + * src/loader.c: Fix compile errors caused by missing symbol + + * README.md, converters/Makefile.am, converters/Makefile.in, + converters/img2sixel.c, converters/shell-completion/bash/img2sixel, + converters/shell-completion/zsh/_img2sixel, src/encoder.c: Add new -b option + values: gray1/2/4/8 + + * include/sixel.h.in, src/dither.c, src/encoder.c: Add new built-in palette + profiles, gray1/2/4/8 + + * src/encoder.c, src/loader.c: Do semantic error handling (on progress) + + * examples/opengl/main.c, include/sixel.h.in, src/dither.c, src/tosixel.c: + Do semantic error handling (on progress) + +2015-06-13 Hayaki Saito + + * src/dither.c, src/encoder.c: Do semantic error handling (on progress) + + * include/sixel.h.in, src/encoder.c, src/fromgif.c, src/loader.c: Introduce + SIXELSTATUS and related macros + + * include/sixel.h.in: Define LIBSIXEL_VERSION and LIBSIXEL_ABI_VERSION as + string + + * include/sixel.h.in: Correct typoed version macro + + * include/sixel.h.in: Correct typoed version macro + +2015-06-12 Hayaki Saito + + * ChangeLog: Update ChangeLog + +2015-06-11 Hayaki Saito + + * src/Makefile.am, src/Makefile.in: Add rgblookup.gprf to distributed files + + * src/Makefile.am, src/Makefile.in, src/rgblookup.h: Re-generate rgblookup.h + + * src/rgblookup.gperf: Add gperf file generated from X11's rgb.txt + +2015-06-10 Hayaki Saito + + * src/encoder.c: Fix segfault occurs when environment variable + $SIXEL_BGCOLOR is not set + + * src/Makefile.am, src/Makefile.in, src/encoder.c, src/rgblookup.h: Parse + X11 color name which is specified with -B option + + * src/encoder.c: Introduce SIXEL_BGCOLOR environment (for Issue #27) + + * src/encoder.c: Strip unneeded substitution to palette type option when -B + option is specified + + * NEWS: Update README + +2015-06-09 Hayaki Saito + + * NEWS: Update NEWS + + * NEWS: Update NEWS for release 1.5 + + * README.md: Update README: update version of stb_image.h/stb_image_write.h + + * LICENSE.stb: Update license file of stb + + * src/fromgif.c: gif loader: cleanup + + * src/fromgif.c: gif loader: update license notice + + * src/fromsixel.c: Minor fix + + * patches/applied/stb_image.h.diff: Remove directory "patches" + + * src/loader.c, src/stb_image.h: Update stb_image to version 2.06 + +2015-06-08 Hayaki Saito + + * LICENSE: Update LICENCE file + + * include/sixel.h.in, src/decoder.c, src/dither.c, src/encoder.c, + src/frame.c, src/fromgif.c, src/frompnm.c, src/loader.c, src/output.c, + src/pixelformat.c, src/quant.c, src/scale.c, src/tosixel.c, src/writer.c: + Use constant symbols which start with the prefix SIXEL_ + + * cpanfile: Add cpanfile for perl interface + + * perl/cpanfile: Add cpanfile for perl interface + + * README.md, lib/Image/Sixel.pm: Update README and POD of perl interface + + * perl/README.md, perl/lib/Image/Sixel.pm: Update README and POD of perl + interface + +2015-06-07 Hayaki Saito + + * README.md, t/sixel.t: Minor fixes + + * perl/README.md, perl/t/sixel.t: Minor fixes + + * MANIFEST, README => README.md: Rename the README of perl module + + * perl/MANIFEST, perl/{README => README.md}: Rename the README of perl + module + + * README: Update README of perl module + + * perl/README: Update README of perl module + + * README.md: Update README + +2015-06-06 Hayaki Saito + + * configure, configure.ac, package.json: Update version to 1.4.12 + +2015-06-05 Hayaki Saito + + * ChangeLog: Update ChangeLog + + * src/loader.c: Fix segmentation fault caused by previous commit + + * converters/loader.c: Copy gdk's pixbuf memory to libsixel-internal chunk + with attention to image stride (reported by @ttdoda, Issue #43) + +2015-06-02 Hayaki Saito + + * NEWS: Update NEWS + +2015-05-30 Hayaki Saito + + * ChangeLog: Update ChangeLog + +2015-05-29 Hayaki Saito + + * configure, configure.ac: Correct wrong help string of ./configure + + * tools/Makefile.am, tools/Makefile.in, tools/libsixel-config.in: Add + missing build files + + * Build.PL, MANIFEST, MANIFEST.SKIP, META.yml, Makefile.PL, README, + images/egret.jpg, images/egret.six, lib/Image/Sixel.pm, lib/Image/Sixel.xs, + lib/Image/Sixel/Decoder.pm, lib/Image/Sixel/Encoder.pm, lib/Image/ppport.h, + t/sixel.t: Initial commit of libsixel perl interface + + * perl/Build.PL, perl/MANIFEST, perl/MANIFEST.SKIP, perl/META.yml, + perl/Makefile.PL, perl/README, perl/images/egret.jpg, perl/images/egret.six, + perl/lib/Image/Sixel.pm, perl/lib/Image/Sixel.xs, + perl/lib/Image/Sixel/Decoder.pm, perl/lib/Image/Sixel/Encoder.pm, + perl/lib/Image/ppport.h, perl/t/sixel.t: Initial commit of libsixel perl + interface + + * Makefile.am, Makefile.in, configure, configure.ac: Add a helper tool + libsixel-config + +2015-05-28 Hayaki Saito + + * src/encoder.c: Don't close STDOUT with -o option + +2015-05-27 Hayaki Saito + + * README.rst: Show python package path after ./configure is succeeded + + * configure, configure.ac, python/README.rst, src/Makefile.am, + src/Makefile.in: Show python package path after ./configure is succeeded + + * README.rst: Update README of python bindings + + * python/README.rst: Update README of python bindings + + * Makefile.am, Makefile.in: Add test-output.png to CLEANFILES + + * src/Makefile.am, src/Makefile.in: Add src/tests to CLEANFILES + + * python/README.rst: Fix syntax errors of README.rst + + * README.rst: Fix syntax errors of README.rst + + * python/Makefile.am, python/Makefile.in: Add python/Makefile.am + python/Makefile.in + + * Makefile.am, Makefile.in: Add python/Makefile.am python/Makefile.in + + * python/sample1.py: Remove a trivial sample file + + * sample1.py: Remove a trivial sample file + + * py-compile: Add py-compile, distributed under special exception to the GNU + General Public License + + * setup.py: Add setup.py for python bindings + + * python/setup.py: Add setup.py for python bindings + + * README.rst: Add README.rst for python bindings + + * python/README.rst: Add README.rst for python bindings + + * libsixel/__init__.py, libsixel/decoder.py, libsixel/encoder.py: Add + license blocks to python modules + + * python/libsixel/__init__.py, python/libsixel/decoder.py, + python/libsixel/encoder.py: Add license blocks to python modules + + * Makefile.am, Makefile.in, aclocal.m4, configure, configure.ac, + converters/Makefile.in, include/Makefile.in, src/Makefile.in: Build and + install python bindings by 'make install' + + * libsixel/__init__.py, libsixel/decoder.py, libsixel.py => + libsixel/encoder.py: Update python modules + + * python/libsixel/__init__.py, python/libsixel/decoder.py, + python/{libsixel.py => libsixel/encoder.py}: Update python modules + +2015-05-26 Hayaki Saito + + * src/encoder.c, src/encoder.h: Aggregate a sixel_dither_t instance to + encoder object + + * examples/opengl/Makefile.in, examples/opengl/aclocal.m4, + examples/opengl/compile, examples/opengl/config.guess, + examples/opengl/config.h.in, examples/opengl/config.sub, + examples/opengl/configure, examples/opengl/configure.ac, + examples/opengl/depcomp, examples/opengl/install-sh, examples/opengl/main.c, + examples/opengl/missing: Update OpenGL example: add on-demand scrolling + feature + + * Makefile.in, converters/Makefile.am, converters/Makefile.in, src/dither.c, + src/encoder.c, src/frame.c, src/pixelformat.c, src/quant.c, src/tests.c, + src/writer.c: Add more tests for quant.c and encoder.c + +2015-05-25 Hayaki Saito + + * src/frame.c: Add more tests for frame.c + +2015-05-24 Hayaki Saito + + * Makefile.in, converters/Makefile.am, converters/Makefile.in: Add + 'testfile' to CLEANFILES + +2015-05-21 Hayaki Saito + + * Makefile.in, converters/Makefile.in, src/frame.c: Add more tests for + frame.c + + * src/frame.c: Drop unused function sixel_frame_set_palette() + + * src/quant.c, src/quant.h, src/tests.c, src/writer.c: Add initial tests for + quant.c + +2015-05-20 Hayaki Saito + + * src/encoder.c: Strip extra debug code + + * converters/Makefile.am, converters/Makefile.in, src/encoder.c: Fix broken + -B option test + + * src/Makefile.am, src/Makefile.in, src/writer.c: Add more test cases for + writer.c + + * src/Makefile.am, src/Makefile.in, src/tests.c, src/writer.c, src/writer.h: + Add initial tests for writer.c + + * converters/Makefile.am, converters/Makefile.in: sixel2png: Add test of + specifing invalid output file name + + * converters/Makefile.in, src/frame.c: Add more tests for frame.c + +2015-05-19 Hayaki Saito + + * src/dither.h, src/frame.c, src/frame.h, src/tests.c: Add initial test of + frame.c + + * src/pixelformat.c: Add more tests for pixelformat.c + + * ChangeLog: Update ChangeLog + + * Makefile.in, aclocal.m4, compile, config.guess, config.sub, configure, + converters/Makefile.in, depcomp, include/Makefile.in, install-sh, ltmain.sh, + m4/libtool.m4, m4/ltoptions.m4, m4/ltsugar.m4, m4/ltversion.m4, + m4/lt~obsolete.m4, missing, src/Makefile.in: Rebuild + + * configure.ac: Evaluate arguments of --with-xxx option of ./configure more + strictly + +2015-05-18 Hayaki Saito + + * src/pixelformat.h: Add missing header file pixelformat.h + + * src/pixelformat.c: Add more tests for pixelformat.c + + * Makefile.in, src/Makefile.am, src/Makefile.in, src/dither.h, + src/encoder.c, src/encoder.h, src/pixelformat.c, src/tests.c: Add tests for + pixelformat + + * Makefile.am, Makefile.in: Run unittests on travis + +2015-05-17 Hayaki Saito + + * Makefile.in, configure, configure.ac, src/fromgif.c, src/fromgif.h: + Cleanup + + * converters/Makefile.in: Minor fix + + * converters/Makefile.am: Drop a surplus test for -k option + + * src/loader.c: Suppress an unused-parameter gcc warning + + * converters/Makefile.am: Add tests for invalid permission file + + * package.json.in.in: Strip --with-curl from package.json + + * include/sixel.h.in, src/decoder.c, src/dither.c, src/encoder.c, + src/frame.c, src/fromsixel.c, src/loader.c, src/output.c, src/pixelformat.c, + src/quant.c, src/scale.c, src/tosixel.c, src/writer.c: Add __declspec for + mingw + + * converters/Makefile.am: Add test cases for -B and -o option + + * src/Makefile.am, src/Makefile.in, src/{easy_decode.c => decoder.c}, + src/{easy_decode.h => decoder.h}, src/{easy_encode.c => encoder.c}, + src/{easy_encode.h => encoder.h}: Rename files: easy_encode.c -> encoder.c, + easy_decode -> decoder.c + + * ChangeLog: Update ChangeLog + + * libsixel.py: Update python-ctypes binding + + * python/libsixel.py: Update python-ctypes binding + + * php/sixel/package.xml, php/sixel/package2.xml, php/sixel/php_sixel.h, + php/sixel/sixel.c, php/sixel/sixel.xml, ..._easy_encode.phpt => + SixelEncoder__encode.phpt}, ...ncode_setopt.phpt => + SixelEncoder__setopt.phpt}: Update php extension + + * src/loader.c: Fix segmentation error when cancel_flag is not set + + * src/easy_encode.c: Drop sixel_callback_context_t + + * include/sixel.h.in, src/easy_decode.c, src/easy_encode.c: Add const + qualifier to some arguments of sixel_{en,de}coder_setopt() + + * converters/img2sixel.c, include/sixel.h.in, src/easy_encode.c, + src/easy_encode.h: Add new API sixel_encoder_set_cancel_flag() + + * converters/Makefile.am, converters/Makefile.in, converters/img2sixel.c, + src/loader.c: Wait input data with select() only if input file is a tty + device + + * include/sixel.h.in, src/easy_encode.c: Use sixel_write_callback() instead + of printf() to fix broken -n option + +2015-05-16 Hayaki Saito + + * converters/img2sixel.c, converters/sixel2png.c, include/sixel.h.in, + src/easy_decode.c, src/easy_decode.h, src/easy_encode.c, src/easy_encode.h: + Rename easy encoder/decoder structures and releated APIs + + * src/easy_encode.c: Suppress warnings in MinGW environment + + * converters/shell-completion/zsh/_img2sixel: Update zsh completion file + + * converters/shell-completion/bash/img2sixel: Update bash completion file + + * converters/img2sixel.1: Update manpage of img2sixel + + * src/loader.c: Minor fixes + + * src/loader.c: Suppress gcc unused-parameter warnings + +2015-05-15 Hayaki Saito + + * include/sixel.h.in, src/easy_encode.c, src/loader.c: Passes cancel flag to + image loader + + * src/easy_encode.c, src/loader.c: Minor fix + + * src/easy_encode.c: Don't close stdout/stderr on exit + +2015-05-14 Hayaki Saito + + * converters/img2sixel.c, src/easy_encode.c, src/easy_encode.h, + src/loader.c: Implement -o(--outfile) option + +2015-05-12 Hayaki Saito + + * converters/Makefile.am, converters/Makefile.in: Add pngsuite background + tests + + * Makefile.in, aclocal.m4, compile, config.guess, config.sub, configure, + converters/Makefile.in, depcomp, include/Makefile.in, install-sh, missing, + src/Makefile.in: Rebuild with automake-1.15 + + * src/fromgif.c: Fix leaks around GIF loader + + * converters/img2sixel.c: Stop memory leaks + +2015-05-11 Hayaki Saito + + * php/README, php/sixel/.cvsignore, php/sixel/CREDITS, + php/sixel/EXPERIMENTAL, php/sixel/README, php/sixel/config.m4, + php/sixel/config.w32, php/sixel/manual/file-entities.ent, + php/sixel/manual/functions.xml, php/sixel/manual/manual.xml.in, + php/sixel/manual/sixel/configure.xml, php/sixel/manual/sixel/constants.xml, + php/sixel/manual/sixel/ini.xml, php/sixel/manual/sixel/reference.xml, + php/sixel/package.xml, php/sixel/package2.xml, php/sixel/php_sixel.h, + php/sixel/sixel.c, php/sixel/sixel.dsp, php/sixel/sixel.xml, + php/sixel/tests/SixelEncoder____construct.phpt, + php/sixel/tests/SixelEncoder____destruct.phpt, + .../tests/SixelEncoder__sixel_easy_encode.phpt, + .../SixelEncoder__sixel_easy_encode_setopt.phpt: Add php extension + +2015-05-10 Hayaki Saito + + * Makefile.in, configure, configure.ac, converters/Makefile.in, + include/Makefile.in, ltmain.sh, m4/libtool.m4, m4/ltoptions.m4, + m4/ltsugar.m4, m4/ltversion.m4, m4/lt~obsolete.m4, package.json, + src/Makefile.in: Update package version and libtool version + + * Makefile.in, configure, configure.ac, converters/Makefile.in, + include/Makefile.in, ltmain.sh, m4/libtool.m4, m4/ltoptions.m4, + m4/ltsugar.m4, m4/ltversion.m4, m4/lt~obsolete.m4, src/Makefile.in: Update + package version and libtool version + + * src/easy_encode.c: Fix segmentation errors around evaluating cancel_flag + +2015-05-06 Hayaki Saito + + * src/fromgif.c: Add missing memset() initialization of the structure + stbi__gif (for Issue #42, reported by @msmhrt) + +2015-05-05 Hayaki Saito + + * src/Makefile.am, src/Makefile.in, src/loader.c: Use built-in gif loader + + * src/easy_encode.c, src/loader.c: Minor fixes + + * src/fromgif.c, src/fromgif.h: Add new file fromgif.{c,h} + +2015-05-04 Hayaki Saito + + * src/easy_encode.c: Emit CAN(\x18) when received signals + + * src/easy_encode.c: Minor fix around auto-scrolling + + * src/easy_encode.c: Fix a memory leak + +2015-05-02 Hayaki Saito + + * libsixel.py: Rename python class names + + * python/libsixel.py: Rename python class names + + * src/easy_encode.c: Suppress a gcc warning [-Werror=unused-variable] + + * src/easy_decode.c, src/easy_decode.h: Add missing files, + src/easy_decode.{c,h} + + * src/loader.c: Respect fuse_palette flag when decoding GIF images + +2015-04-30 Hayaki Saito + + * libsixel.py, sample1.py: Add ctypes(ffi) python binding examples + + * python/libsixel.py, python/sample1.py: Add ctypes(ffi) python binding + examples + + * src/easy_encode.c: Minor fixes + + * src/loader.c: Fix leak around playing GIF animation + + * src/frame.c: Resize PAL8 formatted pixel buffer correctly + + * src/easy_encode.c: Strip unused code around resize/crop + + * src/easy_encode.c: Minor fix + + * src/easy_encode.c: Allow NULL as 2nd argument in sixel_easy_encode() + + * converters/sixel2png.c, include/sixel.h.in: Abolish cancel_flag argument + of sixel_easy_decode() + + * src/easy_encode.c: Allow NULL as cancel_flag argument in + sixel_easy_encode() + + * converters/sixel2png.c, include/sixel.h.in, src/Makefile.am, + src/Makefile.in, src/easy_encode.c, src/easy_encode.h: Add easy decode API + set + + * converters/Makefile.am, converters/Makefile.in, converters/img2sixel.c, + include/sixel.h.in, src/Makefile.am, src/Makefile.in, src/easy_encode.c, + src/easy_encode.h, src/frame.c, src/frame.h: Add easy converter API set + +2015-04-29 Hayaki Saito + + * converters/img2sixel.c: Clean up + + * Makefile.in: Rebuild + + * src/loader.c: Load paletted PNG with keycolor (for Issue #28) + + * include/sixel.h.in, src/loader.c: Cleanup + + * converters/img2sixel.c, include/sixel.h.in, src/frame.c, src/frame.h: + Minor fixes + + * converters/img2sixel.c, include/sixel.h.in, src/Makefile.am, + src/Makefile.in, src/loader.c: Introduce frame API + + * src/frame.c, src/frame.h: Add frame.c/frame.h + + * include/sixel.h.in: Add reference counter to struct sixel_frame_t + +2015-04-28 Hayaki Saito + + * libsixel.pc.in: Strip -lsixel-imageio from libsixel.pc + +2015-04-26 Hayaki Saito + + * src/loader.c: Respect -B option regarding with GIF images with transparent + index (for Issue #25) + + * src/loader.c: Prevent segmentation fault when receiving SIGINT during + playing gif animation + + * converters/img2sixel.c: Handle SIGINT correctly + +2015-04-25 Hayaki Saito + + * converters/img2sixel.c: Minor fix + + * src/tosixel.c: Don't output palette definition of the keycolor + + * src/loader.c: Set default transparent color index in with_load_gdkpixbuf() + and load_with_gd() + + * converters/img2sixel.c, src/loader.c: Pass the keycolor of gif to the + encoder by using sixel_dither_set_transpaernt() + + * include/sixel.h.in, src/dither.c: Add new API: + sixel_dither_set_transparent() + + * include/sixel.h.in, src/loader.c: Retrieve transparent color index from + gif + +2015-04-22 Hayaki Saito + + * src/loader.c: Convert PIXELFORMAT_ARGB8888 into PIXELFORMAT_RGB888 in + sixel_strip_alpha() + +2015-04-19 Hayaki Saito + + * src/loader.c, src/stb_image.h: Load gif as PAL8 pixelformat + +2015-04-13 Hayaki Saito + + * Makefile.in: Rebuild + + * converters/img2sixel.c: Fix a gcc warning (unused parameter) + + * Makefile.in, converters/img2sixel.c: Set timeout on waiting CPR response + + * config.h.in, configure, configure.ac, converters/img2sixel.c: Check the + availability of isatty(), termios.h, sys/ioctl.h + + * converters/img2sixel.c: Scroll the terminal on demand when playing gif + animation + +2015-04-12 Hayaki Saito + + * converters/img2sixel.c, include/sixel.h.in, src/loader.c, src/stb_image.h: + Detect if the image has multi-frames by builtin gif loader + + * converters/img2sixel.c, src/loader.c: Fix a double free error in + gdk-pixbuf loader + + * src/loader.c: Minor fix + + * src/loader.c: Suppress a GCC warning when specified --with-gdk-pixbuf2 + configure option + + * converters/img2sixel.c, src/pixelformat.c: Fix broken + sixel_helper_normalize_pixelforma(), return dst_pixelformat correctly + +2015-04-11 Hayaki Saito + + * .travis.yml: Update .travis.yml to check --without-png configure option + correctly + + * converters/img2sixel.c: Fix a memory leak found in cropping routine + + * converters/img2sixel.c: Fix a segmentation error occurs when resizing + + * src/loader.c: Suppress GCC warnings + + * Makefile.in: Rebuild + + * src/loader.c: Support callback loader API with libgd loader + + * src/loader.c: Support callback loader API with gdk-pixbuf loader + +2015-04-09 Hayaki Saito + + * converters/img2sixel.c: Implement macro invocation with callback + + * converters/img2sixel.c, include/sixel.h.in, src/loader.c: Fix loop control + without macro + + * converters/img2sixel.c, include/sixel.h.in, src/loader.c: Fix broken + animation without macro + + * converters/Makefile.am, converters/Makefile.in: Update tests + +2015-04-05 Hayaki Saito + + * configure, configure.ac, package.json: Update version + + * ChangeLog: Update ChangeLog + + * converters/stb_image.h: Fix an existing bug in stb_image v1.41 of building + color palette, reported by @msmhrt (for Issue #41) + + * converters/img2sixel.c: Don't use fuse_palette flag when using fixed + palette + + * converters/img2sixel.c, include/sixel.h.in, src/loader.c: Load image frame + with callback function (on progress) + + * Makefile.in, configure, configure.ac, converters/Makefile.am, + converters/Makefile.in, include/Makefile.in, src/Makefile.in: Add tests for + pngsuite basic images + +2015-03-20 Hayaki Saito + + * converters/img2sixel.c: Rebuild multi-frame data when expanding 1/2/4bpp + image + +2015-03-17 Hayaki Saito + + * converters/img2sixel.c: Support cropping for 1/2/4bpp images (Issue #38) + + * converters/img2sixel.c: Expand pixelformat to RGB888 before resizing (for + Issue #34) + +2015-03-16 Hayaki Saito + + * src/dither.c: Omit an extra malloc() call + + * Makefile.in, configure, configure.ac: Add libjpeg check with + PKG_CHECK_MODULES + +2015-03-13 saitoha + + * src/loader.c: Handle depth=1 returned by stb_image v2.0 + +2015-03-13 Hayaki Saito + + * Makefile.in, src/loader.c: Add more debug logs + + * .travis.yml: Update .travis.yml + + * src/loader.c: Handle depth=4 returned by stb_image v2.0 + + * src/loader.c: Fix typo: unknwon -> unknown + + * configure, configure.ac: Don't override env variable xxx_CFLAGS/xxx_LIBS + (Issue #35) + +2015-03-10 Hayaki Saito + + * configure, configure.ac, package.json: Update version + + * ChangeLog: Update ChangeLog + +2015-03-07 Hayaki Saito + + * converters/frompnm.c, converters/frompnm.h, converters/loader.c: Resolve + confliction of parameter declarations of load_pnm(), reported by + @tautschnig. (for Issue #40) + +2015-03-05 Hayaki Saito + + * converters/stb_image.h: Parse GIF application extension block correctly + (Issue #39) + + * src/stb_image.h: Parse GIF application extension block correctly (Issue + #39) + + * src/loader.c: Prevent segmentation fault reported by @msmhrt (Issue #39) + +2015-02-28 Hayaki Saito + + * ChangeLog: Update ChangeLog + + * configure, configure.ac, package.json: Update package version to 1.4.9 + + * Makefile.in, package.json: Rebuild + + * configure, configure.ac: Fix miss-detection for libcurl/libpng (for Issue + #35) + + * converters/loader.c: Workaround for libpng 1.2 with grayscale-alpha PNG + (for Issue #36) + +2015-02-27 saitoha + + * converters/loader.c: Workaround for libpng 1.2 (for Issue #34) + +2015-02-26 Hayaki Saito + + * src/loader.c: Fix inverted test condition added in 3d6ca7d6 (for Issue + #32) + + * converters/img2sixel.c: Fix wrong boundary test added by 19417c6 (for + Issue #33). + +2015-02-25 Hayaki Saito + + * Makefile.in, converters/loader.c: Fix broken -p option with 8bpp grayscale + PNG (concerned with Issue #34) + + * Makefile.in, converters/loader.c: Fix broken -p option with 8bpp grayscale + PNG (concerned with Issue #34) + + * converters/loader.c: Fix broken resize option(-w/-h) with 1/2/4bpp + grayscale png (for Issue #34) + +2015-02-24 Hayaki Saito + + * package.json: Update package.json + + * Makefile.in, configure, configure.ac: Clear additional CFLAGS/LIBS when + ./configure --with-libcurl=auto and libcurl is missing + + * src/Makefile.am, src/Makefile.in: Add some lines to Makefile.am, for fix + build from tarballs created by 'make dist' + + * configure, configure.ac: Update version in configure.ac + + * src/loader.c: Style fixes + +2015-02-23 Hayaki Saito + + * src/loader.c: Add missing error handler for load_jpeg() and load_png() + + * configure, configure.ac: Respect prefix path specified with --with-gd + configure option + + * Makefile.in, configure, configure.ac: Check whether --with-xxx options are + directories + + * src/frompnm.c, src/frompnm.h, src/loader.c: Don't use component depth + internally + + * Makefile.in: Rebuild + +2015-02-22 Hayaki Saito + + * converters/img2sixel.c: More strict validation for -c option + + * configure, configure.ac: Respect prefix path specified with --with-png + configure option + + * configure, configure.ac: Respect prefix path specified with --with-jpeg + configure option + + * configure, configure.ac: Respect prefix path specified with --with-libcurl + configure option + + * config.h.in, configure, configure.ac, src/loader.c: Check whether given + filename is a directory + + * LICENSE.pngsuite, README.md, images/pngsuite/background/bgai4a08.png, + images/pngsuite/background/bgai4a16.png, + images/pngsuite/background/bgan6a08.png, + images/pngsuite/background/bgan6a16.png, + images/pngsuite/background/bgbn4a08.png, + images/pngsuite/background/bggn4a16.png, + images/pngsuite/background/bgwn6a08.png, + images/pngsuite/background/bgyn6a16.png, images/pngsuite/basic/basn0g01.png, + images/pngsuite/basic/basn0g02.png, images/pngsuite/basic/basn0g04.png, + images/pngsuite/basic/basn0g08.png, images/pngsuite/basic/basn0g16.png, + images/pngsuite/basic/basn2c08.png, images/pngsuite/basic/basn2c16.png, + images/pngsuite/basic/basn3p01.png, images/pngsuite/basic/basn3p02.png, + images/pngsuite/basic/basn3p04.png, images/pngsuite/basic/basn3p08.png, + images/pngsuite/basic/basn4a08.png, images/pngsuite/basic/basn4a16.png, + images/pngsuite/basic/basn6a08.png, images/pngsuite/basic/basn6a16.png, + images/pngsuite/chunk/ccwn2c08.png, images/pngsuite/chunk/ccwn3p08.png, + images/pngsuite/chunk/cdfn2c08.png, images/pngsuite/chunk/cdhn2c08.png, + images/pngsuite/chunk/cdsn2c08.png, images/pngsuite/chunk/cdun2c08.png, + images/pngsuite/chunk/ch1n3p04.png, images/pngsuite/chunk/ch2n3p08.png, + images/pngsuite/chunk/cm0n0g04.png, images/pngsuite/chunk/cm7n0g04.png, + images/pngsuite/chunk/cm9n0g04.png, images/pngsuite/chunk/cs3n2c16.png, + images/pngsuite/chunk/cs3n3p08.png, images/pngsuite/chunk/cs5n2c08.png, + images/pngsuite/chunk/cs5n3p08.png, images/pngsuite/chunk/cs8n2c08.png, + images/pngsuite/chunk/cs8n3p08.png, images/pngsuite/chunk/ct0n0g04.png, + images/pngsuite/chunk/ct1n0g04.png, images/pngsuite/chunk/cten0g04.png, + images/pngsuite/chunk/ctfn0g04.png, images/pngsuite/chunk/ctgn0g04.png, + images/pngsuite/chunk/cthn0g04.png, images/pngsuite/chunk/ctjn0g04.png, + images/pngsuite/chunk/ctzn0g04.png, images/pngsuite/corrupted/xc1n0g08.png, + images/pngsuite/corrupted/xc9n2c08.png, + images/pngsuite/corrupted/xcrn0g04.png, + images/pngsuite/corrupted/xcsn0g01.png, + images/pngsuite/corrupted/xd0n2c08.png, + images/pngsuite/corrupted/xd3n2c08.png, + images/pngsuite/corrupted/xd9n2c08.png, + images/pngsuite/corrupted/xdtn0g01.png, + images/pngsuite/corrupted/xhdn0g08.png, + images/pngsuite/corrupted/xlfn0g04.png, + images/pngsuite/corrupted/xs1n0g01.png, + images/pngsuite/corrupted/xs2n0g01.png, + images/pngsuite/corrupted/xs4n0g01.png, + images/pngsuite/corrupted/xs7n0g01.png, images/pngsuite/filter/f00n0g08.png, + images/pngsuite/filter/f00n2c08.png, images/pngsuite/filter/f01n0g08.png, + images/pngsuite/filter/f01n2c08.png, images/pngsuite/filter/f02n0g08.png, + images/pngsuite/filter/f02n2c08.png, images/pngsuite/filter/f03n0g08.png, + images/pngsuite/filter/f03n2c08.png, images/pngsuite/filter/f04n0g08.png, + images/pngsuite/filter/f04n2c08.png, images/pngsuite/filter/f99n0g04.png, + images/pngsuite/gamma/g03n0g16.png, images/pngsuite/gamma/g03n2c08.png, + images/pngsuite/gamma/g03n3p04.png, images/pngsuite/gamma/g04n0g16.png, + images/pngsuite/gamma/g04n2c08.png, images/pngsuite/gamma/g04n3p04.png, + images/pngsuite/gamma/g05n0g16.png, images/pngsuite/gamma/g05n2c08.png, + images/pngsuite/gamma/g05n3p04.png, images/pngsuite/gamma/g07n0g16.png, + images/pngsuite/gamma/g07n2c08.png, images/pngsuite/gamma/g07n3p04.png, + images/pngsuite/gamma/g10n0g16.png, images/pngsuite/gamma/g10n2c08.png, + images/pngsuite/gamma/g10n3p04.png, images/pngsuite/gamma/g25n0g16.png, + images/pngsuite/gamma/g25n2c08.png, images/pngsuite/gamma/g25n3p04.png, + images/pngsuite/interlacing/basi0g01.png, + images/pngsuite/interlacing/basi0g02.png, + images/pngsuite/interlacing/basi0g04.png, + images/pngsuite/interlacing/basi0g08.png, + images/pngsuite/interlacing/basi0g16.png, + images/pngsuite/interlacing/basi2c08.png, + images/pngsuite/interlacing/basi2c16.png, + images/pngsuite/interlacing/basi3p01.png, + images/pngsuite/interlacing/basi3p02.png, + images/pngsuite/interlacing/basi3p04.png, + images/pngsuite/interlacing/basi3p08.png, + images/pngsuite/interlacing/basi4a08.png, + images/pngsuite/interlacing/basi4a16.png, + images/pngsuite/interlacing/basi6a08.png, + images/pngsuite/interlacing/basi6a16.png, images/pngsuite/odd/s01i3p01.png, + images/pngsuite/odd/s01n3p01.png, images/pngsuite/odd/s02i3p01.png, + images/pngsuite/odd/s02n3p01.png, images/pngsuite/odd/s03i3p01.png, + images/pngsuite/odd/s03n3p01.png, images/pngsuite/odd/s04i3p01.png, + images/pngsuite/odd/s04n3p01.png, images/pngsuite/odd/s05i3p02.png, + images/pngsuite/odd/s05n3p02.png, images/pngsuite/odd/s06i3p02.png, + images/pngsuite/odd/s06n3p02.png, images/pngsuite/odd/s07i3p02.png, + images/pngsuite/odd/s07n3p02.png, images/pngsuite/odd/s08i3p02.png, + images/pngsuite/odd/s08n3p02.png, images/pngsuite/odd/s09i3p02.png, + images/pngsuite/odd/s09n3p02.png, images/pngsuite/odd/s32i3p04.png, + images/pngsuite/odd/s32n3p04.png, images/pngsuite/odd/s33i3p04.png, + images/pngsuite/odd/s33n3p04.png, images/pngsuite/odd/s34i3p04.png, + images/pngsuite/odd/s34n3p04.png, images/pngsuite/odd/s35i3p04.png, + images/pngsuite/odd/s35n3p04.png, images/pngsuite/odd/s36i3p04.png, + images/pngsuite/odd/s36n3p04.png, images/pngsuite/odd/s37i3p04.png, + images/pngsuite/odd/s37n3p04.png, images/pngsuite/odd/s38i3p04.png, + images/pngsuite/odd/s38n3p04.png, images/pngsuite/odd/s39i3p04.png, + images/pngsuite/odd/s39n3p04.png, images/pngsuite/odd/s40i3p04.png, + images/pngsuite/odd/s40n3p04.png, images/pngsuite/order/oi1n0g16.png, + images/pngsuite/order/oi1n2c16.png, images/pngsuite/order/oi2n0g16.png, + images/pngsuite/order/oi2n2c16.png, images/pngsuite/order/oi4n0g16.png, + images/pngsuite/order/oi4n2c16.png, images/pngsuite/order/oi9n0g16.png, + images/pngsuite/order/oi9n2c16.png, images/pngsuite/palette/pp0n2c16.png, + images/pngsuite/palette/pp0n6a08.png, images/pngsuite/palette/ps1n0g08.png, + images/pngsuite/palette/ps1n2c16.png, images/pngsuite/palette/ps2n0g08.png, + images/pngsuite/palette/ps2n2c16.png, + images/pngsuite/transparency/tbbn0g04.png, + images/pngsuite/transparency/tbbn2c16.png, + images/pngsuite/transparency/tbbn3p08.png, + images/pngsuite/transparency/tbgn2c16.png, + images/pngsuite/transparency/tbgn3p08.png, + images/pngsuite/transparency/tbrn2c08.png, + images/pngsuite/transparency/tbwn0g16.png, + images/pngsuite/transparency/tbwn3p08.png, + images/pngsuite/transparency/tbyn3p08.png, + images/pngsuite/transparency/tm3n3p02.png, + images/pngsuite/transparency/tp0n0g08.png, + images/pngsuite/transparency/tp0n2c08.png, + images/pngsuite/transparency/tp0n3p08.png, + images/pngsuite/transparency/tp1n3p08.png, + images/pngsuite/zlib/z00n2c08.png, images/pngsuite/zlib/z03n2c08.png, + images/pngsuite/zlib/z06n2c08.png, images/pngsuite/zlib/z09n2c08.png: Import + PngSuite images and add its license description + + * configure, configure.ac, converters/img2sixel.c, converters/sixel2png.c, + include/Makefile.am, include/Makefile.in, include/sixel-imageio.h.in, + include/sixel.h.in, src/loader.c, src/writer.c: Aggregate sixel-imageio.h + and sixel.h into the one header + + * Makefile.in, converters/Makefile.am, converters/Makefile.in, + src/Makefile.am, src/Makefile.in: Combine libsixel-imageio with core library + +2015-02-21 Hayaki Saito + + * Makefile.in, converters/Makefile.am, converters/Makefile.in: Add + convenient tests for -B option (issue #25) + + * converters/img2sixel.c: Raise error if invalid -B option is given + + * converters/img2sixel.c, converters/loader.h, converters/malloc_stub.c, + converters/malloc_stub.h, converters/sixel2png.c, + include/sixel-imageio.h.in, include/sixel.h.in, src/dither.c, src/dither.h, + src/frompnm.c, src/frompnm.h, src/loader.c, src/output.c, src/output.h, + src/pixelformat.c, src/quant.c, src/quant.h, src/scale.c, + src/stb_image_write.c, src/writer.c: Update copyright notice + + * include/sixel.h.in, src/dither.c, src/dither.h, src/pixelformat.c, + src/scale.c, src/tosixel.c, src/writer.c: Integrate some duplicated code + around sixel_helper_normalize_pixelformat() + + * src/loader.c: Apply default background color to paletted PNG with tRNS + chunk + + * src/loader.c: Suppress printf() formatter warings + + * src/dither.c: Add some parentheses for suppressing GCC warnings + + * src/stb_image.h: Retrive delay information from animated GIF correctory + + * src/loader.c: Add some malloc() error handlings and fix leaks + +2015-02-20 Hayaki Saito + + * src/dither.c, src/dither.h, src/tosixel.c: Change the signature of + sixel_normalize_pixelformat() + + * src/dither.c: Fixes for passing PngSuite odd sizes test (for Issue #25) + http://www.schaik.com/pngsuite/pngsuite_siz_png.html + + * src/dither.c: Logging to stderr instead of stdout + + * src/loader.c: Expand grayscale PNG to RGB format if needed + + * converters/loader.c: Add more logs + + * src/dither.c: Expand 1/2/4 bpp palette with considering surplus bits + + * converters/loader.c: Reset bitdepth after calling png_set_strip_16() + +2015-02-19 Hayaki Saito + + * converters/loader.c: Suppress printf() formatter warings + + * ChangeLog: Update ChangeLog + + * Makefile.in: Rebuild + + * converters/loader.c, src/dither.c: Add logging + + * converters/img2sixel.1: Add descriptions about source image formats to + manpage of img2sixel(for Issue #24) + +2015-02-18 Hayaki Saito + + * converters/loader.c: Call png_set_strip_alpha() when expanding paletted + PNG to RGB888 pixelformat (for Issue #29) + +Mon Feb 16 00:41:06 2015 +0900 saitoha + + * converters/loader.c: Squashed commit of the following: commit + 808aeaedf18532f04210c7c35ed1c9b74496e52a Use png_set_packing to expand + 1/2/4bpp paletted PNG (for Issue #29) commit + cb53ae183c25b140e9e0c53bc9318d97f04827fc Revert "libpng loader: expand + 1/2/4bpp palette to 8bpp (for issue #29)" This reverts commit + b6748d1a49477200a7dfb93c767207d96aec53d5. commit + b6748d1a49477200a7dfb93c767207d96aec53d5 libpng loader: expand 1/2/4bpp + palette to 8bpp (for issue #29) + +2015-02-17 Hayaki Saito + + * converters/loader.c: Use png_set_packing to expand 1/2/4bpp paletted PNG + (for Issue #29) + + * converters/loader.c: Revert "libpng loader: expand 1/2/4bpp palette to + 8bpp (for issue #29)" This reverts commit + b6748d1a49477200a7dfb93c767207d96aec53d5. + +2015-02-16 Hayaki Saito + + * converters/sixel2png.c, include/sixel-imageio.h.in, src/writer.c: Fix + sixel2png available (for issue #30) + + * converters/loader.c: Always set background color and respect bKGD chunk + again (for Issue #31) + +2015-02-16 saitoha + + * converters/loader.c: libpng loader: expand 1/2/4bpp palette to 8bpp (for + issue #29) + +2015-02-15 Hayaki Saito + + * converters/loader.c, converters/stb_image.h: Respect -B option regarding + with GIF images with transparent index (for Issue #25) + + * src/loader.c: Blend background color to RGBA image pixels with respecting + alpha channel + + * converters/loader.c: libpng loader: background color support for + glayscale-alpha PNG (for issue #25) + + * converters/img2sixel.c: Pass PLTE chunk of 1/2/4 bpp paletted PNG + specified by -m option directly to dither object + + * converters/img2sixel.c, converters/loader.c, include/sixel.h.in, + src/dither.c, src/tosixel.c: libpng loader: Support 4bpp paletted PNG with + tRNS chunk (for issue #25) + + * converters/img2sixel.c, converters/loader.c, include/sixel.h.in, + src/dither.c, src/tosixel.c: libpng loader: Support 1bpp paletted PNG with + tRNS chunk (for issue #25) + + * converters/img2sixel.c, converters/loader.c, include/sixel.h.in, + src/dither.c, src/tosixel.c: libpng loader: Support 2bpp paletted PNG with + tRNS chunk (for issue #25) + + * converters/loader.c: Don't check bKGD chunk before setting background + color + + * converters/loader.c: Respect -B/--bgcolor option in libpng loader when PNG + color type is RGB (for issue #25) + + * converters/img2sixel.1, converters/sixel2png.1: Update CONTRIBUTERS + section of man pages + + * converters/sixel2png.c, include/sixel-imageio.h.in, src/loader.c, + src/writer.c: Minor fixes + +2015-02-14 Hayaki Saito + + * converters/Makefile.am, converters/Makefile.in: Add test case whether + stb_image can load a progressive jpeg (for issue #24) + + * README.md: README.md: add @msmhrt to the contributer section + + * Makefile.in: Rebuild Makefile.in + + * converters/img2sixel.c: histogram_colors should be initialized after + sixel_dither_initialize() function call + + * ChangeLog: Update ChangeLog + + * ChangeLog: Update ChangeLog + + * Makefile.in, converters/img2sixel.c: Add some parentheses arithmetic + operator '|', for suppressing GCC warnings + + * converters/stb_image.h: Fix GCC a warning caused by comparison of signed + and unsigned type in conditional expression + + * Makefile.in, config.h.in, configure, configure.ac, src/dither.c, + src/quant.c: Check strtoul and availability + + * converters/img2sixel.c: Parse X11 color spec without strtoul/strtoull + +2015-02-13 Hayaki Saito + + * Makefile.in, converters/img2sixel.c: Fix a syntax error caused by a typo + +2015-02-12 Hayaki Saito + + * converters/img2sixel.c: Fix a leak around parsing -B option + + * converters/img2sixel.c: Fix a typo in the output of -H + + * converters/img2sixel.c: Fix a tiny memory leak when duplicated -m option + are specified + +2015-02-11 Hayaki Saito + + * converters/loader.c: Minor style fix + + * converters/shell-completion/bash/img2sixel, + converters/shell-completion/zsh/_img2sixel: Add -B option to shell + completion settings + +2015-02-10 Hayaki Saito + + * converters/loader.c: Background color support for 8bpp paletted PNG with + tRNS chunk using libpng (for Issue #25) + +2015-02-09 Hayaki Saito + + * converters/loader.c: Consider the behavior of libpng1.2 around background + color support(for Issue #25) + +2015-02-08 Hayaki Saito + + * README.md, converters/img2sixel.1, converters/img2sixel.c: Add the brief + of -B option to README and manpage + + * converters/loader.c: Fix build error when --without-png configure option + is specified + + * converters/img2sixel.c, converters/loader.c, converters/loader.h: Add + -B/--bgcolor option (for Issue #25) + + * converters/img2sixel.c: Fix noise problem when applying palette (for issue + #26) + + * src/quant.c: Correct wrong histgram processing (for Issue #26) + +2015-02-05 Hayaki Saito + + * Makefile.in, converters/Makefile.am, converters/Makefile.in: Minor fixes + +2015-02-04 Hayaki Saito + + * converters/loader.c, converters/stb_image.h, + patches/applied/stb_image.h.diff: Update stb_image to v2.02 (for Issue #24) + + * ChangeLog: Update ChnageLog + +2015-02-03 Hayaki Saito + + * examples/opengl/README.md: Add README of OpenGL example + + * examples/opengl/main.c: Minor fix + + * .gitignore: Update gitignore + + * converters/Makefile.am, converters/Makefile.in: Add + converters/unittest.log to clean targets + + * Makefile.in, configure, configure.ac: Detect availabilies for GD functions + correctly if gd.h is not in default include path + +2015-02-02 Hayaki Saito + + * config.h.in, converters/loader.c: Fix some wrong config.h declaration: + HAVE_XXX -> HAVE_DECL_XXX (for #23) + + * config.h.in, configure, configure.ac, converters/loader.c, ltmain.sh, + m4/libtool.m4, m4/ltoptions.m4, m4/ltsugar.m4, m4/ltversion.m4, + m4/lt~obsolete.m4: Check availability of png_set_{,expand_}gray_1_2_4_to_8 + (#23) + +2015-02-02 saitoha + + * converters/loader.c: Workaround for 1/2/4bpp grayscaled image with + libpng1.2, reported by @msmhrt(#23) + +2015-02-01 Hayaki Saito + + * ChangeLog: Update ChangeLog + + * NEWS: Update NEWS + + * converters/loader.c: Fix wrong bit depth handling issue reported by + @msmhrt (#22) + +2015-01-27 Hayaki Saito + + * ChangeLog: Update ChangeLog + + * examples/opengl/main.c: OpenGL example: performance improvement + +2015-01-24 Hayaki Saito + + * src/fromsixel.c: Fix a bad allocation error + + * examples/opengl/config.guess, examples/opengl/config.sub: Add missing + config.sub and config.guess + + * examples/opengl/Makefile.am, examples/opengl/Makefile.in, + examples/opengl/config.h.in, examples/opengl/configure, + examples/opengl/configure.ac, examples/opengl/main.c: Detect CGL/GLX + availability in opengl example configuration + + * src/writer.c: Fix mingw build + + * src/fromsixel.c: Do not free temporary buffer allocated by custom + allocator + +2015-01-23 Hayaki Saito + + * README.md: Update README + + * examples/opengl/Makefile.am, examples/opengl/Makefile.in, + examples/opengl/aclocal.m4, examples/opengl/compile, + examples/opengl/config.h.in, examples/opengl/configure, + examples/opengl/configure.ac, examples/opengl/depcomp, + examples/opengl/install-sh, examples/{osx/opengl/opengl.c => opengl/main.c}, + examples/opengl/missing, examples/osx/opengl/Makefile: Use osmesa for + opengl-sixel demo + +2015-01-13 Hayaki Saito + + * Makefile.am, Makefile.in, converters/Makefile.am, converters/Makefile.in, + src/loader.c: Add check-am target to makefiles + +2014-12-30 Hayaki Saito + + * configure, configure.ac, package.json: Update version + + * ChangeLog, NEWS: Update NEWS and ChangeLog + + * src/dither.c: Add a comment block regarding the behavior of VT340 + palette(Issue #12) + + * src/dither.c: Hotfix for VT-340's rotated palette(Issue #12) + + * converters/Makefile.am, converters/Makefile.in, converters/sixel2png.c, + include/sixel-imageio.h.in, src/Makefile.am, src/Makefile.in, src/loader.c, + {converters => src}/stb_image_write.c, {converters => + src}/stb_image_write.h, src/writer.c: Add new API: + sixel_helper_write_image_file + + * converters/Makefile.am, converters/Makefile.in, converters/sixel2png.c, + src/Makefile.am, src/Makefile.in, src/loader.c: Cleanup sixel2png.c + + * src/fromsixel.c: Arrange palette with 3byte per color format + + * src/Makefile.am, src/Makefile.in: Build fix for MinGW + + * converters/Makefile.am, converters/Makefile.in: Build fix + +2014-12-29 Hayaki Saito + + * src/Makefile.am, src/Makefile.in: Add -lm to LDADD of libsixel + + * converters/Makefile.am, converters/Makefile.in, src/Makefile.am, + src/Makefile.in: Minor fixes + + * include/sixel-imageio.h.in: Add missing sixel-imageio.h.in + + * libsixel.pc.in: Update libsixel.pc.in + + * converters/Makefile.am, converters/Makefile.in, src/Makefile.am, + src/Makefile.in: Remove unused dependencies from LIBADD and LDADD + + * configure, configure.ac, converters/Makefile.am, converters/Makefile.in, + converters/img2sixel.c, converters/loader.h, converters/stb_image.c, + include/Makefile.am, include/Makefile.in, src/Makefile.am, src/Makefile.in, + {converters => src}/frompnm.c, {converters => src}/frompnm.h, {converters => + src}/loader.c, {converters => src}/stb_image.h: Add new API: + sixel_helper_load_image_file + + * converters/Makefile.am, converters/Makefile.in, converters/img2sixel.c, + converters/scale.h, include/sixel.h.in, src/Makefile.am, src/Makefile.in, + {converters => src}/scale.c: Add new API sixel_helper_scale_image + + * converters/img2sixel.c, converters/loader.c, converters/loader.h, + src/pixelformat.c: Cleanup loader.c + + * Makefile.am, Makefile.in: Make sure to remove test.log in clean target + + * converters/img2sixel.c, converters/scale.c, converters/scale.h, + include/sixel.h.in, src/Makefile.am, src/Makefile.in, src/dither.c, + src/pixelformat.c, src/quant.c, src/tosixel.c: Add new API + sixel_helper_compute_depth and sixel_helper_normalize_pixelformat + + * converters/img2sixel.c, converters/scale.c, converters/scale.h: Cleanup + scale.c + +2014-12-28 Hayaki Saito + + * converters/tests.c: Add missing tests.c + + * .travis.yml, Makefile.am, Makefile.in, converters/Makefile.am, + converters/Makefile.in, src/dither.c, src/dither.h: Add basic tests of + dither.c + +2014-12-26 Hayaki Saito + + * config.h.in, configure, configure.ac: Add --enable-tests configure option + + * converters/img2sixel.c: Minor style improvement + + * converters/img2sixel.c: Strip an unreached return statement + +2014-12-24 Hayaki Saito + + * ChangeLog, configure, configure.ac, package.json: Update version + + * converters/img2sixel.c: Fix wrong crop option(-c) behavior + + * src/tosixel.c: Fix memory leak and segmentation fault in rare cases + + * src/tosixel.c: Minor fixes + +2014-12-19 Hayaki Saito + + * configure, configure.ac, package.json: Bump version + + * ChangeLog, NEWS: Update ChangeLog and NEWS + + * Makefile.in, configure, configure.ac, converters/Makefile.am, + converters/Makefile.in, include/Makefile.in, src/Makefile.in: Define + _ALL_SOURCE only in Interix environment + +2014-12-18 Hayaki Saito + + * converters/Makefile.am, converters/Makefile.in, converters/img2sixel.c: + Prohibit use of -8 and -P options at same time + + * src/tosixel.c: Cleanup + + * src/tosixel.c: Avoid using magic strings + + * src/tosixel.c: Define some macros for DCS processing + +2014-12-18 IWAMOTO Kouichi + + * converters/Makefile.am, converters/Makefile.in, src/Makefile.am, + src/Makefile.in: fix include path priority. + +2014-12-09 Hayaki Saito + + * converters/Makefile.am, converters/Makefile.in: Fix the typo of + preprocesser definition _ALL_SOURCE + +2014-12-08 Hayaki Saito + + * converters/img2sixel.c: Don't define the variable 'lag' if usleep(3) is + not available + +2014-12-07 Hayaki Saito + + * converters/img2sixel.c, converters/sixel2png.c: Don't use unportable + strdup(3) + + * ChangeLog, NEWS: Update ChangeLog + + * converters/Makefile.am, converters/Makefile.in: Don't use unportable grep + arguments for test + + * converters/Makefile.am, converters/Makefile.in: Don't use shell-builtin + '!' + + * Makefile.am, Makefile.in: Don't use -C option of make command, for the + portability + + * converters/Makefile.am, converters/Makefile.in: Add definition + _ALL_SOURCES for some platforms + + * config.h.in, converters/img2sixel.c, converters/sixel2png.c: Add support + for strdup-missing environments + + * configure, configure.ac: Check strdup availability + +2014-12-06 Hayaki Saito + + * configure, configure.ac: Build fix for Interix + + * Makefile.in, configure, configure.ac, converters/Makefile.am, + converters/Makefile.in, include/Makefile.in, src/Makefile.am, + src/Makefile.in: Checks the availability of some C compiler warning flags + + * configure, configure.ac: Add conditional variable for makefile: + HAVE_GETOPT_LONG + + * converters/Makefile.am, converters/Makefile.in: Fix tests as respecting + POSIX compliant behavior of getopt + + * converters/img2sixel.c: Minor style fixes + +2014-12-05 Hayaki Saito + + * converters/img2sixel.c, converters/sixel2png.c: Suppress warnings for + Interix build(without HAVE_GEtOPT_LONG) + + * configure, configure.ac, converters/Makefile.am, converters/Makefile.in: + Fix tests for some environments that have not getopt_long + + * src/tosixel.c: Replace integer literals 32768 to 'maxcolors' + + * src/tosixel.c: Move a long case statement to a new function + + * converters/loader.c: Suppress a clang warning: -Wunused-parameter + + * configure, configure.ac, package.json: Bump version + + * ChangeLog: Update ChangeLog + + * NEWS: Update NEWS + + * converters/loader.c, src/fromsixel.c: Style fixes + +2014-12-04 Hayaki Saito + + * converters/img2sixel.c: Fix a stupid typo + + * README.md, converters/Makefile.am, converters/Makefile.in, + converters/img2sixel.1, converters/img2sixel.c, converters/loader.c, + converters/loader.h, converters/shell-completion/bash/img2sixel, + converters/shell-completion/zsh/_img2sixel: Introduce -k, --insecure option + for libcurl integration + + * converters/Makefile.am, converters/Makefile.in: Add test for SSL access + with libcurl + +2014-12-03 OBATA Akio + + * configure, configure.ac: Kill bashizm '=' operator for test(1) is not + portable. + +2014-12-01 Hayaki Saito + + * NEWS: Update NEWS + + * ChangeLog, configure, configure.ac, package.json: Bump version + + * converters/img2sixel.c: Build fix + + * converters/img2sixel.c, converters/loader.c: Fix broken -m(--mapfile + option) + + * README.md: Revert "Update README" This reverts commit + 4dfed12be17c10d0161c51eca0b38369e93023d4. + + * README.md: Update README + + * README.md: Update README + + * include/sixel.h.in, src/dither.c: A bit of fixes of API signature + +2014-11-30 Hayaki Saito + + * ChangeLog: Update ChangeLog + + * converters/Makefile.am, converters/Makefile.in: Minor fix + + * NEWS: Update NEWS + + * README.md: Add a link to @arakiken's document(libsixel.pdf) to README + + * src/fromsixel.c: Minor style fix + +2014-11-30 saitoha + + * converters/img2sixel.c: Fix a segmentation error caused by illigal depth + dealing + +2014-11-30 Hayaki Saito + + * converters/Makefile.am, converters/Makefile.in: Add tests for some edge + cases of sixel decoding + + * converters/Makefile.am, converters/Makefile.in: Ammend fix for DCS + parameter parsing tests + + * converters/Makefile.am, converters/Makefile.in: Fix test for wine + environment + + * converters/Makefile.am, converters/Makefile.in: Add a test of parsing + sixel DCS parameters + + * converters/Makefile.am, src/fromsixel.c: Add a test of decoding big sixel + + * src/tosixel.c: Add a pair of ref/unref call for output context + + * converters/img2sixel.c: Don't trust loop_count report of gdk-pixbuf loader + + * converters/Makefile.am, converters/Makefile.in: Add tests for + -E(--encode-policy) option + + * converters/Makefile.am, converters/Makefile.in: Add a test for option "-l + auto" + + * converters/Makefile.am, converters/Makefile.in: Add a test for combination + of options, -u and -g + + * converters/Makefile.am, converters/Makefile.in, converters/img2sixel.c, + converters/loader.c, converters/loader.h: If input data is empty or 1byte + LF, the loader ignores it and returns successfully + +2014-11-30 arakiken + + * src/tosixel.c: Search a next node from nodes after a current node instead + of context->node_top in sixel_encode_body(). + +2014-11-30 Hayaki Saito + + * converters/Makefile.am, converters/Makefile.in: Add tests for applying + vt340 built-in palette + + * converters/img2sixel.c: Separate convert_sixel into 3 functions + + * converters/Makefile.am, converters/Makefile.in: Fix pipe-mode test for + mingw build + + * converters/Makefile.am, converters/Makefile.in: Don't test -D option(pipe + mode) in wine environment + +2014-11-30 arakiken + + * src/tosixel.c: Search a next node from nodes after a current node instead + of context->node_top in sixel_encode_body(). + +2014-11-30 Hayaki Saito + + * converters/Makefile.am, converters/Makefile.in: Add tests for applying + vt340 built-in palette + + * NEWS: Update NEWS + + * converters/img2sixel.c: Separate convert_sixel into 3 functions + + * converters/Makefile.am, converters/Makefile.in: Fix pipe-mode test for + mingw build + + * converters/Makefile.am, converters/Makefile.in: Don't test -D option(pipe + mode) in wine environment + + * README.md, configure, configure.ac, package.json: Update minor version + + * configure, configure.ac: Update libtool version to 1.3.0 + + * NEWS: Update NEWS + + * ChangeLog: Update ChangeLog + + * NEWS: Update NEWS + + * src/quant.c: Minor change of mehod of creating histogram + + * converters/Makefile.am: Add some tests of loading grayscaled PNG + + * converters/img2sixel.c: Make palette from grayscaled PNG with -m option + + * converters/loader.c: Expand 8bpp grayscale input into 24bit colors if it + is needed + + * README.md, converters/img2sixel.1, converters/img2sixel.c, + converters/shell-completion/bash/img2sixel, + converters/shell-completion/zsh/_img2sixel: Add new argument definitions of + -b option, vt340mono and vt340color + + * include/sixel.h.in, src/dither.c: Add new built-in palette definition, + VT340 mono and VT340 color + + * src/dither.c: Style improvement + +2014-11-29 Hayaki Saito + + * converters/loader.c: libpng loader supports 8bit grayscale as an output + format + + * converters/img2sixel.c: 8bit grayscale input format is supported + internally by img2sixel + + * src/tosixel.c: Accept grayscaled input correctly + + * images/snake-monochrome.png: Add a monochrome test image + + * include/sixel.h.in: Reserve some new grayscale pixelformats + + * .travis.yml, converters/stb_image_write.h: Revert 2ab568c, 52129e9 + + * .travis.yml: Update .travis.yml + + * converters/stb_image_write.h: Suppress warnings of breaking + strict-aliasing rules on i586-mingw32msvc build target + + * converters/loader.c: Make sure the local variable 'stride' is initialized + +2014-11-28 Hayaki Saito + + * converters/stb_image.h: Fix acesss violation error on 32bit mingw build + +2014-11-27 Hayaki Saito + + * src/quant.c: Enable detailed trace if img2sixel is built with + --enable-debug option + +2014-11-26 Hayaki Saito + + * converters/stb_image.h: Retrive bit depth of indexed PNG from IHDR chunk + + * .travis.yml, converters/Makefile.am, converters/Makefile.in: Print more + detailed logs on travis + + * converters/stb_image.h: Load 4bpp indexed PNG without libpng loader + + * converters/img2sixel.c: Fix warnings of ordered comparison of pointer with + integer zero + + * converters/img2sixel.c, converters/loader.c, converters/loader.h: Don't + use internal indexed processing if less number of colors than the source + palette are specified by -p option + + * converters/img2sixel.c: Don't use indexed processing if -m,-e,-I,-b + options are specified + + * converters/img2sixel.c: Strip trailing spaces + + * converters/img2sixel.c: Crop images with preserving PAL8 pixel format + + * converters/Makefile.am, converters/Makefile.in: Add tests for internal + indexed processing + +2014-11-25 Hayaki Saito + + * images/map8.six, images/snake.six: Add test sixel images + + * converters/loader.c: Move the sixel loader process as a separated function + + * converters/img2sixel.c, converters/loader.c: SIXEL loader preserves PAL8 + pixel format if possible + + * converters/img2sixel.c, converters/loader.c, converters/loader.h: Pass + pixelformat value returned by loader component to dithering context + initializer + + * converters/loader.c: Add missing break statement + +2014-11-24 Hayaki Saito + + * converters/loader.c: Retrive pixelformat from png loader + + * converters/frompnm.c, converters/frompnm.h, converters/loader.c: Change + the signature of pnm loader to retrive pixelformat + + * converters/frompnm.c, converters/loader.c: Style improvements + + * converters/Makefile.am, converters/Makefile.in, converters/img2sixel.c, + converters/loader.c, converters/loader.h, include/sixel.h.in, src/dither.c, + src/tosixel.c: Support paletted input + + * images/map16-palette.png, images/map8-palette.png, + images/snake-palette.png: Add paletted PNG images + +2014-11-23 Hayaki Saito + + * converters/Makefile.am, converters/Makefile.in, + images/snake-grayscale.jpg, images/snake-grayscale.png: Add tests of loading + grayscaled jpeg/png images + + * ChangeLog, configure, configure.ac, package.json: Bump version + + * converters/loader.c: Fix a segmentation fault while loading grayscaled PNG + + * converters/shell-completion/bash/img2sixel: Update bash completion file + + * converters/shell-completion/zsh/_img2sixel: Update zsh completion file + +2014-11-22 Hayaki Saito + + * converters/Makefile.am, converters/Makefile.in: Add tests for completion + + * converters/img2sixel.c, include/sixel.h.in, src/dither.c, src/dither.h, + src/quant.c, src/tosixel.c: Chenage symbols of enum pixelFormat + +2014-11-20 Hayaki Saito + + * converters/img2sixel.c, converters/sixel2png.c, + examples/osx/opengl/opengl.c: Fix for DCL20-C compliant: "Explicitly specify + void when a function accepts no arguments" https://www.securecoding.cert.org + /confluence/display/seccode/DCL20-C.++Explicitly+specify+void+when+a+functio + n+accepts+no+arguments + + * NEWS: Update NEWS + + * converters/Makefile.am, converters/Makefile.in: Add more tests for -b + option + + * converters/Makefile.am, converters/Makefile.in, converters/img2sixel.c: + Add invalid option handler for -b option + + * converters/Makefile.am, converters/Makefile.in: Add some tests for -b + option + +2014-11-19 arakiken + + * src/tosixel.c: Fix a bug which outputs sixel sequence exceeding the size + of an original image if encode_policy is ENCODEPOLICY_SIZE. + +2014-11-19 Hayaki Saito + + * ChangeLog, configure, configure.ac, package.json: Bump micro version + + * converters/img2sixel.c: Suppress color expansion on loading mapfiles + +2014-11-18 Hayaki Saito + + * converters/Makefile.in: Rebuild + +2014-11-18 saitoha + + * converters/Makefile.am: Fix test for MinGW environment + +2014-11-18 Hayaki Saito + + * .travis.yml: Update .travis.yml + +2014-11-17 Hayaki Saito + + * .travis.yml: Update .travis.yml + +2014-11-17 saitoha + + * converters/Makefile.am, converters/Makefile.in, converters/img2sixel.1: + Fix for passing manpage test + +2014-11-17 Hayaki Saito + + * converters/img2sixel.c: Amend fixes for -b option + + * converters/img2sixel.c: Update optstring which is passed to getopt() + + * converters/Makefile.am, converters/Makefile.in, converters/img2sixel.1: + Add the explanation of -E option to manpage + + * converters/Makefile.am, converters/Makefile.in: Add a test for avoid + forgetting to write about new options in manpage + + * README.md, converters/img2sixel.1, converters/img2sixel.c: Add missing + options in manpage + + * README.md, converters/img2sixel.1, converters/img2sixel.c: Introduce + -b/--builtin-palette option instead of -x/-y options + +2014-11-16 arakiken + + * converters/img2sixel.c: Fix help message. + + * converters/img2sixel.c, include/sixel.h.in, src/output.c, src/output.h, + src/tosixel.c: Add -E, --encode-policy mode. + +2014-11-16 saitoha + + * src/quant.c: Minor style improvement + +2014-11-16 Hayaki Saito + + * src/quant.c: Prevent memory access violation + + * src/quant.c: Reduce working memory allcation size during prepare histogram + +2014-11-15 Hayaki Saito + + * src/dither.c: Skip memcpy only when pixelformat is RGB888 + + * src/quant.c: Add missing parameter type definition + + * src/dither.c, src/quant.c, src/quant.h: Pass pixelformat instead of depth + to sixel_quant_make_palette + + * src/dither.c, src/quant.c, src/quant.h: Rename functions prefixed by 'LSQ' + to sixel_quant_xxx + + * src/dither.c, src/tosixel.c: convert pixelformat in + sixel_dither_apply_palette + + * src/tosixel.c: Use dither->pixelformat internally + + * include/sixel.h.in, src/dither.c, src/tosixel.c: Introduce new API: + sixel_dither_set_pixelformat + + * src/dither.c, src/dither.h: Introduce a new member for dithering context + object: pixelformat + + * src/dither.c, src/dither.h, src/tosixel.c: Rename internal API + sixel_apply_palette to sixel_dither_apply_palette + +2014-11-15 saitoha + + * converters/loader.c: Fix a maybe-uninitialized GCC warning + +2014-11-15 Hayaki Saito + + * converters/loader.c: Get rid of unused variables + +2014-11-15 saitoha + + * src/fromsixel.c: Revert "Fix overflow issue in sixel_decode" This reverts + commit 0ae94a3e6fcfc574c7a32fc3e9c80594de4d778b. + + * converters/loader.c, converters/sixel2png.c: Don't use setjmp for the + future because it's thread-unsafe + + * converters/loader.c: Make PNG loader using libpng as a separated function + + * converters/stb_image.h: Suppress an -Wsigned error in + converters/stb_image.h + + * converters/loader.c: Strip an unused local variable + + * converters/img2sixel.c: Strip an extra conditional directive + + * converters/img2sixel.c: Strip an extra conditional clause + +2014-11-15 Hayaki Saito + + * include/sixel.h.in: Add dummy members to some structs in sixel.h because + empty struct is a GNU extension + + * converters/img2sixel.c, src/quant.c, src/tosixel.c: Suppress sign-compare + and unused-parameter warnings by clang + + * src/fromsixel.c: Fix overflow issue in sixel_decode + + * converters/Makefile.am, converters/Makefile.in, src/Makefile.am, + src/Makefile.in: Build with extra waning flags + +2014-11-14 arakiken + + * src/tosixel.c: Optimize encoding to sixel sequence. + (http://mlterm.sf.net/optimize-sixel.png) + +2014-11-14 Hayaki Saito + + * src/quant.c: Apply dither to more pixels in the edge + +2014-11-13 Hayaki Saito + + * src/dither.c, src/dither.h, src/tosixel.c: Change symbol names: 'bitfield' + -> 'pixelformat' + + * .travis.yml: Update .travis.yml + + * converters/sixel2png.c: Correct wrong correspondence between short and + long options: --help/--version + + * src/dither.c: Suppress GCC warnings + + * converters/Makefile.am, converters/Makefile.in: Add more tests + + * converters/loader.c: Use malloc instead of calloc + + * converters/img2sixel.c, include/sixel.h.in, src/dither.c, src/dither.h, + src/quant.c, src/quant.h, src/tosixel.c: Add new API: + sixel_dither_set_optimize_palette + + * src/quant.c: Improve dithering performance + +2014-11-12 Hayaki Saito + + * include/sixel.h.in: Reformat sixel.h.in + +2014-11-11 Hayaki Saito + + * converters/Makefile.am, converters/Makefile.in, converters/img2sixel.c: + Cleanup + +2014-11-11 saitoha + + * aclocal.m4, config.guess, config.h.in, config.sub, configure, + configure.ac, converters/loader.c, ltmain.sh, m4/libtool.m4: Don't include + setjmp.h + +2014-11-10 Hayaki Saito + + * config.h.in, converters/Makefile.am, converters/Makefile.in: Update tests + + * README.md, converters/img2sixel.1: Update documents + + * converters/img2sixel.c, include/sixel.h.in, src/dither.c, src/quant.c: + Implement new quality mode: full + + * src/quant.c: Fix broken lookup_normal strategy function + + * converters/quant.h: Remove an unused file + + * src/quant.c, src/tosixel.c: Style improvements + + * src/fromsixel.c: Change default background color of sixel2png to 15 + +2014-11-09 Hayaki Saito + + * configure, configure.ac, converters/Makefile.am, converters/Makefile.in, + converters/loader.c, converters/sixel2png.c: Check setjmp availability + + * src/quant.c: Correct reversed test condition for HAVE_CALLOC + + * converters/Makefile.am, converters/Makefile.in, converters/img2sixel.c: + Test -s option more efficiently + + * converters/Makefile.am: Add tests for loading big sixel image + + * converters/Makefile.am, converters/Makefile.in: Update tests + + * converters/Makefile.am: Update tests + + * converters/Makefile.in: Update tests + + * converters/Makefile.am, converters/Makefile.in: Update tests + + * converters/Makefile.am, converters/Makefile.in, images/seq2gif.gif: Add + tests for GIF animation rendering + +2014-11-08 Hayaki Saito + + * converters/frompnm.c: Cherry-picked edd88d0: Make img2sixel enable to load + pbm files + +2014-11-09 Hayaki Saito + + * converters/loader.c: Prevent segfault with -m option in libpng loader + + * configure, configure.ac, package.json: Bump version + + * converters/loader.c: Fix segfault on using gdk-pixbuf loader with -m + option + +2014-11-09 OBATA Akio + + * configure, configure.ac: Kill bashizm '=' operator for test(1) is not + portable. + +2014-11-09 Hayaki Saito + + * .travis.yml: Update .travis.yml + + * .travis.yml, converters/Makefile.am, converters/Makefile.in: Update + .travis.yml + + * converters/Makefile.am, converters/Makefile.in: Update .travis.yml + + * configure, configure.ac, converters/Makefile.am, converters/Makefile.in, + converters/img2sixel.c, include/sixel.h.in, src/dither.c, src/tosixel.c: + Rename the option "-F,--fullcolor" to "-I,--high-color" + +2014-11-08 Hayaki Saito + + * converters/frompnm.c: Make img2sixel enable to load pbm files + + * converters/Makefile.in: Update tests + + * converters/Makefile.am: Update tests + + * images/snake-ascii.pbm, images/snake-ascii.pgm, images/snake-ascii.ppm, + images/snake.pbm, images/snake.pgm, images/{snake.pnm => snake.ppm}: Add + various ppm images for testing + + * converters/Makefile.in: Update tests + + * converters/img2sixel.c: Fix leaks for the combinated case that 15bpp mode + and pipe mode are enabled + + * converters/Makefile.am: Update tests + + * converters/img2sixel.c: Build fix for some system which don't provide + clock or usleep + + * ChangeLog, configure, configure.ac, package.json: Update version + + * converters/Makefile.am, converters/Makefile.in, src/dither.c: Update tests + + * aclocal.m4, configure, converters/Makefile.am, converters/Makefile.in: + Update tests + + * converters/img2sixel.c, src/dither.c: Enable some options(-f, -s, and -q) + ignored unintentionally + + * converters/Makefile.am, converters/Makefile.in: Add some tests + + * converters/Makefile.am, converters/Makefile.in, converters/img2sixel.c, + src/tosixel.c: Cleanup + +2014-11-08 saitoha + + * .travis.yml: Update .travis.yml + +2014-11-08 Hayaki Saito + + * .travis.yml: Build with --enable-debug on travis + + * converters/sixel2png.c: Don't include stb_image_write.h if libpng is used + + * converters/Makefile.am, converters/Makefile.in, converters/sixel2png.c: + Add failure cases to tests + + * src/fromsixel.c: ColTab -> color_table + + * src/fromsixel.c: Fix leaks on some error cases + + * .travis.yml: Update .travis.yml + + * converters/Makefile.am, converters/Makefile.in, src/quant.c: Update tests + + * .travis.yml, converters/Makefile.am: Add more tests + + * converters/Makefile.am, converters/Makefile.in: Add tests for various + options + +2014-11-07 Hayaki Saito + + * configure, configure.ac, converters/Makefile.am, converters/Makefile.in: + Add a test for libcurl integration + + * converters/Makefile.am, converters/Makefile.in: Add tests for various + image formats + + * converters/Makefile.am, converters/Makefile.in: Add tests for pipe-mode + +2014-11-07 saitoha + + * .travis.yml: Update .travis.yml + + * aclocal.m4, configure, configure.ac, converters/img2sixel.c: Various fixes + for MinGW build + +2014-11-06 Hayaki Saito + + * src/tosixel.c: Implement various dithering method for 15bpp mode + +2014-11-05 Hayaki Saito + + * src/tosixel.c: Apply floyd steinberg dithering with 15bpp output mode + + * src/tosixel.c: Cleanup + +2014-11-05 saitoha + + * converters/malloc_stub.c, src/tosixel.c: Suppress warings on MinGW + environment + +2014-11-04 arakiken + + * src/tosixel.c: Remove unnecessary variables 'src' and 'orig_src'. + + * src/tosixel.c: Allocate 'rgbhit' and 'rgb2pal' on heap instead of stack. + + * src/tosixel.c: Remove an extra space. + +2014-11-04 Hayaki Saito + + * src/dither.c, src/quant.c: Amend fix for suppressing GCC warnings + + * src/dither.c, src/quant.c: Revert "Suppress GCC 4.9.1 warnings" This + reverts commit 289b2d7ec4f0e06fe5fc85a8b11eafe536331e04. + + * src/dither.c, src/quant.c: Suppress GCC 4.9.1 warnings + + * converters/img2sixel.c: Include sys/types.h to use fd_set + + * converters/img2sixel.c: Minor fix + + * config.h.in, configure, configure.ac, converters/img2sixel.c: Include + sys/select.h to fix build on MinGW environment + +2014-11-03 Hayaki Saito + + * README.md, converters/img2sixel.1, converters/img2sixel.c: Update document + for --pipe-mode + +2014-11-03 arakiken + + * src/tosixel.c: Remove a performance hack which inserts '\n' after palette + definition. + +2014-11-03 Hayaki Saito + + * configure, configure.ac, package.json: Bump version + + * converters/loader.c: Interpret an image expanded by png_set_palette_to_rgb + as a 3-channel image + + * converters/img2sixel.1: Delete duplicated contributers + + * config.h.in, configure, configure.ac, converters/img2sixel.c, + converters/loader.c, converters/loader.h: Use clearerr instead of fseek + + * config.h.in, configure, configure.ac, converters/img2sixel.c, + converters/loader.c, converters/loader.h: Use fseek instead of rewind, and + check the availability of fseek + + * converters/img2sixel.c, converters/loader.c: Add pipe mode + feature(-D/--pipe-mode) + + * converters/img2sixel.c: Avoid scanf buffer overflow + + * converters/img2sixel.c: Add missing options in brevity help + + * ChangeLog: Update ChangeLog + + * configure, configure.ac, package.json: Update version + + * converters/loader.c: Fix a segmentation fault occurs when using libpng + loader + + * src/output.h, src/tosixel.c: Drop unnecessary variable + sixel_output_t::conv_palette + +2014-11-02 arakiken + + * src/tosixel.c: Remove unnecessary check. (nwrite <= 0) Cherry-picked from + cf00bed Conflicts: src/tosixel.c + +2014-11-03 Hayaki Saito + + * src/fromsixel.c: Strip unused variables + + * converters/loader.c: Replace some indent tabs to spaces + + * include/sixel.h.in, src/dither.c: Fix a typo of API signature(#10). old + one is still remained. + +2014-11-02 arakiken + + * src/tosixel.c: Separate sixel_encode_impl() into sixel_encode_header(), + sixel_encode_body() and sixel_encode_footer(). Cherry-picked from 339d958. + Conflicts: src/tosixel.c + + * src/tosixel.c: Remove unnecessary check. (nwrite <= 0) + + * src/tosixel.c: Separate sixel_encode_impl() into sixel_encode_header(), + sixel_encode_body() and sixel_encode_footer(). + + * src/tosixel.c: Remove a trailing space. Add sixel_dither_unref() before + return (-1). + + * src/dither.c: Replace indent tabs to spaces. + + * converters/img2sixel.c, include/sixel.h.in, src/dither.c, src/tosixel.c: + Support 15bpp color sixel. (-F option) + +2014-11-01 Hayaki Saito + + * README.md: Update README + +2014-10-29 Hayaki Saito + + * src/image.c: Remove unused source file image.c + +2014-10-28 Hayaki Saito + + * converters/img2sixel.1: Add contributers + + * converters/img2sixel.1: Correct swapped explanation of dithering methods + atkinson and fs + +2014-10-27 Vertis Sidus + + * converters/img2sixel.c: Added command line options to use XTERM palettes. + +2014-10-26 Hayaki Saito + + * NEWS: Update NEWS + + * configure, configure.ac, package.json: Bump version + + * README.md: Update README + + * README.md: Update README + + * README.md: Update README + + * README.md: Update README + + * NEWS: Update NEWS + + * ChangeLog: Update ChangeLog + + * converters/shell-completion/bash/img2sixel: Update bash completion file + + * converters/shell-completion/zsh/_img2sixel: Update zsh completion file + + * README.md, converters/img2sixel.1: Update manpage and README.md + + * converters/img2sixel.c: Update help + + * converters/sixel2png.c: Write png data using libpng by sixel2png + + * converters/sixel2png.c: Fix a typo + + * converters/sixel2png.c: Cleanup + + * converters/loader.c: Accepts sixel as input format by img2sixel + + * README.md: Update README + + * configure, configure.ac, package.json: Bump version + + * ChangeLog: Update ChangeLog + + * converters/img2sixel.c: Fix segmentation fault on quitting GIF animation + with -u option + + * ChangeLog, NEWS: Update ChangeLog and NEWS + + * converters/img2sixel.c, src/tosixel.c: Support HLS palette + +2014-10-25 Hayaki Saito + + * configure, configure.ac: Don't terminate configure process if + --with-libcurl=auto + + * .travis.yml: Update .travis.yml + + * .travis.yml: Update .travis.yml + + * configure, configure.ac: Don't check pkg-config availability if + $cross_compile == yes + + * Makefile.in, configure, configure.ac, converters/Makefile.in, + include/Makefile.in, src/Makefile.in: Use $PKG_CONFIG environment variable + instead of $have_pkg_config + + * configure, configure.ac: Don't use system pkg-config if $cross_compile == + "yes" + + * .travis.yml: Update .travis.yml + + * .travis.yml: Update .travis.yml + + * .travis.yml, configure, configure.ac: Update .travis.yml + + * .travis.yml: Update .travis.yml + + * configure, configure.ac: Checks zlib availability with libpng, workaround + for MinGW build + + * README.md, configure, configure.ac: Links libcurl automatically + + * Makefile.in, NEWS, configure, configure.ac, converters/Makefile.am, + converters/Makefile.in, include/Makefile.in, src/Makefile.in: Build with + libjpeg/libpng automatically + + * converters/loader.c: Strip alpha in png loader + +2014-10-22 Hayaki Saito + + * Makefile.am, Makefile.in, converters/Makefile.am, converters/Makefile.in, + images/snake.png: Add test for loading png with libpng + + * configure, configure.ac, converters/Makefile.am, converters/Makefile.in, + images/snake-progressive.jpg: Add a test for loading progressive jpeg + + * include/sixel.h.in, src/output.c, src/output.h: Add new API + sixel_output_set_palette_type + + * converters/img2sixel.c, include/sixel.h.in: Add --palette-type option + +2014-10-20 Hayaki Saito + + * README.md: Update README + + * README.md: Update README + + * configure, configure.ac, include/sixel.h.in, src/dither.c, src/dither.h, + src/tosixel.c: Add new API, sixel_dither_set_body_only + + * converters/img2sixel.c: Update usage + + * ChangeLog, NEWS, README.md: Update README and ChangeLog + + * configure: Minor fix + + * configure, configure.ac: Minor fix + + * configure.ac: Fix build error + + * converters/loader.c: Fix build error + + * converters/loader.c: Use libpng reader + + * Makefile.in, config.h.in, configure, configure.ac, converters/Makefile.am, + converters/Makefile.in, include/Makefile.in, src/Makefile.in: Add --with-png + configure option + + * LICENSE.xterm, README.md, src/fromsixel.c: Fix wrong HLS-to-RGB conversion + routine + +2014-10-19 Hayaki Saito + + * README.md: Update README + +2014-10-18 Hayaki Saito + + * converters/img2sixel.c: Introduce --verbose option + + * src/fromsixel.c: Rename some functions as snake case + + * src/fromsixel.c: Rename some functions as snake case + +2014-10-17 Hayaki Saito + + * configure, configure.ac, package.json: Bump version + + * README.md: Update README + + * src/tosixel.c: Omit DCS parameters by default + + * src/tosixel.c: Strip an extra DECGNL character at the end of output data + + * src/tosixel.c: Strip an extra LF character from output data + + * converters/loader.c: Suppress gdk-pixbuf assersion on processing some GIF + images, reported by @ttdoda + +2014-10-14 Hayaki Saito + + * configure, configure.ac, package.json: Bump version + + * LICENSE.sdump, Makefile.in, README.md, config.h.in, configure, + configure.ac, converters/Makefile.am, converters/Makefile.in, + converters/loader.c, include/Makefile.in, src/Makefile.in: Add libjpeg + support with --with-jpeg configure option + +2014-10-12 Hayaki Saito + + * package.json.in.in: clib integration: add --with-libcurl option by default + + * NEWS: Add missing items to NEWS + + * converters/loader.c: Include errno.h in loader.c + + * converters/Makefile.am, converters/Makefile.in, src/Makefile.am, + src/Makefile.in: Add -Werror to CFLAGS when --enable-debug configure option + is specified + + * config.h.in, configure, configure.ac: Introduce --enable-debug configure + option + + * converters/img2sixel.c: Fix a double free error + + * README.md: Update README + + * README.md: Update README + + * README.md: Update README + +2014-10-11 Hayaki Saito + + * README.md: Update README + + * NEWS, README.md: Document updates + + * README.md: Update README + + * converters/loader.c, src/quant.c: Suppress some compiler wanings + + * src/quant.c: Fix a bug caused by an uninitialized variable + + * converters/Makefile.am, converters/Makefile.in, src/Makefile.am, + src/Makefile.in: Add missing -Wall option to cflags to privent stupid bugs + like #9 + + * converters/loader.c: Quick fix for Issue #9 + + * README.md: Update README + + * README.md: Update README + +2014-10-11 Bruce Mitchener + + * converters/loader.c, converters/shell-completion/bash/img2sixel, + converters/sixel2png.1, include/sixel.h.in, src/output.c: Remove whitespace + at EOL. + + * ChangeLog, README.md, converters/img2sixel.1, converters/img2sixel.c, + converters/quant.h, converters/shell-completion/bash/img2sixel, + converters/shell-completion/zsh/_img2sixel, include/sixel.h.in, + src/dither.h, src/quant.c: Fix typos. + + * converters/img2sixel.c: Fix uninitialized variable. + + * converters/img2sixel.c, converters/scale.c: Remove unused functions. + + * converters/img2sixel.c, converters/loader.c, converters/sixel2png.c, + src/quant.c, src/tosixel.c: Remove unused variables. + + * include/sixel.h.in, src/output.c, src/quant.c: Remove invalid const + specifier on return type. + +2014-10-11 Hayaki Saito + + * README.md: Update README + + * README.md: Update README + + * Makefile.in, NEWS: Add NEWS + +2014-10-09 Hayaki Saito + + * converters/shell-completion/bash/img2sixel: Update bash completion file + + * converters/shell-completion/zsh/_img2sixel: Update zsh completion file + + * converters/img2sixel.1: Add missing descriptions to img2sixel manpage + + * README.md, converters/img2sixel.1, converters/img2sixel.c: Update + documents + + * data/example_opengl.gif, data/ffmpeg.png, data/gnuplot.png, data/gs.png, + data/libsixel-1.png, data/q_libsixel.png, data/q_ppmtosixel.png, + data/q_ppmtosixel2.png, data/q_sixel.png, data/q_sixelconv.png, + data/qemu.png, data/sixel.gif, data/w3m-sixel.png, data/wesnoth.png, + data/xsdl.png, data/xsixel.png, data/zx81.png: Remove data directory + +2014-10-08 Hayaki Saito + + * README.md, converters/img2sixel.1, converters/img2sixel.c: Update + documents + + * converters/img2sixel.c, converters/loader.c, converters/loader.h: + Introduce --static option + + * converters/img2sixel.c: @uobikiemukot's patch in the conversation of #8 + + * include/sixel.h.in: Keep compatibility + +2014-10-07 Hayaki Saito + + * src/dither.c: Swap bytes if depth == 2 + + * ChangeLog: Update ChangeLog + + * configure, configure.ac, package.json: Bump version + + * converters/img2sixel.c: Fix for animation GIF quality degradation + + * include/sixel.h.in, src/dither.c, src/dither.h, src/tosixel.c: Apply + @uobikiemukot's patch (various pixel-format support) + https://gist.github.com/uobikiemukot/7adab29310caf0be6f7a + +2014-10-06 Hayaki Saito + + * LICENSE.sixel, README.md: Add a mention about the License of kmiya's sixel + + * ChangeLog: Update ChangeLog + +2014-10-05 Hayaki Saito + + * README.md: Update README.md + + * configure, configure.ac, package.json: Bump version + + * converters/stb_image.h: Skip an unknown code(0x3c) at GIF decoder + +2014-10-02 Hayaki Saito + + * ChangeLog: Update Changelog + +2014-10-01 Hayaki Saito + + * configure, configure.ac: Update libtool minor version + + * configure, configure.ac: Update libtool micro version + + * LICENSE.stb: Declare patches/applied/stb_image.h.diff is in public domain + + * configure, configure.ac, package.json: Bump version + + * .gitignore: Update .gitignore + + * Makefile.am, Makefile.in, configure, configure.ac, package.json.in => + package.json.in.in: Issue #7: prevent to erase package.json in "make + distclean" target + + * Makefile.am, Makefile.in: Issue #7: Add test.log to CLEANFILES + + * converters/Makefile.am, converters/Makefile.in: Issue #7: correct wrong + CLEANFILES definition + +2014-09-29 Hayaki Saito + + * src/tosixel.c: Merge arakiken's amend patch: + http://mlterm.sourceforge.net/libsixel-penetrate2.patch + + * converters/img2sixel.c: Print short usage explanation if invalid option is + given. + + * src/dither.c: Change the behavior of sixel_dither_set_diffusion_type, + improvement for sdump. + +2014-09-28 Hayaki Saito + + * converters/img2sixel.c, include/sixel.h.in, src/dither.c, src/dither.h, + src/quant.c, src/quant.h: Introduce -C(complexion score) option and + implement complexion correction + + * include/sixel.h.in, src/tosixel.c: Fix build broken by fb1cd8a + + * converters/img2sixel.c, src/output.c, src/output.h, src/tosixel.c: Apply + arakiken's patch for GNU Screen integration: + http://mlterm.sourceforge.net/libsixel-penetrate.patch + + * converters/img2sixel.c, include/sixel.h.in, src/output.c, src/output.h, + src/tosixel.c: Introduce new APIs: sixel_output_{get,set}_skip_dcs_envelope + + * configure, configure.ac, package.json: Bump version + + * src/Makefile.am, src/Makefile.in, src/dither.c, src/dither.h, src/image.c, + src/image.h, src/tosixel.c: Drop sixel_image_t object and related functions + +2014-09-27 Hayaki Saito + + * src/dither.c, src/output.c: Add NULL checks + + * src/dither.c, src/output.c: Add NULL checks + + * src/dither.c, src/image.c: Add input parameter validation for some + functions + +2014-09-26 Hayaki Saito + + * converters/img2sixel.c: Fix a compile error + + * converters/img2sixel.c: Fix a compile error + + * src/image.c: Fix a regression bug introduced by 0221665 + + * sixel_orig/Makefile, sixel_orig/frompnm.c, sixel_orig/fromsixel.c, + sixel_orig/main.c, sixel_orig/tosixel.c: Remove original sixel (kmiya's + sixel), Mirror repo is now here: https://github.com/saitoha/sixel + + * converters/img2sixel.c, src/dither.c, src/image.c: Fix Issue #6: Remove + unnecessary null pointer checks + +2014-09-25 Hayaki Saito + + * converters/sixel2png.c: Fix for some environment missing "getopt_long" + + * configure, configure.ac, package.json: Update version + + * converters/sixel2png.c, src/image.c: Issue #5: Completion of error + handling + +2014-09-24 Hayaki Saito + + * ChangeLog: Update ChangeLog + + * README.md, converters/img2sixel.1, converters/img2sixel.c: Fix typos + + * configure, configure.ac, package.json: Bump version + + * converters/shell-completion/bash/img2sixel: Update bash completion file + + * converters/shell-completion/zsh/_img2sixel: Update zsh completion file + +2014-09-24 mattn + + * converters/loader.c: Avoid crash + +2014-09-24 Hayaki Saito + + * converters/img2sixel.c: Do cropping after resizing by changing the order + of arguments + +2014-09-23 Hayaki Saito + + * README.md, converters/img2sixel.1, converters/img2sixel.c: Update + documents + + * README.md: Fix a typo + + * README.md: Update README + + * README.md: Update README + + * data/w3m-sixel.png, data/xsdl.png, data/xsixel.png: Add some images + + * configure, configure.ac: Bump version + + * converters/img2sixel.c: Apply clipping region before scaling process + + * converters/img2sixel.c: Apply arakiken's patch to add clipping options + http://mlterm.sourceforge.net/libsixel-addcopton.patch + +2014-09-09 Hayaki Saito + + * README.md: Update README + +2014-09-02 Hayaki Saito + + * config.h.in, configure, configure.ac, package.json: v1.0.3 revert + stb_image.h to 1.41 + + * configure, configure.ac, package.json: v1.0.3 revert stb_image.h to 1.41 + + * README.md, converters/stb_image.h: Revert stb_image.h to 1.41 for + preventing segfault + +2014-09-01 Hayaki Saito + + * README.md: Update README + +2014-08-29 Hayaki Saito + + * README.md: Fix a typo + + * data/qemu.png, data/wesnoth.png: Add some images for README + + * configure, configure.ac, package.json: Update version + + * README.md: Update README + + * converters/shell-completion/bash/img2sixel: Update bash completion file + +2014-08-25 Hayaki Saito + + * converters/shell-completion/zsh/_img2sixel: Update zsh completion file + + * patches/applied/stb_image.h.diff: Add an applied patch file for original + stb_image.h + + * README.md, converters/stb_image.h: Update stb_image.h version to 1.44 + +2014-08-23 Hayaki Saito + + * configure, configure.ac, package.json: Bump version + + * src/dither.c, src/quant.c: Don't create cache table when it is not needed + + * src/quant.c: Make faster monochrome dithering + + * converters/img2sixel.c: Fix a typo of --quality option value + +2014-08-17 Hayaki Saito + + * src/dither.c, src/dither.h, src/quant.c, src/quant.h: Add quant.h and fix + signature confusion of some functions + + * README.md: Update README + + * README.md, data/ffmpeg.png: Update README + + * configure, configure.ac, package.json: Bump version: 1.0.0 + + * README.md, data/example_opengl.gif, examples/osx/opengl/Makefile, + examples/osx/opengl/opengl, include/sixel.h.in: Update README + + * src/output.h: Add a missing header + + * Makefile.in, aclocal.m4, configure, configure.ac, converters/Makefile.in, + converters/img2sixel.c, converters/sixel2png.c, examples/osx/opengl/opengl, + examples/osx/opengl/opengl.c, include/Makefile.in, include/sixel.h.in, + src/Makefile.in, src/dither.c, src/dither.h, src/fromsixel.c, src/image.c, + src/image.h, src/output.c, src/quant.c, src/tosixel.c: ABI version 1.0.0 + + * src/dither.c, src/dither.h: Add missing files + + * configure, configure.ac, converters/img2sixel.c, + examples/osx/opengl/opengl, examples/osx/opengl/opengl.c, + include/sixel.h.in, src/Makefile.am, src/Makefile.in, src/image.c, + src/output.c, src/quant.c, src/tosixel.c: ABI version 0.3.0 + +2014-08-16 Hayaki Saito + + * include/sixel.h.in, src/quant.c: Performance optimization + + * converters/img2sixel.c, examples/osx/opengl/opengl.c, include/sixel.h.in, + src/quant.c: Minor update + + * converters/img2sixel.c, converters/loader.c, include/sixel.h, + include/sixel.h.in, src/quant.c: Add new function sixel_dither_get + + * converters/img2sixel.c, converters/sixel2png.c, + examples/osx/opengl/opengl, examples/osx/opengl/opengl.c, include/sixel.h, + include/sixel.h.in, src/image.c, src/quant.c, src/tosixel.c: Update + interface symbols + + * src/quant.c: Fix a bug of memory layout of palette structure + + * converters/loader.c: Minor fix + + * src/quant.c, src/tosixel.c: Minor fix + +2014-08-15 Hayaki Saito + + * src/quant.c: Keep compatiblity with abi-1.0.0 branch + + * Makefile.in, README.md, aclocal.m4, config.h.in, configure, configure.ac, + converters/Makefile.in, include/Makefile.in, include/sixel.h, + include/sixel.h.in, m4/ax_gcc_func_attribute.m4, m4/ax_gcc_var_attribute.m4, + src/Makefile.in: Add deprecated attribute to some functions + + * configure, configure.ac, converters/img2sixel.c, converters/loader.c, + include/sixel.h, src/image.c, src/quant.c, src/tosixel.c: ABI version 0.2.0 + + * converters/frompnm.c: Prevent invalid memory access + + * examples/osx/opengl/opengl, examples/osx/opengl/opengl.c: Add an example: + opengl test + +2014-08-13 Hayaki Saito + + * src/tosixel.c: Reset active palette by every frame + +2014-08-08 Hayaki Saito + + * README.md: Update README + + * src/tosixel.c: Minor fix + +2014-08-07 Hayaki Saito + + * config.h.in, configure, configure.ac, include/sixel.h, src/output.c, + src/tosixel.c: + + + * src/quant.c, src/tosixel.c: Minor fixes + +2014-08-06 Hayaki Saito + + * converters/img2sixel.c, include/sixel.h, src/quant.c: Allocate cache table + only once to improve performance + + * converters/img2sixel.c: Strip extra malloc + + * converters/img2sixel.c, include/sixel.h, src/quant.c: Minor fix of + applying palette + + * src/quant.c: Improve performance + +2014-08-04 Hayaki Saito + + * Makefile.am, Makefile.in: Minor fix + + * Makefile.am, Makefile.in: Update .travis.yml + + * Makefile.am: Remove needless workarounds for coveralls + +2014-08-03 Hayaki Saito + + * README.md: Update README + + * .travis.yml: Ignore segmentation fault of coveralls command + + * configure, configure.ac, converters/Makefile.am, converters/Makefile.in, + converters/img2sixel.c, include/sixel.h, src/Makefile.am, src/Makefile.in, + {converters => src}/quant.c: Move quantization APIs to library domain + + * .travis.yml: Update .travis.yml + + * ChangeLog: Add ChangeLog + + * .travis.yml: Update .travis.yml + + * README.md, converters/img2sixel.c, converters/sixel2png.c: Add --version + and --help option + + * configure, configure.ac, package.json: Bump version + + * Makefile.in, config.h.in, configure, configure.ac, converters/Makefile.in, + include/Makefile.in, src/Makefile.in, {src => wic}/wic.cc, + wic_install.reg.in => wic/wic_install.reg.in, wic_uninstall.reg.in => + wic/wic_uninstall.reg.in: Temporary drop wic integration + + * README.md: Update README + + * README.md, data/gnuplot.png, data/gs.png, data/libsixel-1.png, + data/q_libsixel.png, data/q_ppmtosixel.png, data/q_ppmtosixel2.png, + data/q_sixel.png, data/q_sixelconv.png, data/sixel.gif, data/zx81.png: + Update README + +2014-08-02 Hayaki Saito + + * config.h.in, configure, configure.ac: Bump version + + * README.md, converters/img2sixel.c: Add --macro-number option + +2014-08-01 Hayaki Saito -2016-12-18 Hayaki Saito + * converters/img2sixel.c: Minor fix - * README.md: Update README +2014-07-28 Hayaki Saito -2016-12-10 Hayaki Saito + * configure, configure.ac, package.json: Update version - * ChangeLog, Makefile.in: Update ChangeLog + * config.h.in, configure, configure.ac, converters/img2sixel.c: Improve time + precision of animation rendering -2016-12-08 Hayaki Saito + * configure, configure.ac, package.json: Update micro version - * Makefile.in, README.md, configure, configure.ac, package.json: - Update package version to 1.7.3 + * converters/img2sixel.c: Do not insert delay after drawing frames, but + before doing -2016-11-12 Turenar + * README.md: Update README - * src/decoder.c: fix wrong ref counting in sixel_decoder_decode +2014-07-27 Hayaki Saito -2016-10-11 Hayaki Saito + * converters/loader.c: Fix a double free error - * .travis.yml: travis: change --prefix path to /usr/local in OSX - build + * converters/loader.c: Fix an error when glib version < 2.36 -2016-10-08 Øyvind Kolås + * converters/loader.c: Revert "Fix static image processing with gdk-pixbuf2" + This reverts commit 5e5f2aed34dc1356c151513d5e31d9f14ce64c8e. - * include/sixel.h.in, src/encoder.c, src/quant.c, src/tosixel.c: add - positional/ordered dithers a_dither and x_dither These are - dithering methods arising from searching the paramater spaces for - simple 2d pattern / pseudo random number generators - optimizing a - fitness metric of both statistical measures and human perceptual - preference - see http://pippin.gimp.org/a_dither/ - these dithering - methods are similar to other AM/FM hybrid digital halftoning - methods. + * converters/loader.c: Fix static image processing with gdk-pixbuf2 -2016-10-10 Hayaki Saito +2014-07-26 Hayaki Saito - * src/tosixel.c: Small fix for wrong error message - * configure, configure.ac: Build with -Bsymbolic option if it's - available + * converters/loader.c: Fix build error -2016-10-01 Hayaki Saito + * converters/loader.c: Strip an unneeded malloc call - * src/sixel.5: manpage: fix wrong description of Xterm's ./configure - option (#51, Thanks to @nilqed) - * README.md: README: fix wrong description of Xterm's ./configure - option (#51, Thanks to @nilqed) "--enable-sixel" -> "--enable- - sixel-graphics" + * converters/loader.c: Fix a typo -2016-09-14 Hayaki Saito + * converters/img2sixel.c: Fix segfault of accessing delay value - * README.md: README: minor fixes - * README.md: Update README + * converters/img2sixel.c, converters/loader.c, converters/loader.h: Respect + delay by each frame -2016-09-12 Hayaki Saito + * configure, configure.ac, package.json: Bump version - * examples/drawing/main.c: Ensure 256 color sixel register is - available in drawing demo - * src/fromgif.c: Fix dangling pointer access in GIF loader - * configure, configure.ac, package.json: Update version to 1.7.2 + * src/tosixel.c: Reset parser state before parsing each frames -2016-09-10 Hayaki Saito +2014-07-25 Hayaki Saito - * src/tty.c: Suppress unused-label warning + * configure, configure.ac, package.json: Bump version -2016-09-09 Hayaki Saito + * src/tosixel.c: Always reset active palette no - * src/tty.c: Suppress warning on mingw environment +2014-07-24 Hayaki Saito -2016-09-08 Hayaki Saito + * src/output.c: Minor fix - * Makefile.in: Rebuild - * src/tty.c: Fix wrong error handling after calling select(2) - * src/tty.c: Additional inclusion of sys/time.h and sys/types.h for - traditional systems - * src/tty.c: Fix a typo: selet -> select + * LICENSE.images, LICENSE.stb: Minor update of LICENSE files -2016-08-11 Hayaki Saito + * configure, configure.ac, package.json: Bump version - * converters/img2sixel.c, converters/malloc_stub.c, - converters/malloc_stub.h, converters/sixel2png.c, - include/sixel.h.in, ruby/ext/libsixel/libsixel.c, src/allocator.c, - src/allocator.h, src/chunk.c, src/chunk.h, src/decoder.c, - src/decoder.h, src/dither.c, src/dither.h, src/encoder.h, - src/frame.c, src/frame.h, src/fromgif.c, src/fromgif.h, - src/frompnm.c, src/frompnm.h, src/fromsixel.c, src/loader.c, - src/loader.h, src/malloc_stub.c, src/malloc_stub.h, src/output.c, - src/output.h, src/pixelformat.c, src/pixelformat.h, src/quant.c, - src/quant.h, src/scale.c, src/status.c, src/status.h, - src/stb_image_write.c, src/tests.c, src/tosixel.c, src/tty.c, - src/tty.h, src/writer.c, src/writer.h: Correct file variables for - emacs +2014-07-23 Hayaki Saito -2016-09-14 Hayaki Saito + * converters/img2sixel.c: Minor fix - * README.md: README: minor fixes - * README.md: Update README + * converters/img2sixel.c: Minor fix -2016-09-12 Hayaki Saito + * configure, configure.ac, package.json: Bump version - * examples/drawing/main.c: Ensure 256 color sixel register is - available in drawing demo - * Makefile.in, src/fromgif.c: Fix dangling pointer access in GIF - loader - * configure, configure.ac, package.json: Update version to 1.7.2 + * converters/img2sixel.c: Strip a pair of malloc/free -2016-09-10 Hayaki Saito +2014-07-22 Hayaki Saito - * src/tty.c: Suppress unused-label warning + * converters/img2sixel.c: Emit DECDMAC sequence more faster (apply the patch + written by @arakiken) http://mlterm.sourceforge.net/img2sixel-fixhex.patch -2016-09-09 Hayaki Saito +2014-07-21 Hayaki Saito - * src/tty.c: Suppress warning on mingw environment + * configure, configure.ac, package.json: Bump version -2016-09-08 Hayaki Saito + * README.md, converters/img2sixel.1: Add some descriptions for new options + to documents - * Makefile.in: Rebuild - * src/tty.c: Fix wrong error handling after calling select(2) - * src/tty.c: Additional inclusion of sys/time.h and sys/types.h for - traditional systems - * src/tty.c: Fix a typo: selet -> select + * converters/img2sixel.c: Add --ignore-delay option -2016-08-23 Hayaki Saito + * converters/img2sixel.c, converters/loader.c, converters/stb_image.h: + Initial implementation for --use-macro option - * NEWS: Update README + * converters/img2sixel.c: Improve the color sampling method for makeing + adaptive palette -2016-08-22 Hayaki Saito +2014-07-19 Hayaki Saito - * README.md: Fix wrong description about xterm -ti option - * src/loader.c: loader: minor fix in load_jpeg() + * converters/img2sixel.c: Fix a stupid typo -2016-08-13 Hayaki Saito + * converters/shell-completion/zsh/_img2sixel: Add zsh completion candidates + for --loop-control option - * LICENSE.mesa, examples/opengl/Makefile.am, - examples/opengl/Makefile.in, examples/opengl/README.md, - examples/opengl/main.c: Add missing license terms for - examples/opengl/main.c I've forgotten some parts of it are derived - from glxpbdemo.c - * examples/opengl/main.c: OpenGL example: scroll more 1 line before - emit SIXELs - * examples/python/Makefile: Add a Makefile to python example - * examples/python/converter.py: PIL use Image.tobytes() insted of - deprecated Image.tostring() + * converters/shell-completion/bash/img2sixel: Add bash completion candidates + of --loop-control option -2016-08-12 Hayaki Saito + * configure, configure.ac, package.json: Bump version - * .travis.yml: travis: remove "brew install pkg-config" - * .travis.yml: travis: prevent duplicated installation of pkg-config - * .travis.yml: Correct brew package name: "libgdk-pixbuf" -> "gdk- - pixbuf" - * .travis.yml: travis: amend fix - * .travis.yml: travis: "brew update" before osx build - * .travis.yml: travis: use include: - * .travis.yml: travis: use build matrix + * converters/img2sixel.c: Fix the wrong option for getopt -2016-08-11 Hayaki Saito + * configure, configure.ac, package.json: Update version - * .travis.yml: test commit - * src/loader.c: Don't use GIF/PNM loader in stb_image.h - * converters/img2sixel.1: Update manpage of img2sixel - * converters/img2sixel.c, converters/malloc_stub.c, - converters/malloc_stub.h, converters/sixel2png.c, - include/sixel.h.in, ruby/ext/libsixel/libsixel.c, src/allocator.c, - src/allocator.h, src/chunk.c, src/chunk.h, src/decoder.c, - src/decoder.h, src/dither.c, src/dither.h, src/encoder.h, - src/frame.c, src/frame.h, src/fromgif.c, src/fromgif.h, - src/frompnm.c, src/frompnm.h, src/fromsixel.c, src/loader.c, - src/loader.h, src/malloc_stub.c, src/malloc_stub.h, src/output.c, - src/output.h, src/pixelformat.c, src/pixelformat.h, src/quant.c, - src/quant.h, src/scale.c, src/status.c, src/status.h, - src/stb_image_write.c, src/tests.c, src/tosixel.c, src/tty.c, - src/tty.h, src/writer.c, src/writer.h: Correct file variables for - emacs + * README.md, converters/img2sixel.1: Update document -2016-08-06 Hayaki Saito + * README.md, converters/img2sixel.1: Update img2sixel document - * Makefile.in, src/dither.c: Minor fixes - * include/sixel.h.in: Add more comments to sixel.h + * package.json: Rebuild -2016-08-03 Hayaki Saito + * converters/img2sixel.c: Enable delay only if delay value < 100 - * configure, configure.ac, converters/Makefile.in, package.json: - Rebuild - * converters/Makefile.am: Amend fix + * converters/loader.c: Reset BMP component value to 3 -2016-08-02 Hayaki Saito + * converters/loader.c: Fix build of gdk-pixbuf integration - * .gitignore: Update .gitignore for ignoreing libsixel-config - * configure, configure.ac, converters/Makefile.am, - converters/Makefile.in: Fix for cygport compilation + * config.h.in, configure, configure.ac, converters/img2sixel.c: Check + usleep(3) availabiliey -2016-07-04 Hayaki Saito + * converters/img2sixel.c: Fix a memory leak issue - * examples/drawing/README.md, examples/python/README.md: Update - README for examples - * README.md: Update README + * converters/img2sixel.c, converters/loader.c, converters/loader.h: Respect + "delay time" setting in GIF header -2016-06-16 Hayaki Saito + * converters/stb_image.h: Retrieve "delay time" from GIF header - * ChangeLog: Update ChangeLog + * converters/img2sixel.c, converters/loader.c, converters/loader.h: + Implement "loop control" option -2016-06-15 Hayaki Saito +2014-07-17 Hayaki Saito - * python/setup.py: Update Python interface version - * setup.py: Update Python interface version - * NEWS, README.md: Update README - * converters/Makefile.am, converters/Makefile.in: Add missing - '$(WINE)' in Makefile to prevent access violation error in - mingw-w64 build - * .travis.yml: display log with tail -n50 - * .travis.yml: travis: display whole error log + * converters/stb_image.h: Retrive loop count of GIF animation -2016-06-12 Hayaki Saito + * converters/img2sixel.c, converters/loader.c, converters/loader.h: Add new + CLI argument: --loop-control - * README.md: Minor fixes - * examples/drawing/README.md, examples/opengl/README.md: Minor fixes - * NEWS: Update NEWS - * configure, configure.ac, package.json: Update package version to - 1.7.0, libtool version to 1.6.0 - * ChangeLog: Update ChangeLog - * examples/python/README.md: Update README.md of python example - * examples/drawing/README.md: Update README.md of drawing example - * converters/Makefile.am, converters/Makefile.in: converters: replace - relative path "../" to $(top_srcdir) - * src/Makefile.am, src/Makefile.in: Add -no-undefined option to - LDFLAGS of libsixel + * config.h.in, configure, configure.ac, converters/img2sixel.c: Checks + availability of SIGINT/SIGTERM/SIGHUP -2016-06-07 Hayaki Saito + * converters/img2sixel.c: Handle SIGTERM instead of SIGKILL - * Makefile.in: Update ChangeLog - * ChangeLog, python/Makefile.in: Update ChangeLog + * Makefile.am, Makefile.in: Except libsixel.pc from CLEANFILES -2016-06-06 Hayaki Saito + * configure, configure.ac: Style improvement - * examples/python/README.md, examples/python/converter.py: Add python - example - * ChangeLog: Update ChangeLog - * src/fromsixel.c: Don't skip image finalization - * src/dither.c, src/encoder.c: Minor fixes - * src/encoder.c: Minor fixes - * ChangeLog: Update ChangeLog - * src/fromsixel.c: Change default allocation size of image object to - 1x1 - * src/fromsixel.c: Strip an unused case label - * src/fromsixel.c: Style fix - * src/fromsixel.c: Fix a conditional expression detecting sixel - characters + * config.h.in, configure, configure.ac, converters/img2sixel.c: Checks + signal(3) availability -2016-06-05 Hayaki Saito + * converters/img2sixel.c: Emit ST when we catch SIGINT/SIGHUP/SIGTERM - * ChangeLog: Update ChangeLog - * python/libsixel/__init__.py: Add - sixel_dither_get_palette()/sixel_dither_set_palette() - * libsixel/__init__.py: Add - sixel_dither_get_palette()/sixel_dither_set_palette() - * src/dither.c: Set pixelformat in sixel_dither_get() + * configure, configure.ac: Bump version -2016-05-30 Hayaki Saito +2014-07-17 saitoha - * libsixel/__init__.py: Add python interfaces for dither object - * python/libsixel/__init__.py: Add python interfaces for dither - object - * src/dither.c, src/tosixel.c: Fix for loading G1/G2/G4 pixel format - * include/sixel.h.in, src/encoder.c: Drop - sixel_encoder_encode_bytes_to_output() - * NEWS: Update NEWS + * converters/loader.c: Fix a segmentation error when loading GIF with + setting requested component = 4 -2016-05-23 Hayaki Saito +2014-07-16 Hayaki Saito - * python/libsixel/__init__.py: Add sixel_output_* functions to python - interface - * libsixel/__init__.py: Add sixel_output_* functions to python - interface + * converters/loader.c: Minor fix -2016-05-22 Hayaki Saito + * converters/loader.c: Don't load GIF with GD backend - * src/encoder.c, src/fromsixel.c: Minor fixes + * converters/loader.c: Load animation GIF with gdk-pixbuf2 -2016-05-11 Hayaki Saito + * converters/img2sixel.c: Move to (1, 1) if loaded image is an animation + file - * ChangeLog: Update ChangeLog - * README.md: Update README + * converters/loader.c: Prevent overrun -2016-05-10 Hayaki Saito + * converters/img2sixel.c: Implement multiple frame output - * src/fromsixel.c: Style fix - * src/fromsixel.c: Fix wrong DCS parameter parsing - * src/fromsixel.c: Add missing default case for switching by parser - state + * converters/loader.c: Minor fix -2016-05-08 Hayaki Saito + * converters/loader.c: Do GIF specific processing - * src/fromsixel.c: decoder: parse SIXEL without forward tracking to - prevent access violation + * converters/loader.c: Change the signature of load_with_builtin -2016-05-07 Hayaki Saito + * converters/loader.c: Add GIF detector function - * converters/img2sixel.1: Fix typoed email address + * converters/loader.c: Add the chunk initializer function -2016-05-05 Hayaki Saito + * converters/img2sixel.c, converters/loader.c, converters/loader.h: Change + the signature of load_image_file - * src/fromsixel.c: Suppress a sign-conversion warning - * src/fromsixel.c: Introduce parser_context_t structure for internal - use in sixel_decode_raw() - * src/fromsixel.c: Remove external linkage of image_buffer_* - functions - * src/fromsixel.c: Tune buffer resize operations - * src/Makefile.in, src/fromsixel.c: Introduce image_buffer_t - structure for internal use in sixel_decode_raw() + * converters/Makefile.am, converters/Makefile.in, converters/loader.c: + Include stb_image.h into loader.c -2016-05-04 Hayaki Saito +2014-07-09 Hayaki Saito - * src/encoder.c: Change function name: sixel_encoder_without_macro to - sixel_encoder_output_without_macro + * package.json: Rebuild -2016-05-03 Hayaki Saito + * configure, configure.ac: Update version - * src/tosixel.c: Minor fix - * examples/drawing/Makefile, examples/drawing/main.c: drawing - example: clean up - * examples/drawing/README.md: Update README - * examples/drawing/Makefile, examples/drawing/main.c: drawing - example: fix for linux - * examples/drawing/main.c, src/Makefile.in: drawing example: scroll - on demand before drawing canvas + * package.json: Minor fix -2016-05-02 Hayaki Saito + * package.json: Add package.json - * examples/drawing/Makefile, examples/drawing/README.md, - examples/drawing/main.c, examples/opengl/README.md: Add drawing - example - * libsixel/__init__.py: Process list-based palette correctly in - encode.encode_bytes() - * python/libsixel/__init__.py: Process list-based palette correctly - in encode.encode_bytes() + * libsixel.pc.in: Updaate the pkg-config file -2016-05-01 Hayaki Saito + * Makefile.in, configure, converters/Makefile.in, include/Makefile.in, + src/Makefile.in: Rebuild build files - * libsixel/__init__.py: Accept string buffer as 1st argument of - encoder.encode_bytes() - * python/libsixel/__init__.py: Accept string buffer as 1st argument - of encoder.encode_bytes() - * python/Makefile.am, python/Makefile.in, src/encoder.c: Suppress a - sign-conversion warning on OSX - * Makefile.am, Makefile.in: Suppress a sign-conversion warning on OSX - * libsixel/__init__.py, libsixel/encoder.py: Add encoder.encode_bytes - method introduced from libsixel 1.6 - * python/libsixel/__init__.py, python/libsixel/encoder.py: Add - encoder.encode_bytes method introduced from libsixel 1.6 - * python/libsixel/encoder.py: Fix a typo pointed out by @ignisan - * libsixel/encoder.py: Fix a typo pointed out by @ignisan + * configure.ac, package.json.in: clib's package.json integration -2016-05-01 vagrant + * configure.ac: Add new macro PACKAGE_DESCRIPTION - * src/Makefile.in, src/chunk.c, src/decoder.c, src/encoder.c, - src/fromgif.c, src/loader.c, src/quant.c, src/tty.c, src/writer.c: - Suppress sign-conversion warnings in MinGW environment - * src/Makefile.am, src/Makefile.in, src/allocator.c, - src/malloc_stub.c, src/malloc_stub.h: Add missing - rpl_malloc()/rpl_free() function + * configure, configure.ac: Bump version -2016-04-30 Hayaki Saito +2014-07-01 Hayaki Saito - * Makefile.in, configure, configure.ac, src/quant.c: Suppress sign- - conversion warnings in MinGW environment - * src/writer.c: Suppress -Wsign-conversion in 3rd argument of - fwrite() - * src/chunk.c: Avoid a warning when using FD_SET() with -Wsign- - conversion and _FORTIFY_SOURCE - * src/pixelformat.c: Suppress -Wsign-conversion in 3rd argument of - memcpy() - * src/frame.c: Suppress -Wsign-conversion in 3rd argument of - memmove() - * src/quant.c: Minor fix - * src/dither.c, src/quant.c: Suppress -Wsign-conversion in 2rd - argument of sixel_allocator_calloc() - * src/dither.c, src/encoder.c, src/fromgif.c, src/frompnm.c, - src/fromsixel.c, src/loader.c, src/quant.c, src/tosixel.c: Suppress - -Wsign-conversion in 3rd argument of memcpy()/memset() + * src/sixel.5: Minor fix of sixel(5) manpage -2016-04-29 Hayaki Saito +2014-06-27 Hayaki Saito - * Makefile.in, aclocal.m4, config.h.in, configure, configure.ac, - include/sixel.h.in, src/chunk.c, src/decoder.c, src/dither.c, - src/encoder.c, src/frame.c, src/fromgif.c, src/frompnm.c, - src/fromsixel.c, src/loader.c, src/quant.c, src/quant.h, - src/scale.c, src/stb_image_write.c, src/tosixel.c, src/tty.c, - src/writer.c: Add -Wsign-conversion compile flags and fix implicit - type sign-conversions + * configure: Rebuild configure script -2016-04-20 Hayaki Saito + * configure.ac: Bump version - * LICENSE.sixel: Update README + * converters/stb_image.h: Update stb_image.h version to 1.41 -2016-04-03 Hayaki Saito +2014-06-21 Hayaki Saito - * README.md: Update README - * src/stb_image_write.h: Update stb_image_write to v1.02 - * README.md, converters/img2sixel.1: Update manpage and README - * src/stb_image.h: Update stb_image to v2.12 + * src/sixel.5: Update the manpage of sixel(5) -2016-03-26 Hayaki Saito + * LICENSE.images: Update license notation file for test images - * README.md: Update README - * README.md: Update README - * README.md: Update README - * README.md: Update README +2014-06-20 Hayaki Saito -2016-03-25 Hayaki Saito + * LICENSE.stb, LICENSE.stbi, LICENSE.stbiw: Update some LICENSE files - * ChangeLog: Update ChangeLog - * src/fromgif.c: Fix broken -S option - * README.md: Add a notaion for avoiding xterm's color register - limitation (suggested by @ismail in #47) - * src/stb_image_write.c: Ignore -Wdouble-promotion warnings during - including stb_image_write.h + * configure, configure.ac: Fix a typo -2016-03-24 Hayaki Saito + * configure, configure.ac: Fix linker error: gdImageCreateFromTiffPtr not + found in ArchLinux - * src/encoder.c: Don't reset encoder->pixel{width,height} in clipping - function - * src/encoder.c: Don't reset encoder->pixel{width,height} in scaling - function - * src/fromgif.c: Fix broken resize feature for animated GIF + * configure, configure.ac: Bump version -2016-03-23 Hayaki Saito +2014-06-19 Hayaki Saito - * include/sixel.h.in: Suppress a warning(-Wundef) when including - sixel.h + * configure, configure.ac: Do PKG_PROG_PKG_CONFIG out of if-clause -2016-03-09 Hayaki Saito + * converters/stb_image.h: Revert "Apply the fix for 1bpp PNG (adb44619) + again" This reverts commit 5229d3d8f0139f407be79ea427e5e4f45dc23d84. - * src/tosixel.c: cleanup + * converters/stb_image.h: Fix a merge misstake -2016-03-07 Hayaki Saito + * configure, configure.ac: Bump version - * configure, configure.ac: update ABI version + * converters/stb_image.h: Apply the fix for 1bpp PNG (adb44619) again -2016-03-06 Hayaki Saito +2014-06-18 Hayaki Saito - * configure, configure.ac, package.json: Update ABI version - * include/sixel.h.in, src/frame.c, src/pixelformat.c, src/writer.c: - Add support for new pixelformat ABGR/BGRA - * NEWS: Update NEWS - * ChangeLog: Update ChangeLog - * ChangeLog: Update ChangeLog - * Makefile.in, README.md, converters/img2sixel.1, converters/shell- - completion/bash/img2sixel, converters/shell- - completion/zsh/_img2sixel: Add -R option stuff to README, manpage, - shell-completion + * configure, configure.ac: Bump version -2016-03-05 Hayaki Saito + * Makefile.am, Makefile.in: Fix travis build - * README.md, converters/img2sixel.1, converters/sixel2png.1: Update - descriptions in README and manpage for stbi/stbiw - * converters/img2sixel.1, converters/sixel2png.1: Update contributors - section of manpages + * config.guess, config.h.in, config.sub, configure, ltmain.sh, + m4/libtool.m4, m4/ltoptions.m4, m4/ltversion.m4: Update libtool version to + 2.4.2 -2016-03-03 Hayaki Saito + * configure, configure.ac: Fix wrong AC_ARG_WITH option parsing, reported by + @ttdoda - * Makefile.in, configure, configure.ac, package.json: Update ABI - version - * converters/img2sixel.c, include/sixel.h.in, src/encoder.c, - src/encoder.h: New option -R, --gri-limit - * Makefile.in, include/sixel.h.in, src/output.c: New API: - sixel_output_set_gri_arg_limit() - * Makefile.in, configure, configure.ac, package.json: Update ABI - version - * include/sixel.h.in, src/encoder.c, src/loader.c, src/tosixel.c: Add - new API: sixel_encoder_encode_bytes + * Makefile.am, Makefile.in: Fix a typo in valgrind target -2016-02-29 Hayaki Saito +2014-06-16 Hayaki Saito - * README.md: Update README - * README.md: Add @hattya to contributers list + * Makefile.am, Makefile.in: Fix travis build -2016-02-27 Hayaki Saito +2014-06-15 Hayaki Saito - * Makefile.in, src/output.c, src/output.h, src/quant.c, src/quant.h, - src/tosixel.c: Introduce DECGRI('!') compatibility flag + * configure: Rebuild configure script -2016-02-27 Akinori Hattori + * configure.ac: Minor fix - * configure, configure.ac: Fix check for gdImageCreateFromPngPtr - availability + * Makefile.am, Makefile.in: Minor fix -2016-02-22 Hayaki Saito + * Makefile.in, configure, configure.ac, include/Makefile.in, + src/Makefile.in: Add new configure option, --with-zshcompletiondir - * src/tty.c: Fix compile error on MinGW environment - * src/Makefile.am, src/Makefile.in, src/encoder.c, src/tty.c, - src/tty.h: Add tty.c and tty.h - * converters/Makefile.am, converters/Makefile.in, include/sixel.h.in, - src/encoder.c, src/encoder.h: Solve encoder option confliction - between -m/-e/-I/-b + * converters/Makefile.am, converters/Makefile.in: Add a zsh completion file + to install target -2016-02-21 Hayaki Saito + * converters/shell-completion/zsh/_img2sixel: Add zsh completion file for + img2sixel - * src/allocator.c, src/chunk.c, src/decoder.c: Add more tests - * src/encoder.c: Minor fixes in encoder.c - * src/decoder.c: Add more tests for decoder.c - * src/decoder.c: Fix bad initialization check of decoder object - * Makefile.in, src/decoder.c: Add more tests for decoder.c - * include/sixel.h.in, src/decoder.c: Minor fixes for decoder.c - * src/decoder.c, src/decoder.h, src/tests.c: Add tests for decoder.c - * include/sixel.h.in, src/allocator.c: Add an allocation test with - bad allocator - * src/decoder.c: Fix bad initalization problem of decoder object + * converters/stb_image_write.h: Strip trailing spaces -2016-02-20 Hayaki Saito + * converters/sixel2png.c, converters/stb_image_write.h: Update + stb_image_write version to 0.94 - * include/sixel.h.in, src/allocator.c: Publish bad allocators to test - functions - * src/stb_image_write.c: Ignore strict-overflow warnings in - stb_image_write.h - * src/stb_image_write.c, src/writer.c: Amend fix of 39042435e - * src/writer.c: Suppress GCC warnings against stb_image_write.h - * src/loader.c: Suppress warnings caused by shadowing global - declarations - * src/writer.c: Suppress a warning caused by missing default case in - switch statement - * src/encoder.c, src/scale.c: Suppress warnings caused by shadowing - global declarations - * src/fromgif.c: Suppress a warning caused by missing default case in - switch statement - * src/frompnm.c: Suppress warnings caused by shadowing global - declarations - * config.h.in, configure, configure.ac, src/loader.c: Amend fix for - suppressing GCC warnings against stb_image.h - * Makefile.in, config.h.in, configure, configure.ac, src/encoder.c, - src/loader.c: Suppress GCC warnings against stb_image.h - * src/quant.c: Suppress warnings caused by shadowing global - declarations - * src/fromsixel.c: Suppress a warning caused by missing default case - in switch statement - * include/sixel.h.in, src/decoder.c, src/encoder.c, src/frame.c, - src/output.c: Add some comments to functions - * README.md: Update README - * libsixel/__init__.py, libsixel/decoder.py, libsixel/encoder.py: - Update copyright notice - * LICENSE, converters/img2sixel.c, converters/malloc_stub.c, - converters/malloc_stub.h, converters/sixel2png.c, - python/libsixel/__init__.py, python/libsixel/decoder.py, - python/libsixel/encoder.py, src/allocator.c, src/allocator.h, - src/chunk.c, src/chunk.h, src/decoder.c, src/decoder.h, - src/dither.c, src/dither.h, src/encoder.c, src/encoder.h, - src/frame.c, src/frame.h, src/fromgif.c, src/fromgif.h, - src/frompnm.c, src/frompnm.h, src/loader.c, src/loader.h, - src/output.c, src/output.h, src/pixelformat.c, src/pixelformat.h, - src/quant.c, src/quant.h, src/scale.c, src/status.c, src/status.h, - src/stb_image_write.c, src/tests.c, src/writer.c, src/writer.h: - Update copyright notice - * src/encoder.c: Minor improvements for encoder.c - * Makefile.in, configure, configure.ac: Add some gcc/clang warning - option flags to CFLAGS - * converters/img2sixel.c: Fix a overlength-strings warnings - * src/loader.c: Fix for a warning with gcc -Wpedantic option - * src/decoder.c, src/encoder.c: Fix warnings of declaration shadows a - local variable - * LICENSE.stb: Update LICENSE file of stb project - * src/stb_image_write.h: Upgrade stb_image_write.h to v1.01 - * src/stb_image.h: Upgrade stb_image to 2.10 - * src/quant.c: Fix a gnu-folding-constant warning - * src/quant.c: Fix warnings of declaration shadows a local variable + * configure, configure.ac: Update version -2016-02-17 Hayaki Saito + * Makefile.in, config.guess, config.h.in, config.sub, configure, + configure.ac, include/Makefile.in, ltmain.sh, m4/libtool.m4, + m4/ltoptions.m4, m4/ltversion.m4, src/Makefile.in: Add new configure option, + --with-bashcompletiondir - * README.md: README Minor fixes + * converters/Makefile.am, converters/Makefile.in: Add bash-completion file + to install target -2015-09-05 Hayaki Saito + * converters/shell-completion/bash/img2sixel: Add bash-completion definition + file - * ChangeLog: Update ChangeLog - * configure, configure.ac, package.json: Update version + * configure, configure.ac: Update version -2015-09-04 Hayaki Saito + * images/snake.gif: Add a test GIF image - * configure, configure.ac: Let it build without python - * tools/libsixel-config.in: Add --datarootdir option to libsixel- - config + * converters/stb_image.h: Do be sure to rewind in bitmap test, to fix broken + GIF loader -2015-08-30 Hayaki Saito +2014-06-14 Hayaki Saito - * LICENSE, README.rst, setup.py: Merge commit - '6a63778c44312484bdef9b3a3d394272f8bc98d3' - * LICENSE, README.rst, setup.py: Include license file - * LICENSE, package.xml, package2.xml, php_sixel.h, sixel.c, - sixel.xml: Change the license to MIT + * README.md: Mention yaft, as a sixel-featured terminal -2015-08-26 Hayaki Saito +2014-06-11 Hayaki Saito - * setup.py: Update version - * README.rst, libsixel/__init__.py, libsixel/decoder.py, - libsixel/encoder.py, setup.py: Merge commit - '99bac207a2032e77717e376b17aec29fbac46727' - * libsixel/__init__.py, libsixel/decoder.py, libsixel/encoder.py: - Support various python versions, 2.5 to 3.4 - * README.rst: Update README - * libsixel/decoder.py: Fix inconsistent use of tabs and spaces in - indentation + * configure: Rebuild configure script -2015-08-22 Hayaki Saito + * configure.ac: Bump version - * ChangeLog, configure, configure.ac, package.json: Update version - * NEWS: Update NEWS - * sixel.c, sixel.xml: Use sixel_encoder_new() instead of - sixel_encoder_create() - * README.md: Update README + * images/snake.tga, images/snake.tiff: Add TGA/TIFF test images -2015-08-08 Hayaki Saito + * images/snake.bmp: Add a bmp v5 test image - * MANIFEST: Update MANIFEST - * lib/Image/LibSIXEL.xs: Use sixel_encoder_new/sixel_decoder_new - * builder/MyBuilder.pm, minil.toml: Add custom builder + * converters/stb_image.h: Support to load bitmap v5 header -2015-08-07 Hayaki Saito + * README.md: Update coverage status badge - * ext/libsixel/libsixel.c, lib/libsixel/version.rb: Use - sixel_encoder_new/sixel_decoder_new + * Makefile.am, Makefile.in, converters/Makefile.am, converters/Makefile.in: + Update tests -2015-08-04 Hayaki Saito + * images/snake.pnm: Add new test image snake.pnm - * src/chunk.c, src/decoder.c, src/writer.c: Use fixed error message - in some case to prevent buffer overflow - * src/decoder.c, src/encoder.c, src/fromgif.c, src/frompnm.c, - src/fromsixel.c, src/loader.c, src/output.c, src/tosixel.c: Set - additional messages when bad allocation error occured + * converters/Makefile.am, converters/Makefile.in: Minor fixes -2015-08-03 Hayaki Saito + * configure: Rebuild configure script - * libsixel/decoder.py, libsixel/encoder.py, setup.py: Update version - * src/loader.c: Suppress warning for using deprecated function - * libsixel/__init__.py, libsixel/decoder.py, libsixel/encoder.py: - Merge commit 'ed4631fe8bcd0f777eb012a0c1661da7f31d6a35' into - develop - * libsixel/__init__.py, libsixel/decoder.py, libsixel/encoder.py: Add - some wrapper functions and constants + * Makefile.am, Makefile.in: Minor fix -2015-08-02 Hayaki Saito + * Makefile.am, Makefile.in: Update makefile - * README.md, include/sixel.h.in: Update README - * README.md, include/sixel.h.in, src/loader.c: Make sixel_decode() as - deprecated - * include/sixel.h.in, src/encoder.c, src/frame.c: Make - sixel_frame_create() as deprecated - * converters/img2sixel.c, include/sixel.h.in, src/dither.c, - src/encoder.c: Make sixel_dither_create() as deprecated - * include/sixel.h.in, src/dither.c, src/encoder.c: Mark - sixel_dither_create() function as deprecated - * include/sixel.h.in, src/frame.c, src/scale.c: Use allocator object - in scale.c - * include/sixel.h.in, src/encoder.c, src/output.c, src/output.h: Use - allocator object in output.c - * src/tosixel.c: Use allocator object in tosixel.c - * include/sixel.h.in, src/decoder.c, src/fromsixel.c, src/writer.c: - Use allocator object in writer.c - * src/fromsixel.c: Use allocator object in fromsixel.c - * src/chunk.c: Suppress a sign-compare warnings - * src/frompnm.c, src/frompnm.h, src/loader.c: Use allocator object in - frompnm.c - * src/loader.c: Use allocator object in STBI loader - * src/dither.c, src/quant.c, src/quant.h: Use allocator object in - quant.c - * src/allocator.c, src/dither.c: Amend fix for miss-operation of - reference counter - * src/fromgif.c, src/fromgif.h, src/loader.c: Use allocator object in - fromgif.c - * include/sixel.h.in, src/allocator.c, src/allocator.h, src/chunk.c, - src/decoder.c, src/dither.c, src/dither.h, src/encoder.c, - src/frame.c, src/status.c, src/tests.c: Add new allocator API: - sixel_allocator_calloc() + * Makefile.am, Makefile.in: Allow "possibly lost" and "still reachable" on + checking leaks with valgrind -2015-07-29 Hayaki Saito + * Makefile.am: Add --show-leachable=no option to valgrind - * configure, configure.ac, src/chunk.c, src/loader.c: Add more - handlers for libcurl errors - * src/chunk.c, src/decoder.c, src/encoder.c: Fix leaks and - segmentation faults - * src/chunk.c: Fix leaks around chunk object initialization - * include/sixel.h.in, src/decoder.c, src/frame.c, src/frame.h: Use - allocator in frame.c - * src/loader.c: Use allocator in loader.c + * converters/loader.c: Strip surplus g_object_ref/g_object_unref pair -2015-07-28 Hayaki Saito +2014-06-11 saitoha - * src/chunk.c: Minor fixes around chunk.c - * converters/img2sixel.c: Use sixel_encoder_new() in img2sixel - * converters/sixel2png.c, include/sixel.h.in, src/decoder.c, - src/decoder.h: Introduce sixel_decoder_new(), the constructor of - decoder with custom allocator + * converters/quant.c: Fix invalid memory access warnings reported by + valgrind -2015-07-25 Hayaki Saito +2014-06-10 Hayaki Saito - * src/encoder.c: Additional test for encoder.c - * src/encoder.c: Minor fixes + * Makefile.am, Makefile.in: Strip garbage output from valgrind.log -2015-07-23 Hayaki Saito + * converters/loader.c: Fix a typo - * include/sixel.h.in, src/allocator.c, src/encoder.c: Fix memory - access violation issue + * converters/loader.c: Handle the error if malloc is failed in load_with_gd -2015-07-22 Hayaki Saito + * .travis.yml: Update .travis.yml - * include/sixel.h.in, src/allocator.c, src/encoder.c: Add APIs for - calling custom allocator functions - * include/sixel.h.in, src/allocator.c, src/allocator.h, - src/encoder.c, src/tests.c: Introduce reference counter to - allocator object + * converters/loader.c: Dereference gdk-pixbuf loader after using it -2015-07-21 Hayaki Saito + * .travis.yml: Amend fix of .travis.yml - * Makefile.in, config.h.in, configure, configure.ac, - converters/img2sixel.c, include/sixel.h.in, src/Makefile.am, - src/Makefile.in, src/allocator.c, src/allocator.h, src/chunk.c, - src/chunk.h, src/encoder.c, src/encoder.h, src/loader.c: Introduce - allocator object + * .travis.yml: Update .travis.yml cat valgrind.log if valgrind test fails -2015-07-20 Hayaki Saito + * .travis.yml: Use libgd2-xpm-dev package instead of libgd2-devel - * src/tests.c: Enable tests for chunk.c - * include/sixel.h.in, src/decoder.c, src/decoder.h, src/encoder.c, - src/encoder.h, src/frame.c, src/frame.h, src/tests.c: Minor fixes - * include/sixel.h.in, src/dither.h, src/fromsixel.c, src/output.c, - src/output.h, src/tosixel.c: Minor fixes - * src/chunk.c, src/chunk.h, src/loader.c, src/tests.c: Suppress build - warning: implicit-function-declaration - * converters/Makefile.am, converters/Makefile.in: Fix travis build - again + * .travis.yml: Install libgd-dev when --with-gd option is enabled -2015-07-19 Hayaki Saito + * converters/loader.c: Use GLIB_CHECK_VERSION to detect that g_type_init is + deprecated - * converters/Makefile.am, converters/Makefile.in: Try to fix broken - travis build - * LICENSE.stb: Add license notice of src/fromgif.c - * converters/img2sixel.1: Add documentation for the environment - variables $SIXEL_COLORS - * src/encoder.c: Introduce SIXEL_COLORS environment (for Issue #27) - * converters/img2sixel.c: Minor fix + * converters/loader.c: Call g_type_init() before using gdk-pixbuf -2015-07-18 Hayaki Saito + * aclocal.m4, configure: Update configure script - * src/encoder.c: Ammend fixes - * src/encoder.c: Minor fixes - * src/encoder.c: Minor fixes for encoder.c + * configure.ac: Bump version -2015-07-14 Hayaki Saito + * Makefile.in, configure, configure.ac, converters/Makefile.in, + include/Makefile.in, src/Makefile.in: Fix a configuration bug where + gdk-pixbuf flags are not set - * src/dither.c, src/encoder.c, src/frame.c, src/fromgif.c, - src/fromgif.h, src/frompnm.c, src/frompnm.h, src/fromsixel.c, - src/loader.c, src/loader.h, src/output.c, src/output.h, - src/quant.c, src/scale.c, src/status.h, src/tosixel.c: Minor fixes + * .travis.yml: Update .travis.yml -2015-07-13 Hayaki Saito + * .travis.yml: Update .travis.yml - * src/loader.c: Add missing stdio.h inclusion to loader.c - * src/Makefile.am, src/Makefile.in, src/chunk.c, src/chunk.h, - src/frame.h, src/loader.c: Add chunk.c/chunk.h - * src/loader.c: Minor fixes around sixel_chunk_t +2014-06-10 saitoha -2015-07-12 Hayaki Saito + * .travis.yml: Install pkg-config when configuring with gdk-pixbuf - * src/writer.c: Minor fixes - * README.md, converters/img2sixel.1, converters/img2sixel.c: Add - documentation of the environment variables $SIXEL_BGCOLOR - * src/decoder.c: Add missing header io.h to decoder.c - * converters/sixel2png.c: Add missing header io.h to sixel2png.c - * ChangeLog: Update ChangeLog - * Makefile.in, src/Makefile.in: Rebuild - * config.h.in, configure, configure.ac, src/loader.c: Add missing - header: _setmode() requires inclusion - * config.h.in, configure, configure.ac, converters/loader.c: Add - missing header: _setmode() requires inclusion - * Makefile.in, configure, configure.ac, package.json: Update version - * ChangeLog: Update ChangeLog - * Makefile.in, configure, configure.ac: Hotfix for broken - libcurl/libpng/libjpeg detection - * src/encoder.c: Build fix for MinGW environment - * src/encoder.c: Add error handling for sixel_write_callback() and - sprintf() +2014-06-10 Hayaki Saito -2015-07-11 Hayaki Saito + * .travis.yml: Update .travis.yml - * src/frame.c, src/loader.c: Minor fixes - * src/fromgif.c: Fix broken GIF loader +2014-06-10 saitoha -2015-07-05 Hayaki Saito + * .travis.yml, Makefile.am, Makefile.in, aclocal.m4, configure, + src/tosixel.c: Add --disable-shared configure option with gcov target - * src/fromgif.c: Minor fixes - * src/loader.c: Suppress gcc warnings - * src/loader.c: Don't test memory_write() function if libcurl - integration is not enabled - * src/fromgif.c: Add missing "config.h" inclusion to fromgif.c - * src/encoder.c, src/fromgif.c, src/fromgif.h, src/quant.c, - src/tests.c: Minor fixes - * include/sixel.h.in, src/encoder.c: Add more tests for encoder.c - * src/encoder.c: Add more tests for encoder.c - * include/sixel.h.in, src/encoder.c, src/frame.h: Add tests for - encoder.c - * include/sixel.h.in, src/Makefile.am, src/decoder.h, src/encoder.h, - src/loader.c, src/loader.h, src/tests.c: Add initial tests for - loader.c - * Makefile.in, config.h.in, configure, configure.ac, src/frame.c, - src/loader.c, src/writer.c: Checks availability of #pragma GCC - diagnostic ignored "-Wtypedef-redefinition" - * ChangeLog: Update ChangeLog - * converters/img2sixel.c, examples/opengl/main.c, src/encoder.c: - Minor fixes +2014-06-09 Hayaki Saito -2015-07-01 Hayaki Saito + * converters/stb_image.h: Parse application extension block when loading GIF - * src/encoder.c: Fix a bug of returning wrong status in - prepare_builtin_palette() +2014-06-10 Hayaki Saito -2015-06-30 Hayaki Saito + * Makefile.am, Makefile.in: Remove valgrind.log in clean target - * src/fromgif.c, src/loader.c, src/quant.c: Minor improvements + * .travis.yml: Install libyaml-dev in .travis.yml -2015-06-29 Hayaki Saito + * .travis.yml, Makefile.am, Makefile.in: Add valgrind target to Makefile - * src/encoder.c: Use sixel_helper_set_additional_message() instead of - using stderr printing - * src/decoder.c, src/dither.c, src/encoder.c, src/loader.c: Minor - improvements + * Makefile.am: Update makefile -2015-06-28 Hayaki Saito + * Makefile.in, converters/Makefile.in: Minor fixes - * src/encoder.c, src/frame.c, src/loader.c, src/pixelformat.c: Minor - improvements - * src/writer.c: Add more tests for status.c - * src/status.c: Strip extra free() call - * src/status.c: Strip extra '"' character - * src/status.c: Update tests - * src/writer.c: Add more error handling and tests to writer.c - * src/status.c: Update tests in status.c - * src/status.c, src/writer.c: Update tests - * src/Makefile.am, src/Makefile.in, src/status.c, src/status.h, - src/tests.c, src/writer.c: Add more tests - * ChangeLog: Update ChangeLog - * src/loader.c: Fix segmentation error when set -e option with - loading 1/2/4 bpp grayscale image - * converters/Makefile.am, converters/Makefile.in: Add tests for -B - option - * Makefile.in, config.h.in, configure, configure.ac, src/tosixel.c: - Check ldiv() availability with ./configure script + * .travis.yml: Install PyYAML when running coveralls on travis -2015-06-27 Hayaki Saito + * .gitignore: Update gitignore - * src/encoder.c: Ammend fix - * src/encoder.c: Set pixelformat to dither context when input format - is grayscale - * src/loader.c, src/status.c: Fix regression of returning invalid - status when using libjpeg - * src/tosixel.c: Use builtin functions instead of sprintf() + * Makefile.am, converters/Makefile.am: Add some CLEANFILES -2015-06-26 Hayaki Saito + * Makefile.am: Minor fix - * META.json, META.yml: Update META.json/META.yml - * Build.PL: Update Build.PL for linking to libsixel - * lib/Image/LibSIXEL.xs: Remove debugging code - * lib/Image/LibSIXEL.xs: Remove include derective "ppport.h" - * Build.PL, Changes, META.json, README.md, minil.toml: Add missing - files: minil.toml and Changes - * perl/Build.PL, perl/MANIFEST, perl/META.yml, perl/README.md, - perl/lib/Image/{Sixel.pm => LibSIXEL.pm}, perl/lib/Image/{Sixel.xs - => LibSIXEL.xs}, perl/lib/Image/LibSIXEL/Decoder.pm, - perl/lib/Image/LibSIXEL/Encoder.pm, - perl/lib/Image/Sixel/Decoder.pm, perl/lib/Image/Sixel/Encoder.pm, - perl/t/{sixel.t => libsixel.t}: perl: change module name: - Image::Sixel -> Image::LibSIXEL - * Build.PL, MANIFEST, META.yml, README.md, lib/Image/{Sixel.pm => - LibSIXEL.pm}, lib/Image/{Sixel.xs => LibSIXEL.xs}, - lib/Image/LibSIXEL/Decoder.pm, lib/Image/LibSIXEL/Encoder.pm, - lib/Image/Sixel/Decoder.pm, lib/Image/Sixel/Encoder.pm, t/{sixel.t - => libsixel.t}: perl: change module name: Image::Sixel -> - Image::LibSIXEL + * Makefile.am, Makefile.in: Add workaround for a cpp-coveralls problem -2015-06-25 Hayaki Saito + * converters/.coveralls.yml => .coveralls.yml, Makefile.am, Makefile.in, + converters/Makefile.am, converters/Makefile.in, src/Makefile.am: Fix travis + build - * php/README, php/sixel/.cvsignore, php/sixel/CREDITS, - php/sixel/EXPERIMENTAL, php/sixel/README, php/sixel/config.m4, - php/sixel/config.w32, php/sixel/manual/file-entities.ent, - php/sixel/manual/functions.xml, php/sixel/manual/manual.xml.in, - php/sixel/manual/sixel/configure.xml, - php/sixel/manual/sixel/constants.xml, - php/sixel/manual/sixel/ini.xml, - php/sixel/manual/sixel/reference.xml, php/sixel/package.xml, - php/sixel/package2.xml, php/sixel/php_sixel.h, php/sixel/sixel.c, - php/sixel/sixel.dsp, php/sixel/sixel.xml, - php/sixel/tests/SixelEncoder____construct.phpt, - php/sixel/tests/SixelEncoder____destruct.phpt, - php/sixel/tests/SixelEncoder__encode.phpt, - php/sixel/tests/SixelEncoder__setopt.phpt: Remove php extension - directory - * .gitmodules, ruby: Remove submodule directory + * .travis.yml: Update .travis.yml -2015-06-23 Hayaki Saito + * .travis.yml: Update .travis.yml: add --enable-gcov build target - * include/sixel.h.in: core: Add SIXEL_OPTFLAG_xxx definitions - * .gitignore, CREDITS, EXPERIMENTAL, LICENSE, README, config.m4, - config.w32, manual/Makefile, manual/file-entities.ent, - manual/functions.xml, manual/manual.xml.in, - manual/sixel/configure.xml, manual/sixel/constants.xml, - manual/sixel/ini.xml, manual/sixel/reference.xml, package.xml, - package2.xml, php_sixel.h, sixel.c, sixel.dsp, sixel.xml, - tests/SixelEncoder____construct.phpt, - tests/SixelEncoder____destruct.phpt, - tests/SixelEncoder__encode.phpt, tests/SixelEncoder__setopt.phpt: - Initial commit - * NEWS: Update NEWS - * README.md: Update README - * .gitmodules, ruby: Add dubmodule libsixel-ruby + * README.md: Add coveralls badge to README -2015-06-22 Hayaki Saito + * Makefile.am, Makefile.in, converters/Makefile.am, converters/Makefile.in, + src/Makefile.am: Add coveralls tqrget to makefiles - * ruby/README, ruby/images/egret.jpg, ruby/images/egret.six, - ruby/setup.rb, ruby/sixel.c: Drop Ruby interface - * .gitignore, .travis.yml, Gemfile, LICENSE.txt, README.md, Rakefile, - ext/libsixel/extconf.rb, ext/libsixel/libsixel.c, - ext/libsixel/libsixel.h, images/egret.jpg, images/egret.six, - lib/libsixel.rb, lib/libsixel/version.rb, libsixel-ruby.gemspec, - test/minitest_helper.rb, test/test_libsixel.rb: Initial commit +2014-06-09 Hayaki Saito -2015-06-16 Hayaki Saito + * converters/.coveralls.yml: Add .coveralls.yml - * src/writer.c: Fix build error caused by calling undeclared function - * NEWS: Update README - * ruby/sixel.c: ruby: show detailed error messages - * NEWS: Update NEWS - * ruby/sixel.c: Minor fix - * src/status.c: Add missing file: src/status.c - * converters/img2sixel.c, include/sixel.h.in, src/decoder.c, - src/encoder.c, src/loader.c, src/writer.c: Improve error handling - * Makefile.in, configure, configure.ac, converters/img2sixel.c, - include/sixel.h.in, src/Makefile.am, src/Makefile.in, src/loader.c: - Introduce newv APIs for semantic error handling: - - sixel_helper_set_additional_message() - - sixel_helper_get_additional_message() - sixel_helper_format_error() + * configure, configure.ac, converters/Makefile.am, converters/Makefile.in, + src/Makefile.am, src/Makefile.in: Add new configure option --enable-gcov -2015-06-15 Hayaki Saito + * converters/loader.c, converters/stb_image.c, converters/stb_image.h: + Headerify stb_image - * src/loader.c: Supperss uninitialized warnings caused by MinGW gcc +2014-06-08 Hayaki Saito -2015-06-14 Hayaki Saito + * converters/stb_image.c: Update stb_image version to 1.38 - * ruby/README, ruby/images/egret.jpg, ruby/images/egret.six, - ruby/setup.rb, ruby/sixel.c: Add initial implementation of ruby - interface - * src/decoder.c, src/encoder.c: Handle some ignored allocation errors - * converters/img2sixel.c, converters/sixel2png.c: Do semantic error - handling (on progress) - * src/loader.c: Suppress unused-label GCC warning - * src/encoder.c: Do semantic error handling (on progress) - * include/sixel.h.in, src/loader.c: Handle curl errors - * src/encoder.c, src/loader.c: Do semantic error handling (on - progress) - * src/loader.c: Fix compile errors caused by missing symbol - * README.md, converters/Makefile.am, converters/Makefile.in, - converters/img2sixel.c, converters/shell-completion/bash/img2sixel, - converters/shell-completion/zsh/_img2sixel, src/encoder.c: Add new - -b option values: gray1/2/4/8 - * include/sixel.h.in, src/dither.c, src/encoder.c: Add new built-in - palette profiles, gray1/2/4/8 - * src/encoder.c, src/loader.c: Do semantic error handling (on - progress) - * examples/opengl/main.c, include/sixel.h.in, src/dither.c, - src/tosixel.c: Do semantic error handling (on progress) + * sixel_orig/tosixel.c, src/tosixel.c: Add workarounds for old version of + mlterm -2015-06-13 Hayaki Saito +2014-06-07 Hayaki Saito - * src/dither.c, src/encoder.c: Do semantic error handling (on - progress) - * include/sixel.h.in, src/encoder.c, src/fromgif.c, src/loader.c: - Introduce SIXELSTATUS and related macros - * include/sixel.h.in: Define LIBSIXEL_VERSION and - LIBSIXEL_ABI_VERSION as string - * include/sixel.h.in: Correct typoed version macro - * include/sixel.h.in: Correct typoed version macro + * README.md: Update README -2015-06-12 Hayaki Saito + * LICENSE.tw, converters/quant.c: Drop unused pattern-dither function - * ChangeLog: Update ChangeLog +2014-06-06 Hayaki Saito -2015-06-11 Hayaki Saito + * .gitignore: Update gitigore - * src/Makefile.am, src/Makefile.in: Add rgblookup.gprf to distributed - files - * src/Makefile.am, src/Makefile.in, src/rgblookup.h: Re-generate - rgblookup.h - * src/rgblookup.gperf: Add gperf file generated from X11's rgb.txt + * converters/frompnm.c, converters/loader.c: Fix linker error for mingw + environment -2015-06-10 Hayaki Saito + * configure.ac: Bump version - * src/encoder.c: Fix segfault occurs when environment variable - $SIXEL_BGCOLOR is not set - * src/Makefile.am, src/Makefile.in, src/encoder.c, src/rgblookup.h: - Parse X11 color name which is specified with -B option - * src/encoder.c: Introduce SIXEL_BGCOLOR environment (for Issue #27) - * src/encoder.c: Strip unneeded substitution to palette type option - when -B option is specified - * NEWS: Update README + * Makefile.in, configure, configure.ac, wic_install.reg => + wic_install.reg.in, wic_uninstall.reg => wic_uninstall.reg.in: Add new + configure output target: wic_install.reg/wic_uninstall.reg -2015-06-09 Hayaki Saito + * Makefile.in, config.guess, config.h.in, config.sub, configure, + configure.ac, converters/Makefile.in, include/Makefile.in, ltmain.sh, + m4/libtool.m4, m4/ltoptions.m4, m4/ltversion.m4, src/Makefile.in: Update + build files - * NEWS: Update NEWS - * NEWS: Update NEWS for release 1.5 - * README.md: Update README: update version of - stb_image.h/stb_image_write.h - * LICENSE.stb: Update license file of stb - * src/fromgif.c: gif loader: cleanup - * src/fromgif.c: gif loader: update license notice - * src/fromsixel.c: Minor fix - * patches/applied/stb_image.h.diff: Remove directory "patches" - * src/loader.c, src/stb_image.h: Update stb_image to version 2.06 +2014-06-06 U-WIN-FOH0MAR4FJ6\user -2015-06-08 Hayaki Saito + * configure.ac: Minor fix - * LICENSE: Update LICENCE file - * include/sixel.h.in, src/decoder.c, src/dither.c, src/encoder.c, - src/frame.c, src/fromgif.c, src/frompnm.c, src/loader.c, - src/output.c, src/pixelformat.c, src/quant.c, src/scale.c, - src/tosixel.c, src/writer.c: Use constant symbols which start with - the prefix SIXEL_ - * cpanfile: Add cpanfile for perl interface - * perl/cpanfile: Add cpanfile for perl interface - * README.md, lib/Image/Sixel.pm: Update README and POD of perl - interface - * perl/README.md, perl/lib/Image/Sixel.pm: Update README and POD of - perl interface + * configure.ac: Minor fix -2015-06-07 Hayaki Saito +2014-06-05 Hayaki Saito - * README.md, t/sixel.t: Minor fixes - * perl/README.md, perl/t/sixel.t: Minor fixes - * MANIFEST, README => README.md: Rename the README of perl module - * perl/MANIFEST, perl/{README => README.md}: Rename the README of - perl module - * README: Update README of perl module - * perl/README: Update README of perl module - * README.md: Update README + * src/wic.cc, wic_install.reg, wic_uninstall.reg: Add some files for WIC + integration -2015-06-06 Hayaki Saito + * Makefile.in, config.h.in, configure, converters/Makefile.in, + include/Makefile.in, src/Makefile.in: Update build files - * configure, configure.ac, package.json: Update version to 1.4.12 + * configure.ac: Check libs for WIC integration -2015-06-05 Hayaki Saito + * configure.ac: Add new configure option --with-wic - * ChangeLog: Update ChangeLog - * src/loader.c: Fix segmentation fault caused by previous commit - * converters/loader.c: Copy gdk's pixbuf memory to libsixel-internal - chunk with attention to image stride (reported by @ttdoda, Issue - #43) + * configure, configure.ac: Update configure script -2015-06-02 Hayaki Saito + * build-gdkpixbuf.sh: Drop unused build script build-gdkpixbuf.sh - * NEWS: Update NEWS +2014-06-04 Hayaki Saito -2015-05-30 Hayaki Saito + * README.md: Update README - * ChangeLog: Update ChangeLog + * images/vimperator3.png: Add an additional test image -2015-05-29 Hayaki Saito +2014-05-30 Hayaki Saito - * configure, configure.ac: Correct wrong help string of ./configure - * tools/Makefile.am, tools/Makefile.in, tools/libsixel-config.in: Add - missing build files - * Build.PL, MANIFEST, MANIFEST.SKIP, META.yml, Makefile.PL, README, - images/egret.jpg, images/egret.six, lib/Image/Sixel.pm, - lib/Image/Sixel.xs, lib/Image/Sixel/Decoder.pm, - lib/Image/Sixel/Encoder.pm, lib/Image/ppport.h, t/sixel.t: Initial - commit of libsixel perl interface - * perl/Build.PL, perl/MANIFEST, perl/MANIFEST.SKIP, perl/META.yml, - perl/Makefile.PL, perl/README, perl/images/egret.jpg, - perl/images/egret.six, perl/lib/Image/Sixel.pm, - perl/lib/Image/Sixel.xs, perl/lib/Image/Sixel/Decoder.pm, - perl/lib/Image/Sixel/Encoder.pm, perl/lib/Image/ppport.h, - perl/t/sixel.t: Initial commit of libsixel perl interface - * Makefile.am, Makefile.in, configure, configure.ac: Add a helper - tool libsixel-config + * config.h.in, configure, configure.ac: Add a config.h definition which + represents getopt_long avilability -2015-05-28 Hayaki Saito + * converters/img2sixel.c: Support some environments lack getopt_long - * src/encoder.c: Don't close STDOUT with -o option + * configure: Rebuild configure script -2015-05-27 Hayaki Saito + * configure.ac: Bump version - * README.rst: Show python package path after ./configure is succeeded - * configure, configure.ac, python/README.rst, src/Makefile.am, - src/Makefile.in: Show python package path after ./configure is - succeeded - * README.rst: Update README of python bindings - * python/README.rst: Update README of python bindings - * Makefile.am, Makefile.in: Add test-output.png to CLEANFILES - * src/Makefile.am, src/Makefile.in: Add src/tests to CLEANFILES - * python/README.rst: Fix syntax errors of README.rst - * README.rst: Fix syntax errors of README.rst - * python/Makefile.am, python/Makefile.in: Add python/Makefile.am - python/Makefile.in - * Makefile.am, Makefile.in: Add python/Makefile.am python/Makefile.in - * python/sample1.py: Remove a trivial sample file - * sample1.py: Remove a trivial sample file - * py-compile: Add py-compile, distributed under special exception to - the GNU General Public License - * setup.py: Add setup.py for python bindings - * python/setup.py: Add setup.py for python bindings - * README.rst: Add README.rst for python bindings - * python/README.rst: Add README.rst for python bindings - * libsixel/__init__.py, libsixel/decoder.py, libsixel/encoder.py: Add - license blocks to python modules - * python/libsixel/__init__.py, python/libsixel/decoder.py, - python/libsixel/encoder.py: Add license blocks to python modules - * Makefile.am, Makefile.in, aclocal.m4, configure, configure.ac, - converters/Makefile.in, include/Makefile.in, src/Makefile.in: Build - and install python bindings by 'make install' - * libsixel/__init__.py, libsixel/decoder.py, libsixel.py => - libsixel/encoder.py: Update python modules - * python/libsixel/__init__.py, python/libsixel/decoder.py, - python/{libsixel.py => libsixel/encoder.py}: Update python modules + * configure: Rebuild -2015-05-26 Hayaki Saito + * converters/Makefile.in: Rebuild Makefile.in - * src/encoder.c, src/encoder.h: Aggregate a sixel_dither_t instance - to encoder object - * examples/opengl/Makefile.in, examples/opengl/aclocal.m4, - examples/opengl/compile, examples/opengl/config.guess, - examples/opengl/config.h.in, examples/opengl/config.sub, - examples/opengl/configure, examples/opengl/configure.ac, - examples/opengl/depcomp, examples/opengl/install-sh, - examples/opengl/main.c, examples/opengl/missing: Update OpenGL - example: add on-demand scrolling feature - * Makefile.in, converters/Makefile.am, converters/Makefile.in, - src/dither.c, src/encoder.c, src/frame.c, src/pixelformat.c, - src/quant.c, src/tests.c, src/writer.c: Add more tests for quant.c - and encoder.c + * converters/Makefile.am: Add some private header files to the source + distribution -2015-05-25 Hayaki Saito + * config.h.in: Rebuild config.h.in - * src/frame.c: Add more tests for frame.c + * configure: Rebuild -2015-05-24 Hayaki Saito + * converters/loader.c: Use standard jpeg loader if available - * Makefile.in, converters/Makefile.am, converters/Makefile.in: Add - 'testfile' to CLEANFILES + * configure.ac: Check standard jpeg loader with GD integration -2015-05-21 Hayaki Saito + * configure, configure.ac: Check libiconv avilability if --with-gd is + specified - * Makefile.in, converters/Makefile.in, src/frame.c: Add more tests - for frame.c - * src/frame.c: Drop unused function sixel_frame_set_palette() - * src/quant.c, src/quant.h, src/tests.c, src/writer.c: Add initial - tests for quant.c + * configure, configure.ac: Check host environment -2015-05-20 Hayaki Saito + * converters/loader.c: Compile loader module without missing GD symbols - * src/encoder.c: Strip extra debug code - * converters/Makefile.am, converters/Makefile.in, src/encoder.c: Fix - broken -B option test - * src/Makefile.am, src/Makefile.in, src/writer.c: Add more test cases - for writer.c - * src/Makefile.am, src/Makefile.in, src/tests.c, src/writer.c, - src/writer.h: Add initial tests for writer.c - * converters/Makefile.am, converters/Makefile.in: sixel2png: Add test - of specifing invalid output file name - * converters/Makefile.in, src/frame.c: Add more tests for frame.c + * configure.ac: Check each of gdImageCreateFromXXX availabilities -2015-05-19 Hayaki Saito + * converters/loader.c: Revert "Don't compile unused code in stbi_image.c + such as stbi_load_from_file" This reverts commit + 9415149ac20f5ab26b8e97b26c8d9989bdd61572. - * src/dither.h, src/frame.c, src/frame.h, src/tests.c: Add initial - test of frame.c - * src/pixelformat.c: Add more tests for pixelformat.c - * ChangeLog: Update ChangeLog - * Makefile.in, aclocal.m4, compile, config.guess, config.sub, - configure, converters/Makefile.in, depcomp, include/Makefile.in, - install-sh, ltmain.sh, m4/libtool.m4, m4/ltoptions.m4, - m4/ltsugar.m4, m4/ltversion.m4, m4/lt~obsolete.m4, missing, - src/Makefile.in: Rebuild - * configure.ac: Evaluate arguments of --with-xxx option of - ./configure more strictly + * converters/loader.c: Don't compile unused code in stbi_image.c such as + stbi_load_from_file -2015-05-18 Hayaki Saito + * configure: Rebuild configure script - * src/pixelformat.h: Add missing header file pixelformat.h - * src/pixelformat.c: Add more tests for pixelformat.c - * Makefile.in, src/Makefile.am, src/Makefile.in, src/dither.h, - src/encoder.c, src/encoder.h, src/pixelformat.c, src/tests.c: Add - tests for pixelformat - * Makefile.am, Makefile.in: Run unittests on travis + * converters/stb_image.c: Fix a segmentation fault issue reported by + @arakiken -2015-05-17 Hayaki Saito +2014-05-28 Hayaki Saito - * Makefile.in, configure, configure.ac, src/fromgif.c, src/fromgif.h: - Cleanup - * converters/Makefile.in: Minor fix - * converters/Makefile.am: Drop a surplus test for -k option - * src/loader.c: Suppress an unused-parameter gcc warning - * converters/Makefile.am: Add tests for invalid permission file - * package.json.in.in: Strip --with-curl from package.json - * include/sixel.h.in, src/decoder.c, src/dither.c, src/encoder.c, - src/frame.c, src/fromsixel.c, src/loader.c, src/output.c, - src/pixelformat.c, src/quant.c, src/scale.c, src/tosixel.c, - src/writer.c: Add __declspec for mingw - * converters/Makefile.am: Add test cases for -B and -o option - * src/Makefile.am, src/Makefile.in, src/{easy_decode.c => decoder.c}, - src/{easy_decode.h => decoder.h}, src/{easy_encode.c => encoder.c}, - src/{easy_encode.h => encoder.h}: Rename files: easy_encode.c -> - encoder.c, easy_decode -> decoder.c - * ChangeLog: Update ChangeLog - * libsixel.py: Update python-ctypes binding - * python/libsixel.py: Update python-ctypes binding - * php/sixel/package.xml, php/sixel/package2.xml, - php/sixel/php_sixel.h, php/sixel/sixel.c, php/sixel/sixel.xml, - ..._easy_encode.phpt => SixelEncoder__encode.phpt}, - ...ncode_setopt.phpt => SixelEncoder__setopt.phpt}: Update php - extension - * src/loader.c: Fix segmentation error when cancel_flag is not set - * src/easy_encode.c: Drop sixel_callback_context_t - * include/sixel.h.in, src/easy_decode.c, src/easy_encode.c: Add const - qualifier to some arguments of sixel_{en,de}coder_setopt() - * converters/img2sixel.c, include/sixel.h.in, src/easy_encode.c, - src/easy_encode.h: Add new API sixel_encoder_set_cancel_flag() - * converters/Makefile.am, converters/Makefile.in, - converters/img2sixel.c, src/loader.c: Wait input data with select() - only if input file is a tty device - * include/sixel.h.in, src/easy_encode.c: Use sixel_write_callback() - instead of printf() to fix broken -n option + * configure: Rebuild configure script -2015-05-16 Hayaki Saito + * configure, configure.ac: Continue to configure without pkg-config if + GDK_PIXBUF_CFLAGS and GDK_PIXBUF_LIBS is set - * converters/img2sixel.c, converters/sixel2png.c, include/sixel.h.in, - src/easy_decode.c, src/easy_decode.h, src/easy_encode.c, - src/easy_encode.h: Rename easy encoder/decoder structures and - releated APIs - * src/easy_encode.c: Suppress warnings in MinGW environment - * converters/shell-completion/zsh/_img2sixel: Update zsh completion - file - * converters/shell-completion/bash/img2sixel: Update bash completion - file - * converters/img2sixel.1: Update manpage of img2sixel - * src/loader.c: Minor fixes - * src/loader.c: Suppress gcc unused-parameter warnings + * configure.ac: Bump version -2015-05-15 Hayaki Saito + * configure, configure.ac: Don't use addition assingment operator in + configure, it's an extension of bash. reported by @ttdoda - * include/sixel.h.in, src/easy_encode.c, src/loader.c: Passes cancel - flag to image loader - * src/easy_encode.c, src/loader.c: Minor fix - * src/easy_encode.c: Don't close stdout/stderr on exit +2014-05-26 Hayaki Saito -2015-05-14 Hayaki Saito + * configure: Rebuild - * converters/img2sixel.c, src/easy_encode.c, src/easy_encode.h, - src/loader.c: Implement -o(--outfile) option + * configure.ac: Bump version -2015-05-12 Hayaki Saito + * converters/loader.c: Fix an error caused by duplicated free - * converters/Makefile.am, converters/Makefile.in: Add pngsuite - background tests - * Makefile.in, aclocal.m4, compile, config.guess, config.sub, - configure, converters/Makefile.in, depcomp, include/Makefile.in, - install-sh, missing, src/Makefile.in: Rebuild with automake-1.15 - * src/fromgif.c: Fix leaks around GIF loader - * converters/img2sixel.c: Stop memory leaks + * converters/loader.c: Load pnm more efficiently -2015-05-11 Hayaki Saito + * converters/loader.c: Minor fix - * php/README, php/sixel/.cvsignore, php/sixel/CREDITS, - php/sixel/EXPERIMENTAL, php/sixel/README, php/sixel/config.m4, - php/sixel/config.w32, php/sixel/manual/file-entities.ent, - php/sixel/manual/functions.xml, php/sixel/manual/manual.xml.in, - php/sixel/manual/sixel/configure.xml, - php/sixel/manual/sixel/constants.xml, - php/sixel/manual/sixel/ini.xml, - php/sixel/manual/sixel/reference.xml, php/sixel/package.xml, - php/sixel/package2.xml, php/sixel/php_sixel.h, php/sixel/sixel.c, - php/sixel/sixel.dsp, php/sixel/sixel.xml, - php/sixel/tests/SixelEncoder____construct.phpt, - php/sixel/tests/SixelEncoder____destruct.phpt, - .../tests/SixelEncoder__sixel_easy_encode.phpt, - .../SixelEncoder__sixel_easy_encode_setopt.phpt: Add php extension + * converters/loader.c: Minor fix -2015-05-10 Hayaki Saito + * converters/loader.c: Minor fix - * Makefile.in, configure, configure.ac, converters/Makefile.in, - include/Makefile.in, ltmain.sh, m4/libtool.m4, m4/ltoptions.m4, - m4/ltsugar.m4, m4/ltversion.m4, m4/lt~obsolete.m4, package.json, - src/Makefile.in: Update package version and libtool version - * Makefile.in, configure, configure.ac, converters/Makefile.in, - include/Makefile.in, ltmain.sh, m4/libtool.m4, m4/ltoptions.m4, - m4/ltsugar.m4, m4/ltversion.m4, m4/lt~obsolete.m4, src/Makefile.in: - Update package version and libtool version - * src/easy_encode.c: Fix segmentation errors around evaluating - cancel_flag +2014-05-25 Hayaki Saito -2015-05-06 Hayaki Saito + * src/sixel.5: Update reference section - * src/fromgif.c: Add missing memset() initialization of the structure - stbi__gif (for Issue #42, reported by @msmhrt) + * converters/img2sixel.1, converters/sixel2png.1: Update "See Also" section + of img2sixel/sixel2png -2015-05-05 Hayaki Saito + * src/Makefile.in: Rebuild Makefile.in - * src/Makefile.am, src/Makefile.in, src/loader.c: Use built-in gif - loader - * src/easy_encode.c, src/loader.c: Minor fixes - * src/fromgif.c, src/fromgif.h: Add new file fromgif.{c,h} + * src/Makefile.am: Install sixel(5) by default -2015-05-04 Hayaki Saito + * src/sixel.5: Add new manpage "sixel(5)" - * src/easy_encode.c: Emit CAN(\x18) when received signals - * src/easy_encode.c: Minor fix around auto-scrolling - * src/easy_encode.c: Fix a memory leak + * Makefile.in, configure, configure.ac, converters/Makefile.in, + include/Makefile.in, src/Makefile.in: Rebuild -2015-05-02 Hayaki Saito + * Makefile.am: Update Makefile.am - * libsixel.py: Rename python class names - * python/libsixel.py: Rename python class names - * src/easy_encode.c: Suppress a gcc warning [-Werror=unused-variable] - * src/easy_decode.c, src/easy_decode.h: Add missing files, - src/easy_decode.{c,h} - * src/loader.c: Respect fuse_palette flag when decoding GIF images + * configure.ac: Add new configure option, --with-pkgconfigdir -2015-04-30 Hayaki Saito + * Makefile.in, configure: Rebuild - * libsixel.py, sample1.py: Add ctypes(ffi) python binding examples - * python/libsixel.py, python/sample1.py: Add ctypes(ffi) python - binding examples - * src/easy_encode.c: Minor fixes - * src/loader.c: Fix leak around playing GIF animation - * src/frame.c: Resize PAL8 formatted pixel buffer correctly - * src/easy_encode.c: Strip unused code around resize/crop - * src/easy_encode.c: Minor fix - * src/easy_encode.c: Allow NULL as 2nd argument in - sixel_easy_encode() - * converters/sixel2png.c, include/sixel.h.in: Abolish cancel_flag - argument of sixel_easy_decode() - * src/easy_encode.c: Allow NULL as cancel_flag argument in - sixel_easy_encode() - * converters/sixel2png.c, include/sixel.h.in, src/Makefile.am, - src/Makefile.in, src/easy_encode.c, src/easy_encode.h: Add easy - decode API set - * converters/Makefile.am, converters/Makefile.in, - converters/img2sixel.c, include/sixel.h.in, src/Makefile.am, - src/Makefile.in, src/easy_encode.c, src/easy_encode.h, src/frame.c, - src/frame.h: Add easy converter API set + * configure.ac: Add new config file libsixel.pc -2015-04-29 Hayaki Saito + * libsixel.pc.in: Add a template file for pkg-config integration - * converters/img2sixel.c: Clean up - * Makefile.in: Rebuild - * src/loader.c: Load paletted PNG with keycolor (for Issue #28) - * include/sixel.h.in, src/loader.c: Cleanup - * converters/img2sixel.c, include/sixel.h.in, src/frame.c, - src/frame.h: Minor fixes - * converters/img2sixel.c, include/sixel.h.in, src/Makefile.am, - src/Makefile.in, src/loader.c: Introduce frame API - * src/frame.c, src/frame.h: Add frame.c/frame.h - * include/sixel.h.in: Add reference counter to struct sixel_frame_t + * converters/malloc_stub.c, converters/stb_image.c: Fix for some environment + lacks memory.h -2015-04-28 Hayaki Saito + * Makefile.in, config.h.in, configure, configure.ac, converters/Makefile.in, + include/Makefile.in, src/Makefile.in: Drop unused gio-2.0 detection - * libsixel.pc.in: Strip -lsixel-imageio from libsixel.pc + * configure: Rebuild configure script -2015-04-26 Hayaki Saito + * configure.ac: Update minor version - * src/loader.c: Respect -B option regarding with GIF images with - transparent index (for Issue #25) - * src/loader.c: Prevent segmentation fault when receiving SIGINT - during playing gif animation - * converters/img2sixel.c: Handle SIGINT correctly + * Makefile.in, config.h.in, configure, configure.ac, converters/Makefile.in, + converters/loader.c, include/Makefile.in, src/Makefile.in: Fix segmentation + errors when loading stdin with gdk-pixbuf -2015-04-25 Hayaki Saito + * converters/loader.c: Fix a GDK error caused by loading image from stdin + with gdk-pixbuf - * converters/img2sixel.c: Minor fix - * src/tosixel.c: Don't output palette definition of the keycolor - * src/loader.c: Set default transparent color index in - with_load_gdkpixbuf() and load_with_gd() - * converters/img2sixel.c, src/loader.c: Pass the keycolor of gif to - the encoder by using sixel_dither_set_transpaernt() - * include/sixel.h.in, src/dither.c: Add new API: - sixel_dither_set_transparent() - * include/sixel.h.in, src/loader.c: Retrieve transparent color index - from gif + * converters/img2sixel.1: Update manpage of img2sixel -2015-04-22 Hayaki Saito + * converters/loader.c: Issue #2 Fix segmentation faults caused when libcurl + integration is enabled - * src/loader.c: Convert PIXELFORMAT_ARGB8888 into PIXELFORMAT_RGB888 - in sixel_strip_alpha() + * converters/loader.c: Minor fix -2015-04-19 Hayaki Saito + * converters/loader.c: Do not use stbi loader if image format is pnm/sixel - * src/loader.c, src/stb_image.h: Load gif as PAL8 pixelformat + * converters/loader.c: Add functions detect pnm/sixel image format -2015-04-13 Hayaki Saito + * converters/loader.c: Don't use stbi_load_from_file - * Makefile.in: Rebuild - * converters/img2sixel.c: Fix a gcc warning (unused parameter) - * Makefile.in, converters/img2sixel.c: Set timeout on waiting CPR - response - * config.h.in, configure, configure.ac, converters/img2sixel.c: Check - the availability of isatty(), termios.h, sys/ioctl.h - * converters/img2sixel.c: Scroll the terminal on demand when playing - gif animation + * converters/Makefile.am, converters/Makefile.in: Build with frompnm.c -2015-04-12 Hayaki Saito + * converters/scale.h: Minor fix - * converters/img2sixel.c, include/sixel.h.in, src/loader.c, - src/stb_image.h: Detect if the image has multi-frames by builtin - gif loader - * converters/img2sixel.c, src/loader.c: Fix a double free error in - gdk-pixbuf loader - * src/loader.c: Minor fix - * src/loader.c: Suppress a GCC warning when specified --with-gdk- - pixbuf2 configure option - * converters/img2sixel.c, src/pixelformat.c: Fix broken - sixel_helper_normalize_pixelforma(), return dst_pixelformat - correctly + * converters/loader.c: Enable pnm format loader in loader.c -2015-04-11 Hayaki Saito + * converters/frompnm.c, converters/frompnm.h: Add PNM loader imported from + kmiya's sixel - * .travis.yml: Update .travis.yml to check --without-png configure - option correctly - * converters/img2sixel.c: Fix a memory leak found in cropping routine - * converters/img2sixel.c: Fix a segmentation error occurs when - resizing - * src/loader.c: Suppress GCC warnings - * Makefile.in: Rebuild - * src/loader.c: Support callback loader API with libgd loader - * src/loader.c: Support callback loader API with gdk-pixbuf loader +2014-05-24 Hayaki Saito -2015-04-09 Hayaki Saito + * converters/loader.c: Cleanup - * converters/img2sixel.c: Implement macro invocation with callback - * converters/img2sixel.c, include/sixel.h.in, src/loader.c: Fix loop - control without macro - * converters/img2sixel.c, include/sixel.h.in, src/loader.c: Fix - broken animation without macro - * converters/Makefile.am, converters/Makefile.in: Update tests + * config.h.in, configure: Rebuild configure script -2015-04-05 Hayaki Saito + * converters/malloc_stub.c, converters/malloc_stub.h: Drop unused + posix_memalign stub function - * configure, configure.ac, package.json: Update version - * ChangeLog: Update ChangeLog - * converters/stb_image.h: Fix an existing bug in stb_image v1.41 of - building color palette, reported by @msmhrt (for Issue #41) - * converters/img2sixel.c: Don't use fuse_palette flag when using - fixed palette - * converters/img2sixel.c, include/sixel.h.in, src/loader.c: Load - image frame with callback function (on progress) - * Makefile.in, configure, configure.ac, converters/Makefile.am, - converters/Makefile.in, include/Makefile.in, src/Makefile.in: Add - tests for pngsuite basic images + * configure.ac: Drop the preparation for SIMD enhancement -2015-03-20 Hayaki Saito + * configure: Rebuild configure script - * converters/img2sixel.c: Rebuild multi-frame data when expanding - 1/2/4bpp image + * configure.ac: Bump version -2015-03-17 Hayaki Saito + * Makefile.in, configure, converters/Makefile.am, converters/Makefile.in, + include/Makefile.in, src/Makefile.in: Update build scripts - * converters/img2sixel.c: Support cropping for 1/2/4bpp images (Issue - #38) - * converters/img2sixel.c: Expand pixelformat to RGB888 before - resizing (for Issue #34) + * configure.ac: Improve configure script avilability -2015-03-16 Hayaki Saito +2014-05-23 Hayaki Saito - * src/dither.c: Omit an extra malloc() call - * Makefile.in, configure, configure.ac: Add libjpeg check with - PKG_CHECK_MODULES + * configure.ac: Fix for environments that do not have pkg-config -2015-03-13 saitoha +2014-05-22 Hayaki Saito - * src/loader.c: Handle depth=1 returned by stb_image v2.0 + * converters/img2sixel.c: Fix build -2015-03-13 Hayaki Saito +2014-05-21 Hayaki Saito - * Makefile.in, src/loader.c: Add more debug logs - * .travis.yml: Update .travis.yml - * src/loader.c: Handle depth=4 returned by stb_image v2.0 - * src/loader.c: Fix typo: unknwon -> unknown - * configure, configure.ac: Don't override env variable - xxx_CFLAGS/xxx_LIBS (Issue #35) + * converters/img2sixel.1: Update manpage of img2sixel -2015-03-10 Hayaki Saito + * configure, configure.ac: Minor fix - * configure, configure.ac, package.json: Update version - * ChangeLog: Update ChangeLog + * README.md: Update README -2015-03-07 Hayaki Saito + * configure: Update configure script - * converters/frompnm.c, converters/frompnm.h, converters/loader.c: - Resolve confliction of parameter declarations of load_pnm(), - reported by @tautschnig. (for Issue #40) + * configure.ac: Update minor version -2015-03-05 Hayaki Saito + * converters/img2sixel.c, converters/loader.c: Fix segfault when source + image is GIF - * converters/stb_image.h: Parse GIF application extension block - correctly (Issue #39) - * src/stb_image.h: Parse GIF application extension block correctly - (Issue #39) - * src/loader.c: Prevent segmentation fault reported by @msmhrt (Issue - #39) +2014-05-20 Hayaki Saito -2015-02-28 Hayaki Saito + * converters/loader.c: Add test for HDR format - * ChangeLog: Update ChangeLog - * configure, configure.ac, package.json: Update package version to - 1.4.9 - * Makefile.in, package.json: Rebuild - * configure, configure.ac: Fix miss-detection for libcurl/libpng (for - Issue #35) - * converters/loader.c: Workaround for libpng 1.2 with grayscale-alpha - PNG (for Issue #36) + * converters/loader.c: Add detection for PSD file format -2015-02-27 saitoha + * converters/loader.c: Add missing include directive - * converters/loader.c: Workaround for libpng 1.2 (for Issue #34) + * converters/loader.c: Minor fix -2015-02-26 Hayaki Saito + * configure: Rebuild - * src/loader.c: Fix inverted test condition added in 3d6ca7d6 (for - Issue #32) - * converters/img2sixel.c: Fix wrong boundary test added by 19417c6 - (for Issue #33). + * configure.ac: Minor fix -2015-02-25 Hayaki Saito + * configure, configure.ac: Display configure summary - * Makefile.in, converters/loader.c: Fix broken -p option with 8bpp - grayscale PNG (concerned with Issue #34) - * Makefile.in, converters/loader.c: Fix broken -p option with 8bpp - grayscale PNG (concerned with Issue #34) - * converters/loader.c: Fix broken resize option(-w/-h) with 1/2/4bpp - grayscale png (for Issue #34) + * README.md: Update README -2015-02-24 Hayaki Saito + * README.md: Update README - * package.json: Update package.json - * Makefile.in, configure, configure.ac: Clear additional CFLAGS/LIBS - when ./configure --with-libcurl=auto and libcurl is missing - * src/Makefile.am, src/Makefile.in: Add some lines to Makefile.am, - for fix build from tarballs created by 'make dist' - * configure, configure.ac: Update version in configure.ac - * src/loader.c: Style fixes + * src/fromsixel.c, src/tosixel.c: Cleanup -2015-02-23 Hayaki Saito + * converters/loader.c: Minor fix - * src/loader.c: Add missing error handler for load_jpeg() and - load_png() - * configure, configure.ac: Respect prefix path specified with --with- - gd configure option - * Makefile.in, configure, configure.ac: Check whether --with-xxx - options are directories - * src/frompnm.c, src/frompnm.h, src/loader.c: Don't use component - depth internally - * Makefile.in: Rebuild + * converters/img2sixel.1: Update manpage -2015-02-22 Hayaki Saito + * README.md: Update README - * converters/img2sixel.c: More strict validation for -c option - * configure, configure.ac: Respect prefix path specified with --with- - png configure option - * configure, configure.ac: Respect prefix path specified with --with- - jpeg configure option - * configure, configure.ac: Respect prefix path specified with --with- - libcurl configure option - * config.h.in, configure, configure.ac, src/loader.c: Check whether - given filename is a directory - * LICENSE.pngsuite, README.md, - images/pngsuite/background/bgai4a08.png, - images/pngsuite/background/bgai4a16.png, - images/pngsuite/background/bgan6a08.png, - images/pngsuite/background/bgan6a16.png, - images/pngsuite/background/bgbn4a08.png, - images/pngsuite/background/bggn4a16.png, - images/pngsuite/background/bgwn6a08.png, - images/pngsuite/background/bgyn6a16.png, - images/pngsuite/basic/basn0g01.png, - images/pngsuite/basic/basn0g02.png, - images/pngsuite/basic/basn0g04.png, - images/pngsuite/basic/basn0g08.png, - images/pngsuite/basic/basn0g16.png, - images/pngsuite/basic/basn2c08.png, - images/pngsuite/basic/basn2c16.png, - images/pngsuite/basic/basn3p01.png, - images/pngsuite/basic/basn3p02.png, - images/pngsuite/basic/basn3p04.png, - images/pngsuite/basic/basn3p08.png, - images/pngsuite/basic/basn4a08.png, - images/pngsuite/basic/basn4a16.png, - images/pngsuite/basic/basn6a08.png, - images/pngsuite/basic/basn6a16.png, - images/pngsuite/chunk/ccwn2c08.png, - images/pngsuite/chunk/ccwn3p08.png, - images/pngsuite/chunk/cdfn2c08.png, - images/pngsuite/chunk/cdhn2c08.png, - images/pngsuite/chunk/cdsn2c08.png, - images/pngsuite/chunk/cdun2c08.png, - images/pngsuite/chunk/ch1n3p04.png, - images/pngsuite/chunk/ch2n3p08.png, - images/pngsuite/chunk/cm0n0g04.png, - images/pngsuite/chunk/cm7n0g04.png, - images/pngsuite/chunk/cm9n0g04.png, - images/pngsuite/chunk/cs3n2c16.png, - images/pngsuite/chunk/cs3n3p08.png, - images/pngsuite/chunk/cs5n2c08.png, - images/pngsuite/chunk/cs5n3p08.png, - images/pngsuite/chunk/cs8n2c08.png, - images/pngsuite/chunk/cs8n3p08.png, - images/pngsuite/chunk/ct0n0g04.png, - images/pngsuite/chunk/ct1n0g04.png, - images/pngsuite/chunk/cten0g04.png, - images/pngsuite/chunk/ctfn0g04.png, - images/pngsuite/chunk/ctgn0g04.png, - images/pngsuite/chunk/cthn0g04.png, - images/pngsuite/chunk/ctjn0g04.png, - images/pngsuite/chunk/ctzn0g04.png, - images/pngsuite/corrupted/xc1n0g08.png, - images/pngsuite/corrupted/xc9n2c08.png, - images/pngsuite/corrupted/xcrn0g04.png, - images/pngsuite/corrupted/xcsn0g01.png, - images/pngsuite/corrupted/xd0n2c08.png, - images/pngsuite/corrupted/xd3n2c08.png, - images/pngsuite/corrupted/xd9n2c08.png, - images/pngsuite/corrupted/xdtn0g01.png, - images/pngsuite/corrupted/xhdn0g08.png, - images/pngsuite/corrupted/xlfn0g04.png, - images/pngsuite/corrupted/xs1n0g01.png, - images/pngsuite/corrupted/xs2n0g01.png, - images/pngsuite/corrupted/xs4n0g01.png, - images/pngsuite/corrupted/xs7n0g01.png, - images/pngsuite/filter/f00n0g08.png, - images/pngsuite/filter/f00n2c08.png, - images/pngsuite/filter/f01n0g08.png, - images/pngsuite/filter/f01n2c08.png, - images/pngsuite/filter/f02n0g08.png, - images/pngsuite/filter/f02n2c08.png, - images/pngsuite/filter/f03n0g08.png, - images/pngsuite/filter/f03n2c08.png, - images/pngsuite/filter/f04n0g08.png, - images/pngsuite/filter/f04n2c08.png, - images/pngsuite/filter/f99n0g04.png, - images/pngsuite/gamma/g03n0g16.png, - images/pngsuite/gamma/g03n2c08.png, - images/pngsuite/gamma/g03n3p04.png, - images/pngsuite/gamma/g04n0g16.png, - images/pngsuite/gamma/g04n2c08.png, - images/pngsuite/gamma/g04n3p04.png, - images/pngsuite/gamma/g05n0g16.png, - images/pngsuite/gamma/g05n2c08.png, - images/pngsuite/gamma/g05n3p04.png, - images/pngsuite/gamma/g07n0g16.png, - images/pngsuite/gamma/g07n2c08.png, - images/pngsuite/gamma/g07n3p04.png, - images/pngsuite/gamma/g10n0g16.png, - images/pngsuite/gamma/g10n2c08.png, - images/pngsuite/gamma/g10n3p04.png, - images/pngsuite/gamma/g25n0g16.png, - images/pngsuite/gamma/g25n2c08.png, - images/pngsuite/gamma/g25n3p04.png, - images/pngsuite/interlacing/basi0g01.png, - images/pngsuite/interlacing/basi0g02.png, - images/pngsuite/interlacing/basi0g04.png, - images/pngsuite/interlacing/basi0g08.png, - images/pngsuite/interlacing/basi0g16.png, - images/pngsuite/interlacing/basi2c08.png, - images/pngsuite/interlacing/basi2c16.png, - images/pngsuite/interlacing/basi3p01.png, - images/pngsuite/interlacing/basi3p02.png, - images/pngsuite/interlacing/basi3p04.png, - images/pngsuite/interlacing/basi3p08.png, - images/pngsuite/interlacing/basi4a08.png, - images/pngsuite/interlacing/basi4a16.png, - images/pngsuite/interlacing/basi6a08.png, - images/pngsuite/interlacing/basi6a16.png, - images/pngsuite/odd/s01i3p01.png, images/pngsuite/odd/s01n3p01.png, - images/pngsuite/odd/s02i3p01.png, images/pngsuite/odd/s02n3p01.png, - images/pngsuite/odd/s03i3p01.png, images/pngsuite/odd/s03n3p01.png, - images/pngsuite/odd/s04i3p01.png, images/pngsuite/odd/s04n3p01.png, - images/pngsuite/odd/s05i3p02.png, images/pngsuite/odd/s05n3p02.png, - images/pngsuite/odd/s06i3p02.png, images/pngsuite/odd/s06n3p02.png, - images/pngsuite/odd/s07i3p02.png, images/pngsuite/odd/s07n3p02.png, - images/pngsuite/odd/s08i3p02.png, images/pngsuite/odd/s08n3p02.png, - images/pngsuite/odd/s09i3p02.png, images/pngsuite/odd/s09n3p02.png, - images/pngsuite/odd/s32i3p04.png, images/pngsuite/odd/s32n3p04.png, - images/pngsuite/odd/s33i3p04.png, images/pngsuite/odd/s33n3p04.png, - images/pngsuite/odd/s34i3p04.png, images/pngsuite/odd/s34n3p04.png, - images/pngsuite/odd/s35i3p04.png, images/pngsuite/odd/s35n3p04.png, - images/pngsuite/odd/s36i3p04.png, images/pngsuite/odd/s36n3p04.png, - images/pngsuite/odd/s37i3p04.png, images/pngsuite/odd/s37n3p04.png, - images/pngsuite/odd/s38i3p04.png, images/pngsuite/odd/s38n3p04.png, - images/pngsuite/odd/s39i3p04.png, images/pngsuite/odd/s39n3p04.png, - images/pngsuite/odd/s40i3p04.png, images/pngsuite/odd/s40n3p04.png, - images/pngsuite/order/oi1n0g16.png, - images/pngsuite/order/oi1n2c16.png, - images/pngsuite/order/oi2n0g16.png, - images/pngsuite/order/oi2n2c16.png, - images/pngsuite/order/oi4n0g16.png, - images/pngsuite/order/oi4n2c16.png, - images/pngsuite/order/oi9n0g16.png, - images/pngsuite/order/oi9n2c16.png, - images/pngsuite/palette/pp0n2c16.png, - images/pngsuite/palette/pp0n6a08.png, - images/pngsuite/palette/ps1n0g08.png, - images/pngsuite/palette/ps1n2c16.png, - images/pngsuite/palette/ps2n0g08.png, - images/pngsuite/palette/ps2n2c16.png, - images/pngsuite/transparency/tbbn0g04.png, - images/pngsuite/transparency/tbbn2c16.png, - images/pngsuite/transparency/tbbn3p08.png, - images/pngsuite/transparency/tbgn2c16.png, - images/pngsuite/transparency/tbgn3p08.png, - images/pngsuite/transparency/tbrn2c08.png, - images/pngsuite/transparency/tbwn0g16.png, - images/pngsuite/transparency/tbwn3p08.png, - images/pngsuite/transparency/tbyn3p08.png, - images/pngsuite/transparency/tm3n3p02.png, - images/pngsuite/transparency/tp0n0g08.png, - images/pngsuite/transparency/tp0n2c08.png, - images/pngsuite/transparency/tp0n3p08.png, - images/pngsuite/transparency/tp1n3p08.png, - images/pngsuite/zlib/z00n2c08.png, - images/pngsuite/zlib/z03n2c08.png, - images/pngsuite/zlib/z06n2c08.png, - images/pngsuite/zlib/z09n2c08.png: Import PngSuite images and add - its license description - * configure, configure.ac, converters/img2sixel.c, - converters/sixel2png.c, include/Makefile.am, include/Makefile.in, - include/sixel-imageio.h.in, include/sixel.h.in, src/loader.c, - src/writer.c: Aggregate sixel-imageio.h and sixel.h into the one - header - * Makefile.in, converters/Makefile.am, converters/Makefile.in, - src/Makefile.am, src/Makefile.in: Combine libsixel-imageio with - core library + * converters/img2sixel.1: Update manpage -2015-02-21 Hayaki Saito + * converters/img2sixel.c: Use free() indted of stbi_image_free - * Makefile.in, converters/Makefile.am, converters/Makefile.in: Add - convenient tests for -B option (issue #25) - * converters/img2sixel.c: Raise error if invalid -B option is given - * converters/img2sixel.c, converters/loader.h, - converters/malloc_stub.c, converters/malloc_stub.h, - converters/sixel2png.c, include/sixel-imageio.h.in, - include/sixel.h.in, src/dither.c, src/dither.h, src/frompnm.c, - src/frompnm.h, src/loader.c, src/output.c, src/output.h, - src/pixelformat.c, src/quant.c, src/quant.h, src/scale.c, - src/stb_image_write.c, src/writer.c: Update copyright notice - * include/sixel.h.in, src/dither.c, src/dither.h, src/pixelformat.c, - src/scale.c, src/tosixel.c, src/writer.c: Integrate some duplicated - code around sixel_helper_normalize_pixelformat() - * src/loader.c: Apply default background color to paletted PNG with - tRNS chunk - * src/loader.c: Suppress printf() formatter warings - * src/dither.c: Add some parentheses for suppressing GCC warnings - * src/stb_image.h: Retrive delay information from animated GIF - correctory - * src/loader.c: Add some malloc() error handlings and fix leaks + * configure: Rebuild -2015-02-20 Hayaki Saito + * configure.ac: Update version - * src/dither.c, src/dither.h, src/tosixel.c: Change the signature of - sixel_normalize_pixelformat() - * src/dither.c: Fixes for passing PngSuite odd sizes test (for Issue - #25) http://www.schaik.com/pngsuite/pngsuite_siz_png.html - * src/dither.c: Logging to stderr instead of stdout - * src/loader.c: Expand grayscale PNG to RGB format if needed - * converters/loader.c: Add more logs - * src/dither.c: Expand 1/2/4 bpp palette with considering surplus - bits - * converters/loader.c: Reset bitdepth after calling - png_set_strip_16() + * converters/loader.c: Minor fix -2015-02-19 Hayaki Saito + * converters/loader.c: Fallback other loader if loading process fails - * converters/loader.c: Suppress printf() formatter warings - * ChangeLog: Update ChangeLog - * Makefile.in: Rebuild - * converters/loader.c, src/dither.c: Add logging - * converters/img2sixel.1: Add descriptions about source image formats - to manpage of img2sixel(for Issue #24) + * converters/loader.c: Add header/footer comments -2015-02-18 Hayaki Saito + * converters/Makefile.am, converters/Makefile.in, converters/img2sixel.c, + converters/loader.c, converters/loader.h: Add loader.c - * converters/loader.c: Call png_set_strip_alpha() when expanding - paletted PNG to RGB888 pixelformat (for Issue #29) + * converters/img2sixel.c: Linting -Mon Feb 16 00:41:06 2015 +0900 saitoha + * .travis.yml: Update .travis.yml - * converters/loader.c: Squashed commit of the following: commit - 808aeaedf18532f04210c7c35ed1c9b74496e52a Use png_set_packing to - expand 1/2/4bpp paletted PNG (for Issue #29) commit - cb53ae183c25b140e9e0c53bc9318d97f04827fc Revert "libpng loader: - expand 1/2/4bpp palette to 8bpp (for issue #29)" This reverts - commit b6748d1a49477200a7dfb93c767207d96aec53d5. commit - b6748d1a49477200a7dfb93c767207d96aec53d5 libpng loader: expand - 1/2/4bpp palette to 8bpp (for issue #29) + * .travis.yml: Add some new travis build targets -2015-02-17 Hayaki Saito + * converters/img2sixel.c: Add integration for when both of gdlib and libcurl + are enabled - * converters/loader.c: Use png_set_packing to expand 1/2/4bpp - paletted PNG (for Issue #29) - * converters/loader.c: Revert "libpng loader: expand 1/2/4bpp palette - to 8bpp (for issue #29)" This reverts commit - b6748d1a49477200a7dfb93c767207d96aec53d5. + * converters/img2sixel.c: Fix run-time errors -2015-02-16 Hayaki Saito + * converters/img2sixel.c: Fix some build error - * converters/sixel2png.c, include/sixel-imageio.h.in, src/writer.c: - Fix sixel2png available (for issue #30) - * converters/loader.c: Always set background color and respect bKGD - chunk again (for Issue #31) + * config.h.in: Add HAVE_GD definition -2015-02-16 saitoha + * converters/img2sixel.c: Initial implementation of gd integration - * converters/loader.c: libpng loader: expand 1/2/4bpp palette to 8bpp - (for issue #29) +2014-05-19 Hayaki Saito -2015-02-15 Hayaki Saito + * configure, configure.ac: Search package gdlib not but libgd - * converters/loader.c, converters/stb_image.h: Respect -B option - regarding with GIF images with transparent index (for Issue #25) - * src/loader.c: Blend background color to RGBA image pixels with - respecting alpha channel - * converters/loader.c: libpng loader: background color support for - glayscale-alpha PNG (for issue #25) - * converters/img2sixel.c: Pass PLTE chunk of 1/2/4 bpp paletted PNG - specified by -m option directly to dither object - * converters/img2sixel.c, converters/loader.c, include/sixel.h.in, - src/dither.c, src/tosixel.c: libpng loader: Support 4bpp paletted - PNG with tRNS chunk (for issue #25) - * converters/img2sixel.c, converters/loader.c, include/sixel.h.in, - src/dither.c, src/tosixel.c: libpng loader: Support 1bpp paletted - PNG with tRNS chunk (for issue #25) - * converters/img2sixel.c, converters/loader.c, include/sixel.h.in, - src/dither.c, src/tosixel.c: libpng loader: Support 2bpp paletted - PNG with tRNS chunk (for issue #25) - * converters/loader.c: Don't check bKGD chunk before setting - background color - * converters/loader.c: Respect -B/--bgcolor option in libpng loader - when PNG color type is RGB (for issue #25) - * converters/img2sixel.1, converters/sixel2png.1: Update CONTRIBUTERS - section of man pages - * converters/sixel2png.c, include/sixel-imageio.h.in, src/loader.c, - src/writer.c: Minor fixes + * Makefile.in, configure, configure.ac, converters/Makefile.am, + converters/Makefile.in, include/Makefile.in, src/Makefile.in: Add --with-gd + option -2015-02-14 Hayaki Saito + * .gitignore, .travis.yml, configure, configure.ac: Up to date - * converters/Makefile.am, converters/Makefile.in: Add test case - whether stb_image can load a progressive jpeg (for issue #24) - * README.md: README.md: add @msmhrt to the contributer section - * Makefile.in: Rebuild Makefile.in - * converters/img2sixel.c: histogram_colors should be initialized - after sixel_dither_initialize() function call - * ChangeLog: Update ChangeLog - * ChangeLog: Update ChangeLog - * Makefile.in, converters/img2sixel.c: Add some parentheses - arithmetic operator '|', for suppressing GCC warnings - * converters/stb_image.h: Fix GCC a warning caused by comparison of - signed and unsigned type in conditional expression - * Makefile.in, config.h.in, configure, configure.ac, src/dither.c, - src/quant.c: Check strtoul and availability - * converters/img2sixel.c: Parse X11 color spec without - strtoul/strtoull + * .travis.yml: Update .travis.yml -2015-02-13 Hayaki Saito + * configure.ac: Change configure options: --enable-gdk-pixbuf to + --with-gdk-pixbuf --enable-libcurl to --with-libcurl - * Makefile.in, converters/img2sixel.c: Fix a syntax error caused by a - typo + * configure.ac: Cleanup -2015-02-12 Hayaki Saito + * .travis.yml: Fix travis test with using wine - * converters/img2sixel.c: Fix a leak around parsing -B option - * converters/img2sixel.c: Fix a typo in the output of -H - * converters/img2sixel.c: Fix a tiny memory leak when duplicated -m - option are specified + * .travis.yml: Add --prefix=/usr to configure option in travis script -2015-02-11 Hayaki Saito + * .travis.yml: Check memory leaks and access violation only when WINE is not + used - * converters/loader.c: Minor style fix - * converters/shell-completion/bash/img2sixel, converters/shell- - completion/zsh/_img2sixel: Add -B option to shell completion - settings + * configure: Rebuild configure script -2015-02-10 Hayaki Saito + * configure.ac: Bump version - * converters/loader.c: Background color support for 8bpp paletted PNG - with tRNS chunk using libpng (for Issue #25) + * configure, configure.ac, converters/Makefile.am, converters/Makefile.in: + Raise errors if gdk-pixbuf/libcurl are not available when they are enabled -2015-02-09 Hayaki Saito + * .travis.yml: Update .travis.yml - * converters/loader.c: Consider the behavior of libpng1.2 around - background color support(for Issue #25) + * converters/img2sixel.c: Minor fix -2015-02-08 Hayaki Saito + * configure, configure.ac: Add new configure options, --enable-gdk-pixbuf2 + and --enable-libcurl - * README.md, converters/img2sixel.1, converters/img2sixel.c: Add the - brief of -B option to README and manpage - * converters/loader.c: Fix build error when --without-png configure - option is specified - * converters/img2sixel.c, converters/loader.c, converters/loader.h: - Add -B/--bgcolor option (for Issue #25) - * converters/img2sixel.c: Fix noise problem when applying palette - (for issue #26) - * src/quant.c: Correct wrong histgram processing (for Issue #26) + * build-gdkpixbuf.sh: Drop build-gdkpixbuf.sh -2015-02-05 Hayaki Saito + * converters/img2sixel.c: Minor fix - * Makefile.in, converters/Makefile.am, converters/Makefile.in: Minor - fixes + * converters/Makefile.am, converters/Makefile.in: Update CFLAGS and LDADD + for img2sixel -2015-02-04 Hayaki Saito + * Makefile.in, aclocal.m4, config.h.in, configure, configure.ac, + converters/Makefile.in, include/Makefile.in, src/Makefile.in: Check + gdk-pixbuf2 and libcurl availability - * converters/loader.c, converters/stb_image.h, - patches/applied/stb_image.h.diff: Update stb_image to v2.02 (for - Issue #24) - * ChangeLog: Update ChnageLog + * build-gdkpixbuf.sh, converters/img2sixel.c: Integrate libcurl only if + gdk-pixbuf is not available -2015-02-03 Hayaki Saito +2014-05-18 Hayaki Saito - * examples/opengl/README.md: Add README of OpenGL example - * examples/opengl/main.c: Minor fix - * .gitignore: Update gitignore - * converters/Makefile.am, converters/Makefile.in: Add - converters/unittest.log to clean targets - * Makefile.in, configure, configure.ac: Detect availabilies for GD - functions correctly if gd.h is not in default include path + * converters/img2sixel.c: Minor fix -2015-02-02 Hayaki Saito + * converters/img2sixel.c: Minor fix - * config.h.in, converters/loader.c: Fix some wrong config.h - declaration: HAVE_XXX -> HAVE_DECL_XXX (for #23) - * config.h.in, configure, configure.ac, converters/loader.c, - ltmain.sh, m4/libtool.m4, m4/ltoptions.m4, m4/ltsugar.m4, - m4/ltversion.m4, m4/lt~obsolete.m4: Check availability of - png_set_{,expand_}gray_1_2_4_to_8 (#23) + * build-gdkpixbuf.sh, converters/img2sixel.c: * img2sixel.c: Use gdk-pixbuf + and libcurl. * build-gdkpixbuf.sh: Added. this commit is imported from + arakiken/libsixel. https://bitbucket.org/arakiken/libsixel/commits/fda0bcab1 + ec2598bada3d102d8f0cf35d848f6ff -2015-02-02 saitoha + * build-gdkpixbuf.sh, converters/img2sixel.c: * img2sixel.c: Use gdk-pixbuf + and libcurl. * build-gdkpixbuf.sh: Added. this commit is imported from + arakiken/libsixel. https://bitbucket.org/arakiken/libsixel/commits/fda0bcab1 + ec2598bada3d102d8f0cf35d848f6ff - * converters/loader.c: Workaround for 1/2/4bpp grayscaled image with - libpng1.2, reported by @msmhrt(#23) + * configure: Rebuild -2015-02-01 Hayaki Saito + * configure.ac: Update version - * ChangeLog: Update ChangeLog - * NEWS: Update NEWS - * converters/loader.c: Fix wrong bit depth handling issue reported by - @msmhrt (#22) + * converters/img2sixel.c: Fixup for the effect of invert option -2015-01-27 Hayaki Saito + * src/tosixel.c: Assume default SIXEL palette as fore-color - * ChangeLog: Update ChangeLog - * examples/opengl/main.c: OpenGL example: performance improvement +2014-05-17 Hayaki Saito -2015-01-24 Hayaki Saito + * converters/img2sixel.c: Fixup for correcting getopt option - * src/fromsixel.c: Fix a bad allocation error - * examples/opengl/config.guess, examples/opengl/config.sub: Add - missing config.sub and config.guess - * examples/opengl/Makefile.am, examples/opengl/Makefile.in, - examples/opengl/config.h.in, examples/opengl/configure, - examples/opengl/configure.ac, examples/opengl/main.c: Detect - CGL/GLX availability in opengl example configuration - * src/writer.c: Fix mingw build - * src/fromsixel.c: Do not free temporary buffer allocated by custom - allocator + * README.md, converters/img2sixel.1: Update manpage and README -2015-01-23 Hayaki Saito + * README.md, converters/img2sixel.1, converters/img2sixel.c: Fix typos: + sence -> sense - * README.md: Update README - * examples/opengl/Makefile.am, examples/opengl/Makefile.in, - examples/opengl/aclocal.m4, examples/opengl/compile, - examples/opengl/config.h.in, examples/opengl/configure, - examples/opengl/configure.ac, examples/opengl/depcomp, - examples/opengl/install-sh, examples/{osx/opengl/opengl.c => - opengl/main.c}, examples/opengl/missing, - examples/osx/opengl/Makefile: Use osmesa for opengl-sixel demo + * converters/img2sixel.c: Add invert option -2015-01-13 Hayaki Saito + * converters/quant.c: Minor fix - * Makefile.am, Makefile.in, converters/Makefile.am, - converters/Makefile.in, src/loader.c: Add check-am target to - makefiles + * README.md, configure: Rebuild -2014-12-30 Hayaki Saito + * configure.ac: Update minor version - * configure, configure.ac, package.json: Update version - * ChangeLog, NEWS: Update NEWS and ChangeLog - * src/dither.c: Add a comment block regarding the behavior of VT340 - palette(Issue #12) - * src/dither.c: Hotfix for VT-340's rotated palette(Issue #12) - * converters/Makefile.am, converters/Makefile.in, - converters/sixel2png.c, include/sixel-imageio.h.in, - src/Makefile.am, src/Makefile.in, src/loader.c, {converters => - src}/stb_image_write.c, {converters => src}/stb_image_write.h, - src/writer.c: Add new API: sixel_helper_write_image_file - * converters/Makefile.am, converters/Makefile.in, - converters/sixel2png.c, src/Makefile.am, src/Makefile.in, - src/loader.c: Cleanup sixel2png.c - * src/fromsixel.c: Arrange palette with 3byte per color format - * src/Makefile.am, src/Makefile.in: Build fix for MinGW - * converters/Makefile.am, converters/Makefile.in: Build fix + * converters/img2sixel.c: Enable missing -q/--quality option -2014-12-29 Hayaki Saito + * .gitignore: Update .gitignore - * src/Makefile.am, src/Makefile.in: Add -lm to LDADD of libsixel - * converters/Makefile.am, converters/Makefile.in, src/Makefile.am, - src/Makefile.in: Minor fixes - * include/sixel-imageio.h.in: Add missing sixel-imageio.h.in - * libsixel.pc.in: Update libsixel.pc.in - * converters/Makefile.am, converters/Makefile.in, src/Makefile.am, - src/Makefile.in: Remove unused dependencies from LIBADD and LDADD - * configure, configure.ac, converters/Makefile.am, - converters/Makefile.in, converters/img2sixel.c, - converters/loader.h, converters/stb_image.c, include/Makefile.am, - include/Makefile.in, src/Makefile.am, src/Makefile.in, {converters - => src}/frompnm.c, {converters => src}/frompnm.h, {converters => - src}/loader.c, {converters => src}/stb_image.h: Add new API: - sixel_helper_load_image_file - * converters/Makefile.am, converters/Makefile.in, - converters/img2sixel.c, converters/scale.h, include/sixel.h.in, - src/Makefile.am, src/Makefile.in, {converters => src}/scale.c: Add - new API sixel_helper_scale_image - * converters/img2sixel.c, converters/loader.c, converters/loader.h, - src/pixelformat.c: Cleanup loader.c - * Makefile.am, Makefile.in: Make sure to remove test.log in clean - target - * converters/img2sixel.c, converters/scale.c, converters/scale.h, - include/sixel.h.in, src/Makefile.am, src/Makefile.in, src/dither.c, - src/pixelformat.c, src/quant.c, src/tosixel.c: Add new API - sixel_helper_compute_depth and sixel_helper_normalize_pixelformat - * converters/img2sixel.c, converters/scale.c, converters/scale.h: - Cleanup scale.c +2014-05-16 Hayaki Saito -2014-12-28 Hayaki Saito + * configure, configure.ac: Update version - * converters/tests.c: Add missing tests.c - * .travis.yml, Makefile.am, Makefile.in, converters/Makefile.am, - converters/Makefile.in, src/dither.c, src/dither.h: Add basic tests - of dither.c + * converters/Makefile.am, converters/Makefile.in: Add some smoke tests -2014-12-26 Hayaki Saito +2014-05-15 Hayaki Saito - * config.h.in, configure, configure.ac: Add --enable-tests configure - option - * converters/img2sixel.c: Minor style improvement - * converters/img2sixel.c: Strip an unreached return statement + * src/tosixel.c: Define and select color index #1 when monochrome sixel mode -2014-12-24 Hayaki Saito + * converters/quant.c: Improve the quality of monochrome dithering - * ChangeLog, configure, configure.ac, package.json: Update version - * converters/img2sixel.c: Fix wrong crop option(-c) behavior - * src/tosixel.c: Fix memory leak and segmentation fault in rare cases - * src/tosixel.c: Minor fixes + * .travis.yml: Update .travis.yml -2014-12-19 Hayaki Saito + * .travis.yml: Amend fix of yml syntax error - * configure, configure.ac, package.json: Bump version - * ChangeLog, NEWS: Update ChangeLog and NEWS - * Makefile.in, configure, configure.ac, converters/Makefile.am, - converters/Makefile.in, include/Makefile.in, src/Makefile.in: - Define _ALL_SOURCE only in Interix environment + * .travis.yml: Update .travis.yml -2014-12-18 Hayaki Saito + * converters/quant.c: Revert "Omit some needless conditions", to fix access + violations This reverts commit 2cb46ca69a68a9eb837e0696080e27708286915c. - * converters/Makefile.am, converters/Makefile.in, - converters/img2sixel.c: Prohibit use of -8 and -P options at same - time - * src/tosixel.c: Cleanup - * src/tosixel.c: Avoid using magic strings - * src/tosixel.c: Define some macros for DCS processing +2014-05-14 Hayaki Saito -2014-12-18 IWAMOTO Kouichi + * .travis.yml: Integrate valgrind to .travis.yml - * converters/Makefile.am, converters/Makefile.in, src/Makefile.am, - src/Makefile.in: fix include path priority. + * configure: Rebuild -2014-12-09 Hayaki Saito + * configure.ac: Update version - * converters/Makefile.am, converters/Makefile.in: Fix the typo of - preprocesser definition _ALL_SOURCE + * converters/quant.c: Omit some needless conditions -2014-12-08 Hayaki Saito + * converters/img2sixel.c: Load map file with high quality mode - * converters/img2sixel.c: Don't define the variable 'lag' if - usleep(3) is not available + * README.md: Update README -2014-12-07 Hayaki Saito + * configure, configure.ac: Update version - * converters/img2sixel.c, converters/sixel2png.c: Don't use - unportable strdup(3) - * ChangeLog, NEWS: Update ChangeLog - * converters/Makefile.am, converters/Makefile.in: Don't use - unportable grep arguments for test - * converters/Makefile.am, converters/Makefile.in: Don't use shell- - builtin '!' - * Makefile.am, Makefile.in: Don't use -C option of make command, for - the portability - * converters/Makefile.am, converters/Makefile.in: Add definition - _ALL_SOURCES for some platforms - * config.h.in, converters/img2sixel.c, converters/sixel2png.c: Add - support for strdup-missing environments - * configure, configure.ac: Check strdup availability + * converters/img2sixel.1: Update manpage -2014-12-06 Hayaki Saito + * README.md: Add tw license notice to README - * configure, configure.ac: Build fix for Interix - * Makefile.in, configure, configure.ac, converters/Makefile.am, - converters/Makefile.in, include/Makefile.in, src/Makefile.am, - src/Makefile.in: Checks the availability of some C compiler warning - flags - * configure, configure.ac: Add conditional variable for makefile: - HAVE_GETOPT_LONG - * converters/Makefile.am, converters/Makefile.in: Fix tests as - respecting POSIX compliant behavior of getopt - * converters/img2sixel.c: Minor style fixes + * LICENSE.tw: Add license file of arakiken's tw -2014-12-05 Hayaki Saito + * converters/img2sixel.c, converters/quant.c: Use pattern dither when doing + monochrome quantization - * converters/img2sixel.c, converters/sixel2png.c: Suppress warnings - for Interix build(without HAVE_GEtOPT_LONG) - * configure, configure.ac, converters/Makefile.am, - converters/Makefile.in: Fix tests for some environments that have - not getopt_long - * src/tosixel.c: Replace integer literals 32768 to 'maxcolors' - * src/tosixel.c: Move a long case statement to a new function - * converters/loader.c: Suppress a clang warning: -Wunused-parameter - * configure, configure.ac, package.json: Bump version - * ChangeLog: Update ChangeLog - * NEWS: Update NEWS - * converters/loader.c, src/fromsixel.c: Style fixes + * converters/img2sixel.1: Update manpage -2014-12-04 Hayaki Saito + * README.md, converters/img2sixel.c: Minor fix - * converters/img2sixel.c: Fix a stupid typo - * README.md, converters/Makefile.am, converters/Makefile.in, - converters/img2sixel.1, converters/img2sixel.c, - converters/loader.c, converters/loader.h, converters/shell- - completion/bash/img2sixel, converters/shell- - completion/zsh/_img2sixel: Introduce -k, --insecure option for - libcurl integration - * converters/Makefile.am, converters/Makefile.in: Add test for SSL - access with libcurl + * README.md: Update README -2014-12-03 OBATA Akio + * converters/quant.c: Handle some out of memory errors - * configure, configure.ac: Kill bashizm '=' operator for test(1) is - not portable. + * converters/img2sixel.c, converters/quant.c: Minor fix -2014-12-01 Hayaki Saito + * converters/img2sixel.c, converters/quant.c, converters/quant.h: Implement + --quality option - * NEWS: Update NEWS - * ChangeLog, configure, configure.ac, package.json: Bump version - * converters/img2sixel.c: Build fix - * converters/img2sixel.c, converters/loader.c: Fix broken - -m(--mapfile option) - * README.md: Revert "Update README" This reverts commit - 4dfed12be17c10d0161c51eca0b38369e93023d4. - * README.md: Update README - * README.md: Update README - * include/sixel.h.in, src/dither.c: A bit of fixes of API signature +2014-05-13 Hayaki Saito -2014-11-30 Hayaki Saito + * converters/quant.c: Catch unhandled errors - * ChangeLog: Update ChangeLog - * converters/Makefile.am, converters/Makefile.in: Minor fix - * NEWS: Update NEWS - * README.md: Add a link to @arakiken's document(libsixel.pdf) to - README - * src/fromsixel.c: Minor style fix + * README.md, converters/img2sixel.1, converters/img2sixel.c, + converters/quant.c, converters/scale.c, converters/scale.h: Add welsh + resampling filter -2014-11-30 saitoha +2014-05-12 Hayaki Saito - * converters/img2sixel.c: Fix a segmentation error caused by illigal - depth dealing + * converters/quant.c: Minor fix -2014-11-30 Hayaki Saito + * README.md, converters/img2sixel.1: Add reference notations of ImageMagick - * converters/Makefile.am, converters/Makefile.in: Add tests for some - edge cases of sixel decoding - * converters/Makefile.am, converters/Makefile.in: Ammend fix for DCS - parameter parsing tests - * converters/Makefile.am, converters/Makefile.in: Fix test for wine - environment - * converters/Makefile.am, converters/Makefile.in: Add a test of - parsing sixel DCS parameters - * converters/Makefile.am, src/fromsixel.c: Add a test of decoding big - sixel - * src/tosixel.c: Add a pair of ref/unref call for output context - * converters/img2sixel.c: Don't trust loop_count report of gdk-pixbuf - loader - * converters/Makefile.am, converters/Makefile.in: Add tests for -E - (--encode-policy) option - * converters/Makefile.am, converters/Makefile.in: Add a test for - option "-l auto" - * converters/Makefile.am, converters/Makefile.in: Add a test for - combination of options, -u and -g - * converters/Makefile.am, converters/Makefile.in, - converters/img2sixel.c, converters/loader.c, converters/loader.h: - If input data is empty or 1byte LF, the loader ignores it and - returns successfully +2014-05-11 Hayaki Saito -2014-11-30 arakiken + * configure, configure.ac: Bump version - * src/tosixel.c: Search a next node from nodes after a current node - instead of context->node_top in sixel_encode_body(). + * converters/img2sixel.c: Implement options, --width=auto/--height=auto -2014-11-30 Hayaki Saito + * converters/img2sixel.1: Update manpage - * converters/Makefile.am, converters/Makefile.in: Add tests for - applying vt340 built-in palette - * converters/img2sixel.c: Separate convert_sixel into 3 functions - * converters/Makefile.am, converters/Makefile.in: Fix pipe-mode test - for mingw build - * converters/Makefile.am, converters/Makefile.in: Don't test -D - option(pipe mode) in wine environment + * README.md, converters/img2sixel.c: Update README -2014-11-30 arakiken + * converters/img2sixel.c: Accept units(%/px) with -w and -h options - * src/tosixel.c: Search a next node from nodes after a current node - instead of context->node_top in sixel_encode_body(). + * config.h.in, configure, configure.ac, converters/malloc_stub.c, + converters/malloc_stub.h: Prepare for SSE2 extension -2014-11-30 Hayaki Saito +2014-05-11 hsaito - * converters/Makefile.am, converters/Makefile.in: Add tests for - applying vt340 built-in palette - * NEWS: Update NEWS - * converters/img2sixel.c: Separate convert_sixel into 3 functions - * converters/Makefile.am, converters/Makefile.in: Fix pipe-mode test - for mingw build - * converters/Makefile.am, converters/Makefile.in: Don't test -D - option(pipe mode) in wine environment - * README.md, configure, configure.ac, package.json: Update minor - version - * configure, configure.ac: Update libtool version to 1.3.0 - * NEWS: Update NEWS - * ChangeLog: Update ChangeLog - * NEWS: Update NEWS - * src/quant.c: Minor change of mehod of creating histogram - * converters/Makefile.am: Add some tests of loading grayscaled PNG - * converters/img2sixel.c: Make palette from grayscaled PNG with -m - option - * converters/loader.c: Expand 8bpp grayscale input into 24bit colors - if it is needed - * README.md, converters/img2sixel.1, converters/img2sixel.c, - converters/shell-completion/bash/img2sixel, converters/shell- - completion/zsh/_img2sixel: Add new argument definitions of -b - option, vt340mono and vt340color - * include/sixel.h.in, src/dither.c: Add new built-in palette - definition, VT340 mono and VT340 color - * src/dither.c: Style improvement + * converters/quant.c: Optimize dithering -2014-11-29 Hayaki Saito +2014-05-10 Hayaki Saito - * converters/loader.c: libpng loader supports 8bit grayscale as an - output format - * converters/img2sixel.c: 8bit grayscale input format is supported - internally by img2sixel - * src/tosixel.c: Accept grayscaled input correctly - * images/snake-monochrome.png: Add a monochrome test image - * include/sixel.h.in: Reserve some new grayscale pixelformats - * .travis.yml, converters/stb_image_write.h: Revert 2ab568c, 52129e9 - * .travis.yml: Update .travis.yml - * converters/stb_image_write.h: Suppress warnings of breaking strict- - aliasing rules on i586-mingw32msvc build target - * converters/loader.c: Make sure the local variable 'stride' is - initialized + * converters/quant.c: Fix a worng comment -2014-11-28 Hayaki Saito + * configure, configure.ac: Update version - * converters/stb_image.h: Fix acesss violation error on 32bit mingw - build + * converters/quant.c: Fix bugs caused by some typos -2014-11-27 Hayaki Saito + * README.md, converters/img2sixel.1, converters/img2sixel.c, + converters/quant.c, converters/quant.h: Add burkes' dithering method - * src/quant.c: Enable detailed trace if img2sixel is built with - --enable-debug option + * README.md, converters/img2sixel.1, converters/img2sixel.c, + converters/quant.c, converters/quant.h: Add stucki's dithering method -2014-11-26 Hayaki Saito + * configure, configure.ac: Bump version - * converters/stb_image.h: Retrive bit depth of indexed PNG from IHDR - chunk - * .travis.yml, converters/Makefile.am, converters/Makefile.in: Print - more detailed logs on travis - * converters/stb_image.h: Load 4bpp indexed PNG without libpng loader - * converters/img2sixel.c: Fix warnings of ordered comparison of - pointer with integer zero - * converters/img2sixel.c, converters/loader.c, converters/loader.h: - Don't use internal indexed processing if less number of colors than - the source palette are specified by -p option - * converters/img2sixel.c: Don't use indexed processing if -m,-e,-I,-b - options are specified - * converters/img2sixel.c: Strip trailing spaces - * converters/img2sixel.c: Crop images with preserving PAL8 pixel - format - * converters/Makefile.am, converters/Makefile.in: Add tests for - internal indexed processing + * README.md: Update README -2014-11-25 Hayaki Saito + * converters/img2sixel.1, converters/img2sixel.c, converters/quant.c, + converters/quant.h: Add Bill Atkinson's dithering method - * images/map8.six, images/snake.six: Add test sixel images - * converters/loader.c: Move the sixel loader process as a separated - function - * converters/img2sixel.c, converters/loader.c: SIXEL loader preserves - PAL8 pixel format if possible - * converters/img2sixel.c, converters/loader.c, converters/loader.h: - Pass pixelformat value returned by loader component to dithering - context initializer - * converters/loader.c: Add missing break statement +2014-05-09 Hayaki Saito -2014-11-24 Hayaki Saito + * converters/Makefile.am, converters/Makefile.in, src/Makefile.am, + src/Makefile.in: Strip -O3 option - * converters/loader.c: Retrive pixelformat from png loader - * converters/frompnm.c, converters/frompnm.h, converters/loader.c: - Change the signature of pnm loader to retrive pixelformat - * converters/frompnm.c, converters/loader.c: Style improvements - * converters/Makefile.am, converters/Makefile.in, - converters/img2sixel.c, converters/loader.c, converters/loader.h, - include/sixel.h.in, src/dither.c, src/tosixel.c: Support paletted - input - * images/map16-palette.png, images/map8-palette.png, images/snake- - palette.png: Add paletted PNG images + * converters/scale.c: Make nearest neighbor method faster -2014-11-23 Hayaki Saito + * README.md, converters/img2sixel.1, converters/img2sixel.c, + converters/scale.c, converters/scale.h: Add gaussian/hanning/hamming filter + for resampling - * converters/Makefile.am, converters/Makefile.in, images/snake- - grayscale.jpg, images/snake-grayscale.png: Add tests of loading - grayscaled jpeg/png images - * ChangeLog, configure, configure.ac, package.json: Bump version - * converters/loader.c: Fix a segmentation fault while loading - grayscaled PNG - * converters/shell-completion/bash/img2sixel: Update bash completion - file - * converters/shell-completion/zsh/_img2sixel: Update zsh completion - file +2014-05-08 Hayaki Saito -2014-11-22 Hayaki Saito + * configure, configure.ac: Update version - * converters/Makefile.am, converters/Makefile.in: Add tests for - completion - * converters/img2sixel.c, include/sixel.h.in, src/dither.c, - src/dither.h, src/quant.c, src/tosixel.c: Chenage symbols of enum - pixelFormat + * README.md, converters/img2sixel.1, converters/img2sixel.c: Add and + implement -f and -s option -2014-11-20 Hayaki Saito + * converters/img2sixel.c, converters/quant.c, converters/quant.h, + converters/scale.c, converters/scale.h: Cleanup - * converters/img2sixel.c, converters/sixel2png.c, - examples/osx/opengl/opengl.c: Fix for DCL20-C compliant: - "Explicitly specify void when a function accepts no arguments" http - s://www.securecoding.cert.org/confluence/display/seccode/DCL20-C.++ - Explicitly+specify+void+when+a+function+accepts+no+arguments - * NEWS: Update NEWS - * converters/Makefile.am, converters/Makefile.in: Add more tests for - -b option - * converters/Makefile.am, converters/Makefile.in, - converters/img2sixel.c: Add invalid option handler for -b option - * converters/Makefile.am, converters/Makefile.in: Add some tests for - -b option + * converters/img2sixel.c, converters/quant.c: Cleanup -2014-11-19 arakiken + * converters/quant.c: Minor fix of lookup method - * src/tosixel.c: Fix a bug which outputs sixel sequence exceeding the - size of an original image if encode_policy is ENCODEPOLICY_SIZE. + * converters/img2sixel.c, converters/quant.h: Minor fix for processing + options, -d and -r -2014-11-19 Hayaki Saito + * src/tosixel.c: Strip unused code - * ChangeLog, configure, configure.ac, package.json: Bump micro - version - * converters/img2sixel.c: Suppress color expansion on loading - mapfiles + * .travis.yml: Update .travis.yml -2014-11-18 Hayaki Saito + * README.md, converters/img2sixel.1, converters/img2sixel.c, + converters/scale.c: Change default re-sampling option to bilinear method - * converters/Makefile.in: Rebuild + * configure, configure.ac: Update version -2014-11-18 saitoha + * converters/img2sixel.c, converters/quant.c, converters/quant.h: Add + "foptimize" strategy option to LSQ_ApplyPalette - * converters/Makefile.am: Fix test for MinGW environment + * converters/img2sixel.1: Update manpage -2014-11-18 Hayaki Saito + * converters/img2sixel.1: Update manpage - * .travis.yml: Update .travis.yml + * README.md: Update README -2014-11-17 Hayaki Saito + * converters/img2sixel.c: Fix an incompatible type argument substitution - * .travis.yml: Update .travis.yml + * converters/img2sixel.c: Minor fix -2014-11-17 saitoha + * converters/img2sixel.c: Fix a segmentation error - * converters/Makefile.am, converters/Makefile.in, - converters/img2sixel.1: Fix for passing manpage test + * converters/img2sixel.c: Fix a memory leak -2014-11-17 Hayaki Saito + * converters/img2sixel.c: Add missing argument for getopt - * converters/img2sixel.c: Amend fixes for -b option - * converters/img2sixel.c: Update optstring which is passed to - getopt() - * converters/Makefile.am, converters/Makefile.in, - converters/img2sixel.1: Add the explanation of -E option to manpage - * converters/Makefile.am, converters/Makefile.in: Add a test for - avoid forgetting to write about new options in manpage - * README.md, converters/img2sixel.1, converters/img2sixel.c: Add - missing options in manpage - * README.md, converters/img2sixel.1, converters/img2sixel.c: - Introduce -b/--builtin-palette option instead of -x/-y options + * converters/img2sixel.c: Implement --resampling option -2014-11-16 arakiken + * converters/img2sixel.c: Cleanup - * converters/img2sixel.c: Fix help message. - * converters/img2sixel.c, include/sixel.h.in, src/output.c, - src/output.h, src/tosixel.c: Add -E, --encode-policy mode. + * converters/img2sixel.c: Add -r/--resampling option to img2sixel -2014-11-16 saitoha + * converters/scale.c: Make LSS_scale enable to switch scaling method - * src/quant.c: Minor style improvement + * converters/scale.c: Minor fix of normalize function -2014-11-16 Hayaki Saito + * converters/scale.c: Add various resampling functions - * src/quant.c: Prevent memory access violation - * src/quant.c: Reduce working memory allcation size during prepare - histogram + * converters/scale.c: Add missing include delective -2014-11-15 Hayaki Saito + * converters/scale.c: Workaround for the environment where M_PI is not + defined - * src/dither.c: Skip memcpy only when pixelformat is RGB888 - * src/quant.c: Add missing parameter type definition - * src/dither.c, src/quant.c, src/quant.h: Pass pixelformat instead of - depth to sixel_quant_make_palette - * src/dither.c, src/quant.c, src/quant.h: Rename functions prefixed - by 'LSQ' to sixel_quant_xxx - * src/dither.c, src/tosixel.c: convert pixelformat in - sixel_dither_apply_palette - * src/tosixel.c: Use dither->pixelformat internally - * include/sixel.h.in, src/dither.c, src/tosixel.c: Introduce new API: - sixel_dither_set_pixelformat - * src/dither.c, src/dither.h: Introduce a new member for dithering - context object: pixelformat - * src/dither.c, src/dither.h, src/tosixel.c: Rename internal API - sixel_apply_palette to sixel_dither_apply_palette + * converters/img2sixel.c, converters/quant.c, converters/scale.c, + converters/scale.h: Add methodForResampling argument to LSS_scale signature -2014-11-15 saitoha + * converters/scale.h: Add enum definition identifying methods for + re-sampling - * converters/loader.c: Fix a maybe-uninitialized GCC warning + * converters/img2sixel.1: Strip a trailing space -2014-11-15 Hayaki Saito +2014-05-07 Hayaki Saito - * converters/loader.c: Get rid of unused variables + * converters/quant.c: Minor fix around switching diffusion method -2014-11-15 saitoha + * converters/Makefile.am, converters/Makefile.in, src/Makefile.am, + src/Makefile.in: Add -O3 to CFLAGS - * src/fromsixel.c: Revert "Fix overflow issue in sixel_decode" This - reverts commit 0ae94a3e6fcfc574c7a32fc3e9c80594de4d778b. - * converters/loader.c, converters/sixel2png.c: Don't use setjmp for - the future because it's thread-unsafe - * converters/loader.c: Make PNG loader using libpng as a separated - function - * converters/stb_image.h: Suppress an -Wsigned error in - converters/stb_image.h - * converters/loader.c: Strip an unused local variable - * converters/img2sixel.c: Strip an extra conditional directive - * converters/img2sixel.c: Strip an extra conditional clause + * converters/img2sixel.c, converters/scale.c, converters/scale.h: Fix the + signature of LSS_Scale -2014-11-15 Hayaki Saito + * converters/quant.c: Handle out-of-memory errors - * include/sixel.h.in: Add dummy members to some structs in sixel.h - because empty struct is a GNU extension - * converters/img2sixel.c, src/quant.c, src/tosixel.c: Suppress sign- - compare and unused-parameter warnings by clang - * src/fromsixel.c: Fix overflow issue in sixel_decode - * converters/Makefile.am, converters/Makefile.in, src/Makefile.am, - src/Makefile.in: Build with extra waning flags + * converters/quant.c: Fix memory leak -2014-11-14 arakiken + * converters/quant.c: Optimization for applying palette - * src/tosixel.c: Optimize encoding to sixel sequence. - (http://mlterm.sf.net/optimize-sixel.png) + * converters/Makefile.am, converters/Makefile.in: enable HDR image format -2014-11-14 Hayaki Saito + * converters/Makefile.am, converters/Makefile.in: Fix build - * src/quant.c: Apply dither to more pixels in the edge + * README.md, converters/img2sixel.1: Update README and manpage -2014-11-13 Hayaki Saito + * converters/img2sixel.c: Update --help description - * src/dither.c, src/dither.h, src/tosixel.c: Change symbol names: - 'bitfield' -> 'pixelformat' - * .travis.yml: Update .travis.yml - * converters/sixel2png.c: Correct wrong correspondence between short - and long options: --help/--version - * src/dither.c: Suppress GCC warnings - * converters/Makefile.am, converters/Makefile.in: Add more tests - * converters/loader.c: Use malloc instead of calloc - * converters/img2sixel.c, include/sixel.h.in, src/dither.c, - src/dither.h, src/quant.c, src/quant.h, src/tosixel.c: Add new API: - sixel_dither_set_optimize_palette - * src/quant.c: Improve dithering performance + * converters/Makefile.am, converters/Makefile.in: Rebuild -2014-11-12 Hayaki Saito + * converters/img2sixel.c: Implement --width/--height using LSS_scale - * include/sixel.h.in: Reformat sixel.h.in + * converters/img2sixel.c: Add new options, --width and --height -2014-11-11 Hayaki Saito + * converters/scale.c: Add missing include derectives - * converters/Makefile.am, converters/Makefile.in, - converters/img2sixel.c: Cleanup + * converters/scale.c, converters/scale.h: Add the image resizing function -2014-11-11 saitoha +2014-05-04 Hayaki Saito - * aclocal.m4, config.guess, config.h.in, config.sub, configure, - configure.ac, converters/loader.c, ltmain.sh, m4/libtool.m4: Don't - include setjmp.h + * config.h.in, converters/Makefile.in: Update configure script -2014-11-10 Hayaki Saito + * converters/Makefile.am: Add manpages to distributed files - * config.h.in, converters/Makefile.am, converters/Makefile.in: Update - tests - * README.md, converters/img2sixel.1: Update documents - * converters/img2sixel.c, include/sixel.h.in, src/dither.c, - src/quant.c: Implement new quality mode: full - * src/quant.c: Fix broken lookup_normal strategy function - * converters/quant.h: Remove an unused file - * src/quant.c, src/tosixel.c: Style improvements - * src/fromsixel.c: Change default background color of sixel2png to 15 + * converters/sixel2png.1: Add the manpage of sixel2png -2014-11-09 Hayaki Saito + * converters/img2sixel.1: Add the manpage of img2sixel - * configure, configure.ac, converters/Makefile.am, - converters/Makefile.in, converters/loader.c, - converters/sixel2png.c: Check setjmp availability - * src/quant.c: Correct reversed test condition for HAVE_CALLOC - * converters/Makefile.am, converters/Makefile.in, - converters/img2sixel.c: Test -s option more efficiently - * converters/Makefile.am: Add tests for loading big sixel image - * converters/Makefile.am, converters/Makefile.in: Update tests - * converters/Makefile.am: Update tests - * converters/Makefile.in: Update tests - * converters/Makefile.am, converters/Makefile.in: Update tests - * converters/Makefile.am, converters/Makefile.in, images/seq2gif.gif: - Add tests for GIF animation rendering + * converters/img2sixel.c: Fix --help descriptions -2014-11-08 Hayaki Saito +2014-05-02 Hayaki Saito - * converters/frompnm.c: Cherry-picked edd88d0: Make img2sixel enable - to load pbm files + * .travis.yml: Remove amd64-mingw32msvc target -2014-11-09 Hayaki Saito + * .travis.yml: Add new targets {i586,amd64}-mingw32msvc - * converters/loader.c: Prevent segfault with -m option in libpng - loader - * configure, configure.ac, package.json: Bump version - * converters/loader.c: Fix segfault on using gdk-pixbuf loader with - -m option + * converters/img2sixel.c: Cleanup -2014-11-09 OBATA Akio + * README.md: Add travis status image to README.md - * configure, configure.ac: Kill bashizm '=' operator for test(1) is - not portable. +Fri May 2 09:57:59 2014 +0900 Hayaki Saito -2014-11-09 Hayaki Saito + * .travis.yml: Squashed commit of the following: commit + ff949f9d7e3118634c6c8aed513f0709fe6a05bc Fix a typo commit + d551b421e9cfae2e2dc5eedea83c2d3fae2edbe9 Update travis build commit + d98e174afe4cc353ff5aa154f3e0c55b65c8d6e6 Update travis build commit + bccc8145faa03b2fd56c777ace7aedd38cd5a0b6 Fix travis build commit + 53c98ad4740eeffaf179e314c21a690d3a0524f9 Fix travis build commit + aef80bdbbdb36d51073326477894c837672975f6 Update .travis.yml - * .travis.yml: Update .travis.yml - * .travis.yml, converters/Makefile.am, converters/Makefile.in: Update - .travis.yml - * converters/Makefile.am, converters/Makefile.in: Update .travis.yml - * configure, configure.ac, converters/Makefile.am, - converters/Makefile.in, converters/img2sixel.c, include/sixel.h.in, - src/dither.c, src/tosixel.c: Rename the option "-F,--fullcolor" to - "-I,--high-color" +2014-05-02 Hayaki Saito -2014-11-08 Hayaki Saito + * .travis.yml: Fix a typo - * converters/frompnm.c: Make img2sixel enable to load pbm files - * converters/Makefile.in: Update tests - * converters/Makefile.am: Update tests - * images/snake-ascii.pbm, images/snake-ascii.pgm, images/snake- - ascii.ppm, images/snake.pbm, images/snake.pgm, images/{snake.pnm => - snake.ppm}: Add various ppm images for testing - * converters/Makefile.in: Update tests - * converters/img2sixel.c: Fix leaks for the combinated case that - 15bpp mode and pipe mode are enabled - * converters/Makefile.am: Update tests - * converters/img2sixel.c: Build fix for some system which don't - provide clock or usleep - * ChangeLog, configure, configure.ac, package.json: Update version - * converters/Makefile.am, converters/Makefile.in, src/dither.c: - Update tests - * aclocal.m4, configure, converters/Makefile.am, - converters/Makefile.in: Update tests - * converters/img2sixel.c, src/dither.c: Enable some options(-f, -s, - and -q) ignored unintentionally - * converters/Makefile.am, converters/Makefile.in: Add some tests - * converters/Makefile.am, converters/Makefile.in, - converters/img2sixel.c, src/tosixel.c: Cleanup + * .travis.yml: Update travis build -2014-11-08 saitoha + * .travis.yml: Update travis build - * .travis.yml: Update .travis.yml + * .travis.yml: Fix travis build -2014-11-08 Hayaki Saito + * .travis.yml: Fix travis build - * .travis.yml: Build with --enable-debug on travis - * converters/sixel2png.c: Don't include stb_image_write.h if libpng - is used - * converters/Makefile.am, converters/Makefile.in, - converters/sixel2png.c: Add failure cases to tests - * src/fromsixel.c: ColTab -> color_table - * src/fromsixel.c: Fix leaks on some error cases - * .travis.yml: Update .travis.yml - * converters/Makefile.am, converters/Makefile.in, src/quant.c: Update - tests - * .travis.yml, converters/Makefile.am: Add more tests - * converters/Makefile.am, converters/Makefile.in: Add tests for - various options + * .travis.yml: Update .travis.yml -2014-11-07 Hayaki Saito + * converters/sixel2png.c: Fix a segmentation error - * configure, configure.ac, converters/Makefile.am, - converters/Makefile.in: Add a test for libcurl integration - * converters/Makefile.am, converters/Makefile.in: Add tests for - various image formats - * converters/Makefile.am, converters/Makefile.in: Add tests for pipe- - mode + * .travis.yml: Minor fix -2014-11-07 saitoha + * .travis.yml: Update .travis.yml - * .travis.yml: Update .travis.yml - * aclocal.m4, configure, configure.ac, converters/img2sixel.c: - Various fixes for MinGW build + * .travis.yml: Update .travis.yml -2014-11-06 Hayaki Saito + * .travis.yml: Update .travis.yml - * src/tosixel.c: Implement various dithering method for 15bpp mode + * .travis.yml: Update .travis.yml -2014-11-05 Hayaki Saito + * .travis.yml: Fix travis build errors - * src/tosixel.c: Apply floyd steinberg dithering with 15bpp output - mode - * src/tosixel.c: Cleanup + * .travis.yml: Add .travis.yml -2014-11-05 saitoha + * converters/quant.h: Minor fix - * converters/malloc_stub.c, src/tosixel.c: Suppress warings on MinGW - environment + * configure, configure.ac: Bump version -2014-11-04 arakiken + * configure: Update configure script - * src/tosixel.c: Remove unnecessary variables 'src' and 'orig_src'. - * src/tosixel.c: Allocate 'rgbhit' and 'rgb2pal' on heap instead of - stack. - * src/tosixel.c: Remove an extra space. + * configure.ac, converters/img2sixel.c, converters/sixel2png.c: Fix broken + build for non-win32 environment -2014-11-04 Hayaki Saito +2014-05-01 Hayaki Saito - * src/dither.c, src/quant.c: Amend fix for suppressing GCC warnings - * src/dither.c, src/quant.c: Revert "Suppress GCC 4.9.1 warnings" - This reverts commit 289b2d7ec4f0e06fe5fc85a8b11eafe536331e04. - * src/dither.c, src/quant.c: Suppress GCC 4.9.1 warnings - * converters/img2sixel.c: Include sys/types.h to use fd_set - * converters/img2sixel.c: Minor fix - * config.h.in, configure, configure.ac, converters/img2sixel.c: - Include sys/select.h to fix build on MinGW environment + * config.h.in, configure, converters/Makefile.in: Rebuild configure script -2014-11-03 Hayaki Saito + * converters/sixel2png.c: Fix build for some environment which have only + _O_BINARY - * README.md, converters/img2sixel.1, converters/img2sixel.c: Update - document for --pipe-mode + * configure.ac: Checks also _O_BINARY -2014-11-03 arakiken + * Makefile.am, Makefile.in, converters/Makefile.am: Add new target winetest - * src/tosixel.c: Remove a performance hack which inserts '\n' after - palette definition. + * converters/quant.c, converters/sixel2png.c: Get rid of utf8_t -2014-11-03 Hayaki Saito + * converters/sixel2png.c: Improve error handling - * configure, configure.ac, package.json: Bump version - * converters/loader.c: Interpret an image expanded by - png_set_palette_to_rgb as a 3-channel image - * converters/img2sixel.1: Delete duplicated contributers - * config.h.in, configure, configure.ac, converters/img2sixel.c, - converters/loader.c, converters/loader.h: Use clearerr instead of - fseek - * config.h.in, configure, configure.ac, converters/img2sixel.c, - converters/loader.c, converters/loader.h: Use fseek instead of - rewind, and check the availability of fseek - * converters/img2sixel.c, converters/loader.c: Add pipe mode - feature(-D/--pipe-mode) - * converters/img2sixel.c: Avoid scanf buffer overflow - * converters/img2sixel.c: Add missing options in brevity help - * ChangeLog: Update ChangeLog - * configure, configure.ac, package.json: Update version - * converters/loader.c: Fix a segmentation fault occurs when using - libpng loader - * src/output.h, src/tosixel.c: Drop unnecessary variable - sixel_output_t::conv_palette + * converters/sixel2png.c: Support STDIN on windows console -2014-11-02 arakiken + * converters/img2sixel.c, converters/sixel2png.c, + converters/stb_image_write.h: Respect HAVE_O_BINARY, HAVE_SET_MODE, + HAVE__SET_MODE - * src/tosixel.c: Remove unnecessary check. (nwrite <= 0) Cherry- - picked from cf00bed Conflicts: src/tosixel.c + * converters/img2sixel.c, converters/sixel2png.c: Respect HAVE_ERRNO_H -2014-11-03 Hayaki Saito + * config.h.in, configure: Rebuild configure script - * src/fromsixel.c: Strip unused variables - * converters/loader.c: Replace some indent tabs to spaces - * include/sixel.h.in, src/dither.c: Fix a typo of API signature(#10). - old one is still remained. + * configure.ac: Check errno.h -2014-11-02 arakiken + * configure.ac: Check O_BINARY definition - * src/tosixel.c: Separate sixel_encode_impl() into - sixel_encode_header(), sixel_encode_body() and - sixel_encode_footer(). Cherry-picked from 339d958. Conflicts: - src/tosixel.c - * src/tosixel.c: Remove unnecessary check. (nwrite <= 0) - * src/tosixel.c: Separate sixel_encode_impl() into - sixel_encode_header(), sixel_encode_body() and - sixel_encode_footer(). - * src/tosixel.c: Remove a trailing space. Add sixel_dither_unref() - before return (-1). - * src/dither.c: Replace indent tabs to spaces. - * converters/img2sixel.c, include/sixel.h.in, src/dither.c, - src/tosixel.c: Support 15bpp color sixel. (-F option) + * converters/Makefile.am, converters/Makefile.in, converters/sixel2png.c: + Link malloc_stub.c with sixel2png -2014-11-01 Hayaki Saito + * config.h.in, configure, configure.ac, converters/img2sixel.c: Don't use + _O_BINARY to prevent build error - * README.md: Update README + * converters/img2sixel.c: Fix for reading STDIN of windows console -2014-10-29 Hayaki Saito + * converters/img2sixel.c, converters/quant.c: Include malloc_stub.h - * src/image.c: Remove unused source file image.c + * converters/Makefile.am, converters/Makefile.in: Add malloc_stub.c to + target source files -2014-10-28 Hayaki Saito + * converters/malloc_stub.c, converters/malloc_stub.h: Add malloc stub files - * converters/img2sixel.1: Add contributers - * converters/img2sixel.1: Correct swapped explanation of dithering - methods atkinson and fs + * converters/img2sixel.c, converters/sixel2png.c: Implement + rpl_malloc/rpl_realloc for mingw target -2014-10-27 Vertis Sidus + * converters/img2sixel.c: Define STBI_HEADER_FILE_ONLY more explicitly - * converters/img2sixel.c: Added command line options to use XTERM - palettes. + * README.md, converters/img2sixel.c: Fix wrong english -2014-10-26 Hayaki Saito +2014-04-30 Hayaki Saito - * NEWS: Update NEWS - * configure, configure.ac, package.json: Bump version - * README.md: Update README - * README.md: Update README - * README.md: Update README - * README.md: Update README - * NEWS: Update NEWS - * ChangeLog: Update ChangeLog - * converters/shell-completion/bash/img2sixel: Update bash completion - file - * converters/shell-completion/zsh/_img2sixel: Update zsh completion - file - * README.md, converters/img2sixel.1: Update manpage and README.md - * converters/img2sixel.c: Update help - * converters/sixel2png.c: Write png data using libpng by sixel2png - * converters/sixel2png.c: Fix a typo - * converters/sixel2png.c: Cleanup - * converters/loader.c: Accepts sixel as input format by img2sixel - * README.md: Update README - * configure, configure.ac, package.json: Bump version - * ChangeLog: Update ChangeLog - * converters/img2sixel.c: Fix segmentation fault on quitting GIF - animation with -u option - * ChangeLog, NEWS: Update ChangeLog and NEWS - * converters/img2sixel.c, src/tosixel.c: Support HLS palette + * configure, configure.ac: Initial package relase -2014-10-25 Hayaki Saito + * configure, configure.ac, converters/Makefile.am, converters/Makefile.in: + Update configure option - * configure, configure.ac: Don't terminate configure process if - --with-libcurl=auto - * .travis.yml: Update .travis.yml - * .travis.yml: Update .travis.yml - * configure, configure.ac: Don't check pkg-config availability if - $cross_compile == yes - * Makefile.in, configure, configure.ac, converters/Makefile.in, - include/Makefile.in, src/Makefile.in: Use $PKG_CONFIG environment - variable instead of $have_pkg_config - * configure, configure.ac: Don't use system pkg-config if - $cross_compile == "yes" - * .travis.yml: Update .travis.yml - * .travis.yml: Update .travis.yml - * .travis.yml, configure, configure.ac: Update .travis.yml - * .travis.yml: Update .travis.yml - * configure, configure.ac: Checks zlib availability with libpng, - workaround for MinGW build - * README.md, configure, configure.ac: Links libcurl automatically - * Makefile.in, NEWS, configure, configure.ac, converters/Makefile.am, - converters/Makefile.in, include/Makefile.in, src/Makefile.in: Build - with libjpeg/libpng automatically - * converters/loader.c: Strip alpha in png loader +2014-04-28 Hayaki Saito -2014-10-22 Hayaki Saito + * Makefile.in, config.h.in, configure, configure.ac, converters/Makefile.in, + include/Makefile.in, src/Makefile.am, src/Makefile.in: Start to define ABI + version - * Makefile.am, Makefile.in, converters/Makefile.am, - converters/Makefile.in, images/snake.png: Add test for loading png - with libpng - * configure, configure.ac, converters/Makefile.am, - converters/Makefile.in, images/snake-progressive.jpg: Add a test - for loading progressive jpeg - * include/sixel.h.in, src/output.c, src/output.h: Add new API - sixel_output_set_palette_type - * converters/img2sixel.c, include/sixel.h.in: Add --palette-type - option + * converters/Makefile.am, converters/Makefile.in: img2sixel, sixel2png: stop + ambiguous link using LDADD instead of using -l and -L flags -2014-10-20 Hayaki Saito +2014-04-24 Hayaki Saito - * README.md: Update README - * README.md: Update README - * configure, configure.ac, include/sixel.h.in, src/dither.c, - src/dither.h, src/tosixel.c: Add new API, - sixel_dither_set_body_only - * converters/img2sixel.c: Update usage - * ChangeLog, NEWS, README.md: Update README and ChangeLog - * configure: Minor fix - * configure, configure.ac: Minor fix - * configure.ac: Fix build error - * converters/loader.c: Fix build error - * converters/loader.c: Use libpng reader - * Makefile.in, config.h.in, configure, configure.ac, - converters/Makefile.am, converters/Makefile.in, - include/Makefile.in, src/Makefile.in: Add --with-png configure - option - * LICENSE.xterm, README.md, src/fromsixel.c: Fix wrong HLS-to-RGB - conversion routine + * configure: Rebuild ./configure -2014-10-19 Hayaki Saito + * configure.ac: Update version - * README.md: Update README + * converters/img2sixel.c, src/tosixel.c: Implement 7bit/8bit mode -2014-10-18 Hayaki Saito + * converters/img2sixel.c: Fix a typo (reported by @arakiken) - * converters/img2sixel.c: Introduce --verbose option - * src/fromsixel.c: Rename some functions as snake case - * src/fromsixel.c: Rename some functions as snake case + * src/fromsixel.c, src/tosixel.c: Minor fix -2014-10-17 Hayaki Saito + * src/tosixel.c: Minor fix - * configure, configure.ac, package.json: Bump version - * README.md: Update README - * src/tosixel.c: Omit DCS parameters by default - * src/tosixel.c: Strip an extra DECGNL character at the end of output - data - * src/tosixel.c: Strip an extra LF character from output data - * converters/loader.c: Suppress gdk-pixbuf assersion on processing - some GIF images, reported by @ttdoda + * include/sixel.h, src/output.c: Add some compatibility options to + LSOutputContext structure -2014-10-14 Hayaki Saito + * converters/quant.c: Minor fix - * configure, configure.ac, package.json: Bump version - * LICENSE.sdump, Makefile.in, README.md, config.h.in, configure, - configure.ac, converters/Makefile.am, converters/Makefile.in, - converters/loader.c, include/Makefile.in, src/Makefile.in: Add - libjpeg support with --with-jpeg configure option + * configure: Rebuild -2014-10-12 Hayaki Saito + * configure.ac: Bump version - * package.json.in.in: clib integration: add --with-libcurl option by - default - * NEWS: Add missing items to NEWS - * converters/loader.c: Include errno.h in loader.c - * converters/Makefile.am, converters/Makefile.in, src/Makefile.am, - src/Makefile.in: Add -Werror to CFLAGS when --enable-debug - configure option is specified - * config.h.in, configure, configure.ac: Introduce --enable-debug - configure option - * converters/img2sixel.c: Fix a double free error - * README.md: Update README - * README.md: Update README - * README.md: Update README + * include/sixel.h, src/tosixel.c: Add error handling, and change the + signature of LibSixel_LSImageToSixel -2014-10-11 Hayaki Saito + * src/tosixel.c: Style fix - * README.md: Update README - * NEWS, README.md: Document updates - * README.md: Update README - * converters/loader.c, src/quant.c: Suppress some compiler wanings - * src/quant.c: Fix a bug caused by an uninitialized variable - * converters/Makefile.am, converters/Makefile.in, src/Makefile.am, - src/Makefile.in: Add missing -Wall option to cflags to privent - stupid bugs like #9 - * converters/loader.c: Quick fix for Issue #9 - * README.md: Update README - * README.md: Update README + * src/tosixel.c: Drop unused function, GetColIdx -2014-10-11 Bruce Mitchener + * src/tosixel.c: Minor fix - * converters/loader.c, converters/shell-completion/bash/img2sixel, - converters/sixel2png.1, include/sixel.h.in, src/output.c: Remove - whitespace at EOL. - * ChangeLog, README.md, converters/img2sixel.1, - converters/img2sixel.c, converters/quant.h, converters/shell- - completion/bash/img2sixel, converters/shell- - completion/zsh/_img2sixel, include/sixel.h.in, src/dither.h, - src/quant.c: Fix typos. - * converters/img2sixel.c: Fix uninitialized variable. - * converters/img2sixel.c, converters/scale.c: Remove unused - functions. - * converters/img2sixel.c, converters/loader.c, - converters/sixel2png.c, src/quant.c, src/tosixel.c: Remove unused - variables. - * include/sixel.h.in, src/output.c, src/quant.c: Remove invalid const - specifier on return type. + * configure, configure.ac, converters/quant.c, src/fromsixel.c, src/image.c, + src/tosixel.c: Don't use stdint.h for old compilers -2014-10-11 Hayaki Saito + * converters/img2sixel.c: Propagate the result of convert_to_sixel and + return correct exit status code - * README.md: Update README - * README.md: Update README - * Makefile.in, NEWS: Add NEWS +2014-04-20 Hayaki Saito -2014-10-09 Hayaki Saito + * converters/quant.c, converters/quant.h: Linting - * converters/shell-completion/bash/img2sixel: Update bash completion - file - * converters/shell-completion/zsh/_img2sixel: Update zsh completion - file - * converters/img2sixel.1: Add missing descriptions to img2sixel - manpage - * README.md, converters/img2sixel.1, converters/img2sixel.c: Update - documents - * data/example_opengl.gif, data/ffmpeg.png, data/gnuplot.png, - data/gs.png, data/libsixel-1.png, data/q_libsixel.png, - data/q_ppmtosixel.png, data/q_ppmtosixel2.png, data/q_sixel.png, - data/q_sixelconv.png, data/qemu.png, data/sixel.gif, data/w3m- - sixel.png, data/wesnoth.png, data/xsdl.png, data/xsixel.png, - data/zx81.png: Remove data directory +2014-04-16 Hayaki Saito -2014-10-08 Hayaki Saito + * README.md: Update document - * README.md, converters/img2sixel.1, converters/img2sixel.c: Update - documents - * converters/img2sixel.c, converters/loader.c, converters/loader.h: - Introduce --static option - * converters/img2sixel.c: @uobikiemukot's patch in the conversation - of #8 - * include/sixel.h.in: Keep compatibility +2014-04-18 Hayaki Saito -2014-10-07 Hayaki Saito + * converters/stb_image.c: Experimental support for 1bpp PNG - * src/dither.c: Swap bytes if depth == 2 - * ChangeLog: Update ChangeLog - * configure, configure.ac, package.json: Bump version - * converters/img2sixel.c: Fix for animation GIF quality degradation - * include/sixel.h.in, src/dither.c, src/dither.h, src/tosixel.c: - Apply @uobikiemukot's patch (various pixel-format support) - https://gist.github.com/uobikiemukot/7adab29310caf0be6f7a +2014-04-17 Hayaki Saito -2014-10-06 Hayaki Saito + * converters/img2sixel.c: Cleanup - * LICENSE.sixel, README.md: Add a mention about the License of - kmiya's sixel - * ChangeLog: Update ChangeLog +2014-04-16 Hayaki Saito -2014-10-05 Hayaki Saito + * converters/img2sixel.c: Minor fix - * README.md: Update README.md - * configure, configure.ac, package.json: Bump version - * converters/stb_image.h: Skip an unknown code(0x3c) at GIF decoder + * converters/img2sixel.c: Print stbi_failure_reason when stbi_load failed -2014-10-02 Hayaki Saito + * converters/img2sixel.c: Implement --diffusion option - * ChangeLog: Update Changelog + * converters/img2sixel.c: Free diffusion argument -2014-10-01 Hayaki Saito + * converters/img2sixel.c: Update help string - * configure, configure.ac: Update libtool minor version - * configure, configure.ac: Update libtool micro version - * LICENSE.stb: Declare patches/applied/stb_image.h.diff is in public - domain - * configure, configure.ac, package.json: Bump version - * .gitignore: Update .gitignore - * Makefile.am, Makefile.in, configure, configure.ac, package.json.in - => package.json.in.in: Issue #7: prevent to erase package.json in - "make distclean" target - * Makefile.am, Makefile.in: Issue #7: Add test.log to CLEANFILES - * converters/Makefile.am, converters/Makefile.in: Issue #7: correct - wrong CLEANFILES definition + * converters/img2sixel.c: Change the signature of convert_to_sixel -2014-09-29 Hayaki Saito + * converters/img2sixel.c: Add --diffusion option - * src/tosixel.c: Merge arakiken's amend patch: - http://mlterm.sourceforge.net/libsixel-penetrate2.patch - * converters/img2sixel.c: Print short usage explanation if invalid - option is given. - * src/dither.c: Change the behavior of - sixel_dither_set_diffusion_type, improvement for sdump. + * converters/img2sixel.c: Minor fix -2014-09-28 Hayaki Saito +2014-04-14 Hayaki Saito - * converters/img2sixel.c, include/sixel.h.in, src/dither.c, - src/dither.h, src/quant.c, src/quant.h: Introduce -C(complexion - score) option and implement complexion correction - * include/sixel.h.in, src/tosixel.c: Fix build broken by fb1cd8a - * converters/img2sixel.c, src/output.c, src/output.h, src/tosixel.c: - Apply arakiken's patch for GNU Screen integration: - http://mlterm.sourceforge.net/libsixel-penetrate.patch - * converters/img2sixel.c, include/sixel.h.in, src/output.c, - src/output.h, src/tosixel.c: Introduce new APIs: - sixel_output_{get,set}_skip_dcs_envelope - * configure, configure.ac, package.json: Bump version - * src/Makefile.am, src/Makefile.in, src/dither.c, src/dither.h, - src/image.c, src/image.h, src/tosixel.c: Drop sixel_image_t object - and related functions + * src/Makefile.am, src/Makefile.in: Fix a build error (sixel.h is missing, + reported by @ttdoda). -2014-09-27 Hayaki Saito + * configure: Rebuild - * src/dither.c, src/output.c: Add NULL checks - * src/dither.c, src/output.c: Add NULL checks - * src/dither.c, src/image.c: Add input parameter validation for some - functions + * configure.ac: Update version -2014-09-26 Hayaki Saito + * converters/Makefile.in, include/Makefile.in: Add missing build files - * converters/img2sixel.c: Fix a compile error - * converters/img2sixel.c: Fix a compile error - * src/image.c: Fix a regression bug introduced by 0221665 - * sixel_orig/Makefile, sixel_orig/frompnm.c, sixel_orig/fromsixel.c, - sixel_orig/main.c, sixel_orig/tosixel.c: Remove original sixel - (kmiya's sixel), Mirror repo is now here: - https://github.com/saitoha/sixel - * converters/img2sixel.c, src/dither.c, src/image.c: Fix Issue #6: - Remove unnecessary null pointer checks + * README.md, converters/img2sixel.c, converters/sixel2png.c: Update usage + description -2014-09-25 Hayaki Saito + * src/tosixel.c: Implement monochrome option - * converters/sixel2png.c: Fix for some environment missing - "getopt_long" - * configure, configure.ac, package.json: Update version - * converters/sixel2png.c, src/image.c: Issue #5: Completion of error - handling + * converters/quant.c: Fix a style issue -2014-09-24 Hayaki Saito + * converters/img2sixel.c: Add monochrome option - * ChangeLog: Update ChangeLog - * README.md, converters/img2sixel.1, converters/img2sixel.c: Fix - typos - * configure, configure.ac, package.json: Bump version - * converters/shell-completion/bash/img2sixel: Update bash completion - file - * converters/shell-completion/zsh/_img2sixel: Update zsh completion - file + * converters/img2sixel.c: Use diffusion when -m option is enabled -2014-09-24 mattn + * config.h.in, configure, configure.ac, converters/img2sixel.c, + converters/sixel2png.c: Support long options - * converters/loader.c: Avoid crash +2014-04-18 Hayaki Saito -2014-09-24 Hayaki Saito + * converters/stb_image.c: Experimental support for 1bpp PNG - * converters/img2sixel.c: Do cropping after resizing by changing the - order of arguments +2014-04-17 Hayaki Saito -2014-09-23 Hayaki Saito + * converters/img2sixel.c: Cleanup - * README.md, converters/img2sixel.1, converters/img2sixel.c: Update - documents - * README.md: Fix a typo - * README.md: Update README - * README.md: Update README - * data/w3m-sixel.png, data/xsdl.png, data/xsixel.png: Add some images - * configure, configure.ac: Bump version - * converters/img2sixel.c: Apply clipping region before scaling - process - * converters/img2sixel.c: Apply arakiken's patch to add clipping - options http://mlterm.sourceforge.net/libsixel-addcopton.patch +2014-04-16 Hayaki Saito -2014-09-09 Hayaki Saito + * README.md: Update document - * README.md: Update README + * converters/img2sixel.c: Minor fix -2014-09-02 Hayaki Saito + * converters/img2sixel.c: Print stbi_failure_reason when stbi_load failed - * config.h.in, configure, configure.ac, package.json: v1.0.3 revert - stb_image.h to 1.41 - * configure, configure.ac, package.json: v1.0.3 revert stb_image.h to - 1.41 - * README.md, converters/stb_image.h: Revert stb_image.h to 1.41 for - preventing segfault + * converters/img2sixel.c: Implement --diffusion option -2014-09-01 Hayaki Saito + * converters/img2sixel.c: Free diffusion argument - * README.md: Update README + * converters/img2sixel.c: Update help string -2014-08-29 Hayaki Saito + * converters/img2sixel.c: Change the signature of convert_to_sixel - * README.md: Fix a typo - * data/qemu.png, data/wesnoth.png: Add some images for README - * configure, configure.ac, package.json: Update version - * README.md: Update README - * converters/shell-completion/bash/img2sixel: Update bash completion - file + * converters/img2sixel.c: Add --diffusion option -2014-08-25 Hayaki Saito + * converters/img2sixel.c: Minor fix - * converters/shell-completion/zsh/_img2sixel: Update zsh completion - file - * patches/applied/stb_image.h.diff: Add an applied patch file for - original stb_image.h - * README.md, converters/stb_image.h: Update stb_image.h version to - 1.44 +2014-04-14 Hayaki Saito -2014-08-23 Hayaki Saito + * src/Makefile.am, src/Makefile.in: Fix a build error (sixel.h is missing, + reported by @ttdoda). - * configure, configure.ac, package.json: Bump version - * src/dither.c, src/quant.c: Don't create cache table when it is not - needed - * src/quant.c: Make faster monochrome dithering - * converters/img2sixel.c: Fix a typo of --quality option value + * configure: Rebuild -2014-08-17 Hayaki Saito + * configure.ac: Update version - * src/dither.c, src/dither.h, src/quant.c, src/quant.h: Add quant.h - and fix signature confusion of some functions - * README.md: Update README - * README.md, data/ffmpeg.png: Update README - * configure, configure.ac, package.json: Bump version: 1.0.0 - * README.md, data/example_opengl.gif, examples/osx/opengl/Makefile, - examples/osx/opengl/opengl, include/sixel.h.in: Update README - * src/output.h: Add a missing header - * Makefile.in, aclocal.m4, configure, configure.ac, - converters/Makefile.in, converters/img2sixel.c, - converters/sixel2png.c, examples/osx/opengl/opengl, - examples/osx/opengl/opengl.c, include/Makefile.in, - include/sixel.h.in, src/Makefile.in, src/dither.c, src/dither.h, - src/fromsixel.c, src/image.c, src/image.h, src/output.c, - src/quant.c, src/tosixel.c: ABI version 1.0.0 - * src/dither.c, src/dither.h: Add missing files - * configure, configure.ac, converters/img2sixel.c, - examples/osx/opengl/opengl, examples/osx/opengl/opengl.c, - include/sixel.h.in, src/Makefile.am, src/Makefile.in, src/image.c, - src/output.c, src/quant.c, src/tosixel.c: ABI version 0.3.0 + * converters/Makefile.in, include/Makefile.in: Add missing build files -2014-08-16 Hayaki Saito + * README.md, converters/img2sixel.c, converters/sixel2png.c: Update usage + description - * include/sixel.h.in, src/quant.c: Performance optimization - * converters/img2sixel.c, examples/osx/opengl/opengl.c, - include/sixel.h.in, src/quant.c: Minor update - * converters/img2sixel.c, converters/loader.c, include/sixel.h, - include/sixel.h.in, src/quant.c: Add new function sixel_dither_get - * converters/img2sixel.c, converters/sixel2png.c, - examples/osx/opengl/opengl, examples/osx/opengl/opengl.c, - include/sixel.h, include/sixel.h.in, src/image.c, src/quant.c, - src/tosixel.c: Update interface symbols - * src/quant.c: Fix a bug of memory layout of palette structure - * converters/loader.c: Minor fix - * src/quant.c, src/tosixel.c: Minor fix + * src/tosixel.c: Implement monochrome option -2014-08-15 Hayaki Saito + * converters/quant.c: Fix a style issue - * src/quant.c: Keep compatiblity with abi-1.0.0 branch - * Makefile.in, README.md, aclocal.m4, config.h.in, configure, - configure.ac, converters/Makefile.in, include/Makefile.in, - include/sixel.h, include/sixel.h.in, m4/ax_gcc_func_attribute.m4, - m4/ax_gcc_var_attribute.m4, src/Makefile.in: Add deprecated - attribute to some functions - * configure, configure.ac, converters/img2sixel.c, - converters/loader.c, include/sixel.h, src/image.c, src/quant.c, - src/tosixel.c: ABI version 0.2.0 - * converters/frompnm.c: Prevent invalid memory access - * examples/osx/opengl/opengl, examples/osx/opengl/opengl.c: Add an - example: opengl test + * converters/img2sixel.c: Add monochrome option -2014-08-13 Hayaki Saito + * converters/img2sixel.c: Use diffusion when -m option is enabled - * src/tosixel.c: Reset active palette by every frame + * config.h.in, configure, configure.ac, converters/img2sixel.c, + converters/sixel2png.c: Support long options -2014-08-08 Hayaki Saito +2014-04-13 Hayaki Saito - * README.md: Update README - * src/tosixel.c: Minor fix + * converters/img2sixel.c: Enable diffusion with -m option -2014-08-07 Hayaki Saito + * converters/img2sixel.c, converters/quant.c, converters/quant.h: Use + Floyd-Steinberg diffusion method only if original colors is more than + reduced colors - * config.h.in, configure, configure.ac, include/sixel.h, - src/output.c, src/tosixel.c: + - * src/quant.c, src/tosixel.c: Minor fixes + * configure, configure.ac: Add new configure switch --disable-img2sixel + --disable-sixel2png -2014-08-06 Hayaki Saito + * converters/Makefile.am, include/Makefile.am: Add new Makefiles for + separated directories - * converters/img2sixel.c, include/sixel.h, src/quant.c: Allocate - cache table only once to improve performance - * converters/img2sixel.c: Strip extra malloc - * converters/img2sixel.c, include/sixel.h, src/quant.c: Minor fix of - applying palette - * src/quant.c: Improve performance +2014-04-10 Hayaki Saito -2014-08-04 Hayaki Saito + * Makefile.am, Makefile.in, config.h.in, configure, configure.ac, {src => + converters}/img2sixel.c, {src => converters}/quant.c, {src => + converters}/quant.h, {src => converters}/sixel2png.c, {src => + converters}/stb_image.c, {src => converters}/stb_image_write.c, {src => + converters}/stb_image_write.h, src/Makefile.am, src/Makefile.in: Move source + files of converter programs to new directory converters/ - * Makefile.am, Makefile.in: Minor fix - * Makefile.am, Makefile.in: Update .travis.yml - * Makefile.am: Remove needless workarounds for coveralls + * Makefile.am, Makefile.in, configure, configure.ac, {src => + include}/sixel.h, src/Makefile.am, src/Makefile.in: Move the include file + sixel.h to separated directory -2014-08-03 Hayaki Saito +2014-04-09 Hayaki Saito - * README.md: Update README - * .travis.yml: Ignore segmentation fault of coveralls command - * configure, configure.ac, converters/Makefile.am, - converters/Makefile.in, converters/img2sixel.c, include/sixel.h, - src/Makefile.am, src/Makefile.in, {converters => src}/quant.c: Move - quantization APIs to library domain - * .travis.yml: Update .travis.yml - * ChangeLog: Add ChangeLog - * .travis.yml: Update .travis.yml - * README.md, converters/img2sixel.c, converters/sixel2png.c: Add - --version and --help option - * configure, configure.ac, package.json: Bump version - * Makefile.in, config.h.in, configure, configure.ac, - converters/Makefile.in, include/Makefile.in, src/Makefile.in, {src - => wic}/wic.cc, wic_install.reg.in => wic/wic_install.reg.in, - wic_uninstall.reg.in => wic/wic_uninstall.reg.in: Temporary drop - wic integration - * README.md: Update README - * README.md, data/gnuplot.png, data/gs.png, data/libsixel-1.png, - data/q_libsixel.png, data/q_ppmtosixel.png, data/q_ppmtosixel2.png, - data/q_sixel.png, data/q_sixelconv.png, data/sixel.gif, - data/zx81.png: Update README + * README.md: Update README -2014-08-02 Hayaki Saito +2014-04-04 saitoha - * config.h.in, configure, configure.ac: Bump version - * README.md, converters/img2sixel.c: Add --macro-number option + * src/img2sixel.c, src/stb_image_write.c: Use bcopy/bmove if memcpy/memmove + is not availabe -2014-08-01 Hayaki Saito + * config.h.in, configure: Update ./configure - * converters/img2sixel.c: Minor fix + * configure.ac: Check memset availability in ./configure -2014-07-28 Hayaki Saito +2014-04-04 Hayaki Saito - * configure, configure.ac, package.json: Update version - * config.h.in, configure, configure.ac, converters/img2sixel.c: - Improve time precision of animation rendering - * configure, configure.ac, package.json: Update micro version - * converters/img2sixel.c: Do not insert delay after drawing frames, - but before doing - * README.md: Update README + * README.md: Update README -2014-07-27 Hayaki Saito + * README.md: Update README - * converters/loader.c: Fix a double free error - * converters/loader.c: Fix an error when glib version < 2.36 - * converters/loader.c: Revert "Fix static image processing with gdk- - pixbuf2" This reverts commit - 5e5f2aed34dc1356c151513d5e31d9f14ce64c8e. - * converters/loader.c: Fix static image processing with gdk-pixbuf2 + * README.md: Update README -2014-07-26 Hayaki Saito + * README.md: Update README - * converters/loader.c: Fix build error - * converters/loader.c: Strip an unneeded malloc call - * converters/loader.c: Fix a typo - * converters/img2sixel.c: Fix segfault of accessing delay value - * converters/img2sixel.c, converters/loader.c, converters/loader.h: - Respect delay by each frame - * configure, configure.ac, package.json: Bump version - * src/tosixel.c: Reset parser state before parsing each frames + * README.md: Update README -2014-07-25 Hayaki Saito +2014-04-02 Hayaki Saito - * configure, configure.ac, package.json: Bump version - * src/tosixel.c: Always reset active palette no + * src/fromsixel.c, src/image.c, src/sixel.h: Remove uint8_t from public + interface -2014-07-24 Hayaki Saito + * src/sixel.h: Strip needless extern - * src/output.c: Minor fix - * LICENSE.images, LICENSE.stb: Minor update of LICENSE files - * configure, configure.ac, package.json: Bump version + * configure: Rebuild ./configure -2014-07-23 Hayaki Saito + * configure.ac: Update version - * converters/img2sixel.c: Minor fix - * converters/img2sixel.c: Minor fix - * configure, configure.ac, package.json: Bump version - * converters/img2sixel.c: Strip a pair of malloc/free + * src/fromsixel.c, src/img2sixel.c, src/output.c, src/sixel.h, + src/sixel2png.c, src/tosixel.c: Change interface signature of output.c -2014-07-22 Hayaki Saito + * configure: Rebuild ./configure - * converters/img2sixel.c: Emit DECDMAC sequence more faster (apply - the patch written by @arakiken) http://mlterm.sourceforge.net - /img2sixel-fixhex.patch + * configure.ac: Bump version -2014-07-21 Hayaki Saito + * src/quant.c: Respect methodForLargest and methodForRep when choosing + adaptive palette - * configure, configure.ac, package.json: Bump version - * README.md, converters/img2sixel.1: Add some descriptions for new - options to documents - * converters/img2sixel.c: Add --ignore-delay option - * converters/img2sixel.c, converters/loader.c, - converters/stb_image.h: Initial implementation for --use-macro - option - * converters/img2sixel.c: Improve the color sampling method for - makeing adaptive palette + * src/quant.c: Respect methodForDiffuse when applying palette -2014-07-19 Hayaki Saito + * src/img2sixel.c, src/quant.c, src/quant.h: Change interface signature of + quant.c - * converters/img2sixel.c: Fix a stupid typo - * converters/shell-completion/zsh/_img2sixel: Add zsh completion - candidates for --loop-control option - * converters/shell-completion/bash/img2sixel: Add bash completion - candidates of --loop-control option - * configure, configure.ac, package.json: Bump version - * converters/img2sixel.c: Fix the wrong option for getopt - * configure, configure.ac, package.json: Update version - * README.md, converters/img2sixel.1: Update document - * README.md, converters/img2sixel.1: Update img2sixel document - * package.json: Rebuild - * converters/img2sixel.c: Enable delay only if delay value < 100 - * converters/loader.c: Reset BMP component value to 3 - * converters/loader.c: Fix build of gdk-pixbuf integration - * config.h.in, configure, configure.ac, converters/img2sixel.c: Check - usleep(3) availabiliey - * converters/img2sixel.c: Fix a memory leak issue - * converters/img2sixel.c, converters/loader.c, converters/loader.h: - Respect "delay time" setting in GIF header - * converters/stb_image.h: Retrieve "delay time" from GIF header - * converters/img2sixel.c, converters/loader.c, converters/loader.h: - Implement "loop control" option + * Makefile.in, src/Makefile.in: Rebuild -2014-07-17 Hayaki Saito + * src/Makefile.am: Makefile tweak - * converters/stb_image.h: Retrive loop count of GIF animation - * converters/img2sixel.c, converters/loader.c, converters/loader.h: - Add new CLI argument: --loop-control - * config.h.in, configure, configure.ac, converters/img2sixel.c: - Checks availability of SIGINT/SIGTERM/SIGHUP - * converters/img2sixel.c: Handle SIGTERM instead of SIGKILL - * Makefile.am, Makefile.in: Except libsixel.pc from CLEANFILES - * configure, configure.ac: Style improvement - * config.h.in, configure, configure.ac, converters/img2sixel.c: - Checks signal(3) availability - * converters/img2sixel.c: Emit ST when we catch SIGINT/SIGHUP/SIGTERM - * configure, configure.ac: Bump version + * src/Makefile.am: Don't install stb_image_write.h to system include + directory -2014-07-17 saitoha + * Makefile.am: Makefile tweak - * converters/loader.c: Fix a segmentation error when loading GIF with - setting requested component = 4 + * src/quant.c: Minor fix -2014-07-16 Hayaki Saito + * src/quant.c: Fix a memory leak problem - * converters/loader.c: Minor fix - * converters/loader.c: Don't load GIF with GD backend - * converters/loader.c: Load animation GIF with gdk-pixbuf2 - * converters/img2sixel.c: Move to (1, 1) if loaded image is an - animation file - * converters/loader.c: Prevent overrun - * converters/img2sixel.c: Implement multiple frame output - * converters/loader.c: Minor fix - * converters/loader.c: Do GIF specific processing - * converters/loader.c: Change the signature of load_with_builtin - * converters/loader.c: Add GIF detector function - * converters/loader.c: Add the chunk initializer function - * converters/img2sixel.c, converters/loader.c, converters/loader.h: - Change the signature of load_image_file - * converters/Makefile.am, converters/Makefile.in, - converters/loader.c: Include stb_image.h into loader.c + * src/quant.c: Redule malloc invokation -2014-07-09 Hayaki Saito + * src/img2sixel.c: Fix a style issue - * package.json: Rebuild - * configure, configure.ac: Update version - * package.json: Minor fix - * package.json: Add package.json - * libsixel.pc.in: Updaate the pkg-config file - * Makefile.in, configure, converters/Makefile.in, - include/Makefile.in, src/Makefile.in: Rebuild build files - * configure.ac, package.json.in: clib's package.json integration - * configure.ac: Add new macro PACKAGE_DESCRIPTION - * configure, configure.ac: Bump version + * src/img2sixel.c: Fix a memory leak -2014-07-01 Hayaki Saito + * src/img2sixel.c, src/quant.c: Include quant.h and change signatures + exported from quant.c - * src/sixel.5: Minor fix of sixel(5) manpage + * src/quant.h: Add new header quant.h -2014-06-27 Hayaki Saito + * src/quant.c: Fix style issues - * configure: Rebuild configure script - * configure.ac: Bump version - * converters/stb_image.h: Update stb_image.h version to 1.41 + * src/img2sixel.c: Fix a memory leak when exiting -2014-06-21 Hayaki Saito + * src/img2sixel.c: Initialize image object with proper parameter - * src/sixel.5: Update the manpage of sixel(5) - * LICENSE.images: Update license notation file for test images + * src/image.c: Fix a memory leak when setting pixel to image object -2014-06-20 Hayaki Saito + * src/image.c: Fix style - * LICENSE.stb, LICENSE.stbi, LICENSE.stbiw: Update some LICENSE files - * configure, configure.ac: Fix a typo - * configure, configure.ac: Fix linker error: gdImageCreateFromTiffPtr - not found in ArchLinux - * configure, configure.ac: Bump version + * src/image.c: Minor fix around creating paletted image object -2014-06-19 Hayaki Saito +2014-04-01 Hayaki Saito - * configure, configure.ac: Do PKG_PROG_PKG_CONFIG out of if-clause - * converters/stb_image.h: Revert "Apply the fix for 1bpp PNG - (adb44619) again" This reverts commit - 5229d3d8f0139f407be79ea427e5e4f45dc23d84. - * converters/stb_image.h: Fix a merge misstake - * configure, configure.ac: Bump version - * converters/stb_image.h: Apply the fix for 1bpp PNG (adb44619) again + * src/quant.c: Linting -2014-06-18 Hayaki Saito +2014-03-31 Hayaki Saito - * configure, configure.ac: Bump version - * Makefile.am, Makefile.in: Fix travis build - * config.guess, config.h.in, config.sub, configure, ltmain.sh, - m4/libtool.m4, m4/ltoptions.m4, m4/ltversion.m4: Update libtool - version to 2.4.2 - * configure, configure.ac: Fix wrong AC_ARG_WITH option parsing, - reported by @ttdoda - * Makefile.am, Makefile.in: Fix a typo in valgrind target + * src/image.c, src/quant.c, src/stb_image.c, src/stb_image_write.h: Strip + trailing spaces -2014-06-16 Hayaki Saito + * src/stb_image.c, src/stb_image_write.h: Change end of line style of some + files, CRLF to LF - * Makefile.am, Makefile.in: Fix travis build + * src/stb_image.c: Read and discard stdin data only when fseek failed -2014-06-15 Hayaki Saito +2014-03-30 Hayaki Saito - * configure: Rebuild configure script - * configure.ac: Minor fix - * Makefile.am, Makefile.in: Minor fix - * Makefile.in, configure, configure.ac, include/Makefile.in, - src/Makefile.in: Add new configure option, --with-zshcompletiondir - * converters/Makefile.am, converters/Makefile.in: Add a zsh - completion file to install target - * converters/shell-completion/zsh/_img2sixel: Add zsh completion file - for img2sixel - * converters/stb_image_write.h: Strip trailing spaces - * converters/sixel2png.c, converters/stb_image_write.h: Update - stb_image_write version to 0.94 - * configure, configure.ac: Update version - * Makefile.in, config.guess, config.h.in, config.sub, configure, - configure.ac, include/Makefile.in, ltmain.sh, m4/libtool.m4, - m4/ltoptions.m4, m4/ltversion.m4, src/Makefile.in: Add new - configure option, --with-bashcompletiondir - * converters/Makefile.am, converters/Makefile.in: Add bash-completion - file to install target - * converters/shell-completion/bash/img2sixel: Add bash-completion - definition file - * configure, configure.ac: Update version - * images/snake.gif: Add a test GIF image - * converters/stb_image.h: Do be sure to rewind in bitmap test, to fix - broken GIF loader + * src/img2sixel.c: Free palette image -2014-06-14 Hayaki Saito + * src/img2sixel.c: Add some statements that print error messages - * README.md: Mention yaft, as a sixel-featured terminal + * src/stb_image.c: Apply the patch from arakiken which prevents to seek + STDIN http://mlterm.sourceforge.net/libsixel-fixstb.patch -2014-06-11 Hayaki Saito + * src/quant.c: Make it enable to skip dithering process - * configure: Rebuild configure script - * configure.ac: Bump version - * images/snake.tga, images/snake.tiff: Add TGA/TIFF test images - * images/snake.bmp: Add a bmp v5 test image - * converters/stb_image.h: Support to load bitmap v5 header - * README.md: Update coverage status badge - * Makefile.am, Makefile.in, converters/Makefile.am, - converters/Makefile.in: Update tests - * images/snake.pnm: Add new test image snake.pnm - * converters/Makefile.am, converters/Makefile.in: Minor fixes - * configure: Rebuild configure script - * Makefile.am, Makefile.in: Minor fix - * Makefile.am, Makefile.in: Update makefile - * Makefile.am, Makefile.in: Allow "possibly lost" and "still - reachable" on checking leaks with valgrind - * Makefile.am: Add --show-leachable=no option to valgrind - * converters/loader.c: Strip surplus g_object_ref/g_object_unref pair + * src/quant.c: Change the signature of the helper function for dithering -2014-06-11 saitoha + * src/quant.c: Add new enum for selecting dithering method - * converters/quant.c: Fix invalid memory access warnings reported by - valgrind + * src/quant.c: Minor fix for the process applying palette -2014-06-10 Hayaki Saito + * src/quant.c: Add new function for dithering - * Makefile.am, Makefile.in: Strip garbage output from valgrind.log - * converters/loader.c: Fix a typo - * converters/loader.c: Handle the error if malloc is failed in - load_with_gd - * .travis.yml: Update .travis.yml - * converters/loader.c: Dereference gdk-pixbuf loader after using it - * .travis.yml: Amend fix of .travis.yml - * .travis.yml: Update .travis.yml cat valgrind.log if valgrind test - fails - * .travis.yml: Use libgd2-xpm-dev package instead of libgd2-devel - * .travis.yml: Install libgd-dev when --with-gd option is enabled - * converters/loader.c: Use GLIB_CHECK_VERSION to detect that - g_type_init is deprecated - * converters/loader.c: Call g_type_init() before using gdk-pixbuf - * aclocal.m4, configure: Update configure script - * configure.ac: Bump version - * Makefile.in, configure, configure.ac, converters/Makefile.in, - include/Makefile.in, src/Makefile.in: Fix a configuration bug where - gdk-pixbuf flags are not set - * .travis.yml: Update .travis.yml - * .travis.yml: Update .travis.yml + * src/quant.c: Minor fix for creating palette -2014-06-10 saitoha + * src/quant.c: Minor fix around creating histgram - * .travis.yml: Install pkg-config when configuring with gdk-pixbuf + * src/quant.c: Add new parameter for selecting method for detecting largest + splitting dimention -2014-06-10 Hayaki Saito + * src/quant.c: Import largestByLuminosity function from pnmcolormap.c - * .travis.yml: Update .travis.yml +2014-03-29 Hayaki Saito -2014-06-10 saitoha + * README.md: Update README - * .travis.yml, Makefile.am, Makefile.in, aclocal.m4, configure, - src/tosixel.c: Add --disable-shared configure option with gcov - target + * src/quant.c: Minor fix for color mapping -2014-06-09 Hayaki Saito + * src/quant.c: Fix a memory leak problem - * converters/stb_image.h: Parse application extension block when - loading GIF + * src/tosixel.c: Comment out unused code which makes histgram -2014-06-10 Hayaki Saito + * src/quant.c: Minor fix - * Makefile.am, Makefile.in: Remove valgrind.log in clean target - * .travis.yml: Install libyaml-dev in .travis.yml - * .travis.yml, Makefile.am, Makefile.in: Add valgrind target to - Makefile - * Makefile.am: Update makefile - * Makefile.in, converters/Makefile.in: Minor fixes - * .travis.yml: Install PyYAML when running coveralls on travis - * .gitignore: Update gitignore - * Makefile.am, converters/Makefile.am: Add some CLEANFILES - * Makefile.am: Minor fix - * Makefile.am, Makefile.in: Add workaround for a cpp-coveralls - problem - * converters/.coveralls.yml => .coveralls.yml, Makefile.am, - Makefile.in, converters/Makefile.am, converters/Makefile.in, - src/Makefile.am: Fix travis build - * .travis.yml: Update .travis.yml - * .travis.yml: Update .travis.yml: add --enable-gcov build target - * README.md: Add coveralls badge to README - * Makefile.am, Makefile.in, converters/Makefile.am, - converters/Makefile.in, src/Makefile.am: Add coveralls tqrget to - makefiles + * src/tosixel.c: Disable palette number shuffling -2014-06-09 Hayaki Saito + * src/quant.c: Change palette order - * converters/.coveralls.yml: Add .coveralls.yml - * configure, configure.ac, converters/Makefile.am, - converters/Makefile.in, src/Makefile.am, src/Makefile.in: Add new - configure option --enable-gcov - * converters/loader.c, converters/stb_image.c, - converters/stb_image.h: Headerify stb_image + * configure, configure.ac: Rebuild -2014-06-08 Hayaki Saito + * Makefile.am, Makefile.in, config.h.in, configure, configure.ac, + src/Makefile.am, src/Makefile.in: Update version - * converters/stb_image.c: Update stb_image version to 1.38 - * sixel_orig/tosixel.c, src/tosixel.c: Add workarounds for old - version of mlterm + * src/quant.c: Add a debug trace statement -2014-06-07 Hayaki Saito + * src/quant.c: Fix a duplicated memory allocation bug - * README.md: Update README - * LICENSE.tw, converters/quant.c: Drop unused pattern-dither function + * src/quant.c: Fix a stupid bug which causes illegal memory access -2014-06-06 Hayaki Saito + * src/quant.c: Expand freqTotal function - * .gitignore: Update gitigore - * converters/frompnm.c, converters/loader.c: Fix linker error for - mingw environment - * configure.ac: Bump version - * Makefile.in, configure, configure.ac, wic_install.reg => - wic_install.reg.in, wic_uninstall.reg => wic_uninstall.reg.in: Add - new configure output target: wic_install.reg/wic_uninstall.reg - * Makefile.in, config.guess, config.h.in, config.sub, configure, - configure.ac, converters/Makefile.in, include/Makefile.in, - ltmain.sh, m4/libtool.m4, m4/ltoptions.m4, m4/ltversion.m4, - src/Makefile.in: Update build files + * src/quant.c: Fix for the case tupletable memory allocation failed -2014-06-06 U-WIN-FOH0MAR4FJ6\user + * src/quant.c: Expand MIN/MAX macro - * configure.ac: Minor fix - * configure.ac: Minor fix + * src/quant.c: Add pragma pack(1) for preventing memory corruption -2014-06-05 Hayaki Saito + * Makefile.am, Makefile.in, config.h.in, configure, configure.ac, + src/Makefile.am, src/Makefile.in, fromsixel.c => src/fromsixel.c, image.c => + src/image.c, img2sixel.c => src/img2sixel.c, output.c => src/output.c, + quant.c => src/quant.c, sixel.h => src/sixel.h, sixel2png.c => + src/sixel2png.c, stb_image.c => src/stb_image.c, stb_image_write.c => + src/stb_image_write.c, stb_image_write.h => src/stb_image_write.h, tosixel.c + => src/tosixel.c: Move source files to src directory - * src/wic.cc, wic_install.reg, wic_uninstall.reg: Add some files for - WIC integration - * Makefile.in, config.h.in, configure, converters/Makefile.in, - include/Makefile.in, src/Makefile.in: Update build files - * configure.ac: Check libs for WIC integration - * configure.ac: Add new configure option --with-wic - * configure, configure.ac: Update configure script - * build-gdkpixbuf.sh: Drop unused build script build-gdkpixbuf.sh + * Makefile.am, Makefile.in, images/map8.png, quant.c: Minor fix -2014-06-04 Hayaki Saito + * img2sixel.c: Strip debug code - * README.md: Update README - * images/vimperator3.png: Add an additional test image + * README.md, quant.c: Update README -2014-05-30 Hayaki Saito + * img2sixel.c: Minor fix - * config.h.in, configure, configure.ac: Add a config.h definition - which represents getopt_long avilability - * converters/img2sixel.c: Support some environments lack getopt_long - * configure: Rebuild configure script - * configure.ac: Bump version - * configure: Rebuild - * converters/Makefile.in: Rebuild Makefile.in - * converters/Makefile.am: Add some private header files to the source - distribution - * config.h.in: Rebuild config.h.in - * configure: Rebuild - * converters/loader.c: Use standard jpeg loader if available - * configure.ac: Check standard jpeg loader with GD integration - * configure, configure.ac: Check libiconv avilability if --with-gd is - specified - * configure, configure.ac: Check host environment - * converters/loader.c: Compile loader module without missing GD - symbols - * configure.ac: Check each of gdImageCreateFromXXX availabilities - * converters/loader.c: Revert "Don't compile unused code in - stbi_image.c such as stbi_load_from_file" This reverts commit - 9415149ac20f5ab26b8e97b26c8d9989bdd61572. - * converters/loader.c: Don't compile unused code in stbi_image.c such - as stbi_load_from_file - * configure: Rebuild configure script - * converters/stb_image.c: Fix a segmentation fault issue reported by - @arakiken + * README.md: Update README -2014-05-28 Hayaki Saito + * README.md, images/map16.png, images/map8.png: Add color map image files - * configure: Rebuild configure script - * configure, configure.ac: Continue to configure without pkg-config - if GDK_PIXBUF_CFLAGS and GDK_PIXBUF_LIBS is set - * configure.ac: Bump version - * configure, configure.ac: Don't use addition assingment operator in - configure, it's an extension of bash. reported by @ttdoda + * fromsixel.c, img2sixel.c, quant.c: Tweak for applying palette -2014-05-26 Hayaki Saito +2014-03-28 Hayaki Saito - * configure: Rebuild - * configure.ac: Bump version - * converters/loader.c: Fix an error caused by duplicated free - * converters/loader.c: Load pnm more efficiently - * converters/loader.c: Minor fix - * converters/loader.c: Minor fix - * converters/loader.c: Minor fix + * quant.c: Reduce sample pixels for creating histgram -2014-05-25 Hayaki Saito + * quant.c: Improve the allocation method for creating histgram - * src/sixel.5: Update reference section - * converters/img2sixel.1, converters/sixel2png.1: Update "See Also" - section of img2sixel/sixel2png - * src/Makefile.in: Rebuild Makefile.in - * src/Makefile.am: Install sixel(5) by default - * src/sixel.5: Add new manpage "sixel(5)" - * Makefile.in, configure, configure.ac, converters/Makefile.in, - include/Makefile.in, src/Makefile.in: Rebuild - * Makefile.am: Update Makefile.am - * configure.ac: Add new configure option, --with-pkgconfigdir - * Makefile.in, configure: Rebuild - * configure.ac: Add new config file libsixel.pc - * libsixel.pc.in: Add a template file for pkg-config integration - * converters/malloc_stub.c, converters/stb_image.c: Fix for some - environment lacks memory.h - * Makefile.in, config.h.in, configure, configure.ac, - converters/Makefile.in, include/Makefile.in, src/Makefile.in: Drop - unused gio-2.0 detection - * configure: Rebuild configure script - * configure.ac: Update minor version - * Makefile.in, config.h.in, configure, configure.ac, - converters/Makefile.in, converters/loader.c, include/Makefile.in, - src/Makefile.in: Fix segmentation errors when loading stdin with - gdk-pixbuf - * converters/loader.c: Fix a GDK error caused by loading image from - stdin with gdk-pixbuf - * converters/img2sixel.1: Update manpage of img2sixel - * converters/loader.c: Issue #2 Fix segmentation faults caused when - libcurl integration is enabled - * converters/loader.c: Minor fix - * converters/loader.c: Do not use stbi loader if image format is - pnm/sixel - * converters/loader.c: Add functions detect pnm/sixel image format - * converters/loader.c: Don't use stbi_load_from_file - * converters/Makefile.am, converters/Makefile.in: Build with - frompnm.c - * converters/scale.h: Minor fix - * converters/loader.c: Enable pnm format loader in loader.c - * converters/frompnm.c, converters/frompnm.h: Add PNM loader imported - from kmiya's sixel + * quant.c: Minor fix -2014-05-24 Hayaki Saito + * tosixel.c: Do palette definition after emitting header section - * converters/loader.c: Cleanup - * config.h.in, configure: Rebuild configure script - * converters/malloc_stub.c, converters/malloc_stub.h: Drop unused - posix_memalign stub function - * configure.ac: Drop the preparation for SIMD enhancement - * configure: Rebuild configure script - * configure.ac: Bump version - * Makefile.in, configure, converters/Makefile.am, - converters/Makefile.in, include/Makefile.in, src/Makefile.in: - Update build scripts - * configure.ac: Improve configure script avilability + * LICENSE.pnmquant => LICENSE.pnmcolormap: Rename a license file -2014-05-23 Hayaki Saito + * LICENSE.sixel_original_version => LICENSE.sixel, {sixel_original_version + => sixel_orig}/Makefile, {sixel_original_version => sixel_orig}/frompnm.c, + {sixel_original_version => sixel_orig}/fromsixel.c, {sixel_original_version + => sixel_orig}/main.c, {sixel_original_version => sixel_orig}/tosixel.c: + Rename the directory of sixel original version - * configure.ac: Fix for environments that do not have pkg-config + * configure, configure.ac: Fix typo -2014-05-22 Hayaki Saito +2014-03-27 Hayaki Saito - * converters/img2sixel.c: Fix build + * configure: Minor fix -2014-05-21 Hayaki Saito + * configure.ac: Minor fix - * converters/img2sixel.1: Update manpage of img2sixel - * configure, configure.ac: Minor fix - * README.md: Update README - * configure: Update configure script - * configure.ac: Update minor version - * converters/img2sixel.c, converters/loader.c: Fix segfault when - source image is GIF + * configure, configure.ac: Minor fix -2014-05-20 Hayaki Saito + * configure, configure.ac: Minor fix - * converters/loader.c: Add test for HDR format - * converters/loader.c: Add detection for PSD file format - * converters/loader.c: Add missing include directive - * converters/loader.c: Minor fix - * configure: Rebuild - * configure.ac: Minor fix - * configure, configure.ac: Display configure summary - * README.md: Update README - * README.md: Update README - * src/fromsixel.c, src/tosixel.c: Cleanup - * converters/loader.c: Minor fix - * converters/img2sixel.1: Update manpage - * README.md: Update README - * converters/img2sixel.1: Update manpage - * converters/img2sixel.c: Use free() indted of stbi_image_free - * configure: Rebuild - * configure.ac: Update version - * converters/loader.c: Minor fix - * converters/loader.c: Fallback other loader if loading process fails - * converters/loader.c: Add header/footer comments - * converters/Makefile.am, converters/Makefile.in, - converters/img2sixel.c, converters/loader.c, converters/loader.h: - Add loader.c - * converters/img2sixel.c: Linting - * .travis.yml: Update .travis.yml - * .travis.yml: Add some new travis build targets - * converters/img2sixel.c: Add integration for when both of gdlib and - libcurl are enabled - * converters/img2sixel.c: Fix run-time errors - * converters/img2sixel.c: Fix some build error - * config.h.in: Add HAVE_GD definition - * converters/img2sixel.c: Initial implementation of gd integration + * Makefile.in, aclocal.m4, config.guess, config.sub, configure, + configure.ac, ltmain.sh, m4/libtool.m4, m4/ltoptions.m4, m4/ltversion.m4, + missing: Update timestamps of some files during running configure script -2014-05-19 Hayaki Saito + * m4/libtool.m4, m4/ltoptions.m4, m4/ltsugar.m4, m4/ltversion.m4, + m4/lt~obsolete.m4: Add m4 directory again - * configure, configure.ac: Search package gdlib not but libgd - * Makefile.in, configure, configure.ac, converters/Makefile.am, - converters/Makefile.in, include/Makefile.in, src/Makefile.in: Add - --with-gd option - * .gitignore, .travis.yml, configure, configure.ac: Up to date - * .travis.yml: Update .travis.yml - * configure.ac: Change configure options: --enable-gdk-pixbuf to - --with-gdk-pixbuf --enable-libcurl to --with-libcurl - * configure.ac: Cleanup - * .travis.yml: Fix travis test with using wine - * .travis.yml: Add --prefix=/usr to configure option in travis script - * .travis.yml: Check memory leaks and access violation only when WINE - is not used - * configure: Rebuild configure script - * configure.ac: Bump version - * configure, configure.ac, converters/Makefile.am, - converters/Makefile.in: Raise errors if gdk-pixbuf/libcurl are not - available when they are enabled - * .travis.yml: Update .travis.yml - * converters/img2sixel.c: Minor fix - * configure, configure.ac: Add new configure options, --enable-gdk- - pixbuf2 and --enable-libcurl - * build-gdkpixbuf.sh: Drop build-gdkpixbuf.sh - * converters/img2sixel.c: Minor fix - * converters/Makefile.am, converters/Makefile.in: Update CFLAGS and - LDADD for img2sixel - * Makefile.in, aclocal.m4, config.h.in, configure, configure.ac, - converters/Makefile.in, include/Makefile.in, src/Makefile.in: Check - gdk-pixbuf2 and libcurl availability - * build-gdkpixbuf.sh, converters/img2sixel.c: Integrate libcurl only - if gdk-pixbuf is not available +2014-03-26 Hayaki Saito -2014-05-18 Hayaki Saito + * config.guess, config.sub, install-sh, missing: Rebuild - * converters/img2sixel.c: Minor fix - * converters/img2sixel.c: Minor fix - * build-gdkpixbuf.sh, converters/img2sixel.c: * img2sixel.c: Use gdk- - pixbuf and libcurl. * build-gdkpixbuf.sh: Added. this commit is - imported from arakiken/libsixel. https://bitbucket.org/arakiken/lib - sixel/commits/fda0bcab1ec2598bada3d102d8f0cf35d848f6ff - * build-gdkpixbuf.sh, converters/img2sixel.c: * img2sixel.c: Use gdk- - pixbuf and libcurl. * build-gdkpixbuf.sh: Added. this commit is - imported from arakiken/libsixel. https://bitbucket.org/arakiken/lib - sixel/commits/fda0bcab1ec2598bada3d102d8f0cf35d848f6ff - * configure: Rebuild - * configure.ac: Update version - * converters/img2sixel.c: Fixup for the effect of invert option - * src/tosixel.c: Assume default SIXEL palette as fore-color + * configure.ac: AD LT_PREREQ -2014-05-17 Hayaki Saito + * Makefile.in, aclocal.m4, configure, configure.ac, ltmain.sh: Recreate + build files in automake-1.14/libtool-2.4 environment - * converters/img2sixel.c: Fixup for correcting getopt option - * README.md, converters/img2sixel.1: Update manpage and README - * README.md, converters/img2sixel.1, converters/img2sixel.c: Fix - typos: sence -> sense - * converters/img2sixel.c: Add invert option - * converters/quant.c: Minor fix - * README.md, configure: Rebuild - * configure.ac: Update minor version - * converters/img2sixel.c: Enable missing -q/--quality option - * .gitignore: Update .gitignore + * Makefile.in, aclocal.m4, configure, configure.ac: Revert "Rebuild" This + reverts commit 7ade769de10cacf4600e3c8a210cde4e5e61502b. -2014-05-16 Hayaki Saito + * m4/libtool.m4, m4/ltoptions.m4, m4/ltsugar.m4, m4/ltversion.m4, + m4/lt~obsolete.m4: Revert "Add m4 scripts" This reverts commit + 5a5009899499b7dd18a978fb39b867f039b97947. - * configure, configure.ac: Update version - * converters/Makefile.am, converters/Makefile.in: Add some smoke - tests + * aclocal.m4, configure, m4/libtool.m4, m4/ltoptions.m4, m4/ltsugar.m4, + m4/ltversion.m4, m4/lt~obsolete.m4: Rebuild -2014-05-15 Hayaki Saito + * Makefile.in, aclocal.m4, configure, configure.ac: Rebuild - * src/tosixel.c: Define and select color index #1 when monochrome - sixel mode - * converters/quant.c: Improve the quality of monochrome dithering - * .travis.yml: Update .travis.yml - * .travis.yml: Amend fix of yml syntax error - * .travis.yml: Update .travis.yml - * converters/quant.c: Revert "Omit some needless conditions", to fix - access violations This reverts commit - 2cb46ca69a68a9eb837e0696080e27708286915c. + * m4/libtool.m4, m4/ltoptions.m4, m4/ltsugar.m4, m4/ltversion.m4, + m4/lt~obsolete.m4: Add m4 scripts -2014-05-14 Hayaki Saito + * img2sixel.c: Add -m option (specify fixed palette) - * .travis.yml: Integrate valgrind to .travis.yml - * configure: Rebuild - * configure.ac: Update version - * converters/quant.c: Omit some needless conditions - * converters/img2sixel.c: Load map file with high quality mode - * README.md: Update README - * configure, configure.ac: Update version - * converters/img2sixel.1: Update manpage - * README.md: Add tw license notice to README - * LICENSE.tw: Add license file of arakiken's tw - * converters/img2sixel.c, converters/quant.c: Use pattern dither when - doing monochrome quantization - * converters/img2sixel.1: Update manpage - * README.md, converters/img2sixel.c: Minor fix - * README.md: Update README - * converters/quant.c: Handle some out of memory errors - * converters/img2sixel.c, converters/quant.c: Minor fix - * converters/img2sixel.c, converters/quant.c, converters/quant.h: - Implement --quality option + * fromsixel.c, quant.c: Linting -2014-05-13 Hayaki Saito + * configure: Rebuild - * converters/quant.c: Catch unhandled errors - * README.md, converters/img2sixel.1, converters/img2sixel.c, - converters/quant.c, converters/scale.c, converters/scale.h: Add - welsh resampling filter + * Makefile.in: Rebuild Makefile.in -2014-05-12 Hayaki Saito + * Makefile.am, Makefile.in, config.h.in, configure, configure.ac, image.c, + img2sixel.c, quant.c, sixel2png.c, tosixel.c: Minor fix - * converters/quant.c: Minor fix - * README.md, converters/img2sixel.1: Add reference notations of - ImageMagick +2014-03-24 Hayaki Saito -2014-05-11 Hayaki Saito + * README.md: Update README - * configure, configure.ac: Bump version - * converters/img2sixel.c: Implement options, - --width=auto/--height=auto - * converters/img2sixel.1: Update manpage - * README.md, converters/img2sixel.c: Update README - * converters/img2sixel.c: Accept units(%/px) with -w and -h options - * config.h.in, configure, configure.ac, converters/malloc_stub.c, - converters/malloc_stub.h: Prepare for SSE2 extension + * README.md: Update README -2014-05-11 hsaito + * README.md: Update README - * converters/quant.c: Optimize dithering + * README.md: Update README -2014-05-10 Hayaki Saito + * aclocal.m4, configure: Rebuild - * converters/quant.c: Fix a worng comment - * configure, configure.ac: Update version - * converters/quant.c: Fix bugs caused by some typos - * README.md, converters/img2sixel.1, converters/img2sixel.c, - converters/quant.c, converters/quant.h: Add burkes' dithering - method - * README.md, converters/img2sixel.1, converters/img2sixel.c, - converters/quant.c, converters/quant.h: Add stucki's dithering - method - * configure, configure.ac: Bump version - * README.md: Update README - * converters/img2sixel.1, converters/img2sixel.c, converters/quant.c, - converters/quant.h: Add Bill Atkinson's dithering method + * README.md: Update README -2014-05-09 Hayaki Saito + * configure: Rebuild configure script - * converters/Makefile.am, converters/Makefile.in, src/Makefile.am, - src/Makefile.in: Strip -O3 option - * converters/scale.c: Make nearest neighbor method faster - * README.md, converters/img2sixel.1, converters/img2sixel.c, - converters/scale.c, converters/scale.h: Add - gaussian/hanning/hamming filter for resampling + * configure.ac: Update version -2014-05-08 Hayaki Saito + * quant.c: Disable the debug trace function - * configure, configure.ac: Update version - * README.md, converters/img2sixel.1, converters/img2sixel.c: Add and - implement -f and -s option - * converters/img2sixel.c, converters/quant.c, converters/quant.h, - converters/scale.c, converters/scale.h: Cleanup - * converters/img2sixel.c, converters/quant.c: Cleanup - * converters/quant.c: Minor fix of lookup method - * converters/img2sixel.c, converters/quant.h: Minor fix for - processing options, -d and -r - * src/tosixel.c: Strip unused code - * .travis.yml: Update .travis.yml - * README.md, converters/img2sixel.1, converters/img2sixel.c, - converters/scale.c: Change default re-sampling option to bilinear - method - * configure, configure.ac: Update version - * converters/img2sixel.c, converters/quant.c, converters/quant.h: Add - "foptimize" strategy option to LSQ_ApplyPalette - * converters/img2sixel.1: Update manpage - * converters/img2sixel.1: Update manpage - * README.md: Update README - * converters/img2sixel.c: Fix an incompatible type argument - substitution - * converters/img2sixel.c: Minor fix - * converters/img2sixel.c: Fix a segmentation error - * converters/img2sixel.c: Fix a memory leak - * converters/img2sixel.c: Add missing argument for getopt - * converters/img2sixel.c: Implement --resampling option - * converters/img2sixel.c: Cleanup - * converters/img2sixel.c: Add -r/--resampling option to img2sixel - * converters/scale.c: Make LSS_scale enable to switch scaling method - * converters/scale.c: Minor fix of normalize function - * converters/scale.c: Add various resampling functions - * converters/scale.c: Add missing include delective - * converters/scale.c: Workaround for the environment where M_PI is - not defined - * converters/img2sixel.c, converters/quant.c, converters/scale.c, - converters/scale.h: Add methodForResampling argument to LSS_scale - signature - * converters/scale.h: Add enum definition identifying methods for re- - sampling - * converters/img2sixel.1: Strip a trailing space + * LICENSE.pnmquant, README.md: Add license notice of pnmquant.c -2014-05-07 Hayaki Saito + * img2sixel.c, quant.c: Imported mediancut algorithm implementation from + pnmquant.c of netpbm - * converters/quant.c: Minor fix around switching diffusion method - * converters/Makefile.am, converters/Makefile.in, src/Makefile.am, - src/Makefile.in: Add -O3 to CFLAGS - * converters/img2sixel.c, converters/scale.c, converters/scale.h: Fix - the signature of LSS_Scale - * converters/quant.c: Handle out-of-memory errors - * converters/quant.c: Fix memory leak - * converters/quant.c: Optimization for applying palette - * converters/Makefile.am, converters/Makefile.in: enable HDR image - format - * converters/Makefile.am, converters/Makefile.in: Fix build - * README.md, converters/img2sixel.1: Update README and manpage - * converters/img2sixel.c: Update --help description - * converters/Makefile.am, converters/Makefile.in: Rebuild - * converters/img2sixel.c: Implement --width/--height using LSS_scale - * converters/img2sixel.c: Add new options, --width and --height - * converters/scale.c: Add missing include derectives - * converters/scale.c, converters/scale.h: Add the image resizing - function +2014-03-23 Hayaki Saito -2014-05-04 Hayaki Saito + * aclocal.m4, configure, configure.ac: Build fix for ubuntu jessy + environment - * config.h.in, converters/Makefile.in: Update configure script - * converters/Makefile.am: Add manpages to distributed files - * converters/sixel2png.1: Add the manpage of sixel2png - * converters/img2sixel.1: Add the manpage of img2sixel - * converters/img2sixel.c: Fix --help descriptions + * sixel.h: Minor fix -2014-05-02 Hayaki Saito + * README.md: Update README - * .travis.yml: Remove amd64-mingw32msvc target - * .travis.yml: Add new targets {i586,amd64}-mingw32msvc - * converters/img2sixel.c: Cleanup - * README.md: Add travis status image to README.md + * images/egret.jpg, images/snake.jpg: Resize images -Fri May 2 09:57:59 2014 +0900 Hayaki Saito + * configure: Rebuild - * .travis.yml: Squashed commit of the following: commit - ff949f9d7e3118634c6c8aed513f0709fe6a05bc Fix a typo commit - d551b421e9cfae2e2dc5eedea83c2d3fae2edbe9 Update travis build - commit d98e174afe4cc353ff5aa154f3e0c55b65c8d6e6 Update travis - build commit bccc8145faa03b2fd56c777ace7aedd38cd5a0b6 Fix travis - build commit 53c98ad4740eeffaf179e314c21a690d3a0524f9 Fix travis - build commit aef80bdbbdb36d51073326477894c837672975f6 Update - .travis.yml + * configure.ac: Update version -2014-05-02 Hayaki Saito + * README.md: Update README - * .travis.yml: Fix a typo - * .travis.yml: Update travis build - * .travis.yml: Update travis build - * .travis.yml: Fix travis build - * .travis.yml: Fix travis build - * .travis.yml: Update .travis.yml - * converters/sixel2png.c: Fix a segmentation error - * .travis.yml: Minor fix - * .travis.yml: Update .travis.yml - * .travis.yml: Update .travis.yml - * .travis.yml: Update .travis.yml - * .travis.yml: Update .travis.yml - * .travis.yml: Fix travis build errors - * .travis.yml: Add .travis.yml - * converters/quant.h: Minor fix - * configure, configure.ac: Bump version - * configure: Update configure script - * configure.ac, converters/img2sixel.c, converters/sixel2png.c: Fix - broken build for non-win32 environment + * img2sixel.c: Minor fix -2014-05-01 Hayaki Saito + * tosixel.c: Separate color designation from color definition - * config.h.in, configure, converters/Makefile.in: Rebuild configure - script - * converters/sixel2png.c: Fix build for some environment which have - only _O_BINARY - * configure.ac: Checks also _O_BINARY - * Makefile.am, Makefile.in, converters/Makefile.am: Add new target - winetest - * converters/quant.c, converters/sixel2png.c: Get rid of utf8_t - * converters/sixel2png.c: Improve error handling - * converters/sixel2png.c: Support STDIN on windows console - * converters/img2sixel.c, converters/sixel2png.c, - converters/stb_image_write.h: Respect HAVE_O_BINARY, HAVE_SET_MODE, - HAVE__SET_MODE - * converters/img2sixel.c, converters/sixel2png.c: Respect - HAVE_ERRNO_H - * config.h.in, configure: Rebuild configure script - * configure.ac: Check errno.h - * configure.ac: Check O_BINARY definition - * converters/Makefile.am, converters/Makefile.in, - converters/sixel2png.c: Link malloc_stub.c with sixel2png - * config.h.in, configure, configure.ac, converters/img2sixel.c: Don't - use _O_BINARY to prevent build error - * converters/img2sixel.c: Fix for reading STDIN of windows console - * converters/img2sixel.c, converters/quant.c: Include malloc_stub.h - * converters/Makefile.am, converters/Makefile.in: Add malloc_stub.c - to target source files - * converters/malloc_stub.c, converters/malloc_stub.h: Add malloc stub - files - * converters/img2sixel.c, converters/sixel2png.c: Implement - rpl_malloc/rpl_realloc for mingw target - * converters/img2sixel.c: Define STBI_HEADER_FILE_ONLY more - explicitly - * README.md, converters/img2sixel.c: Fix wrong english + * tosixel.c: Minor fix -2014-04-30 Hayaki Saito + * configure: Rebuild - * configure, configure.ac: Initial package relase - * configure, configure.ac, converters/Makefile.am, - converters/Makefile.in: Update configure option + * configure.ac: Update version -2014-04-28 Hayaki Saito + * image.c: Fix an off-by-one issue of fillrectangle implementation - * Makefile.in, config.h.in, configure, configure.ac, - converters/Makefile.in, include/Makefile.in, src/Makefile.am, - src/Makefile.in: Start to define ABI version - * converters/Makefile.am, converters/Makefile.in: img2sixel, - sixel2png: stop ambiguous link using LDADD instead of using -l and - -L flags + * fromsixel.c, tosixel.c: Linting -2014-04-24 Hayaki Saito + * configure: Rebuild - * configure: Rebuild ./configure - * configure.ac: Update version - * converters/img2sixel.c, src/tosixel.c: Implement 7bit/8bit mode - * converters/img2sixel.c: Fix a typo (reported by @arakiken) - * src/fromsixel.c, src/tosixel.c: Minor fix - * src/tosixel.c: Minor fix - * include/sixel.h, src/output.c: Add some compatibility options to - LSOutputContext structure - * converters/quant.c: Minor fix - * configure: Rebuild - * configure.ac: Bump version - * include/sixel.h, src/tosixel.c: Add error handling, and change the - signature of LibSixel_LSImageToSixel - * src/tosixel.c: Style fix - * src/tosixel.c: Drop unused function, GetColIdx - * src/tosixel.c: Minor fix - * configure, configure.ac, converters/quant.c, src/fromsixel.c, - src/image.c, src/tosixel.c: Don't use stdint.h for old compilers - * converters/img2sixel.c: Propagate the result of convert_to_sixel - and return correct exit status code + * configure.ac: Bump version -2014-04-20 Hayaki Saito + * img2sixel.c, sixel.h, sixel2png.c, tosixel.c: Drop OutputContext::fn_puts - * converters/quant.c, converters/quant.h: Linting + * Makefile.am, Makefile.in: Update makefile -2014-04-16 Hayaki Saito + * output.c: Add output.c - * README.md: Update document + * configure: Rebuild -2014-04-18 Hayaki Saito + * configure.ac: Update version to 0.2.1 - * converters/stb_image.c: Experimental support for 1bpp PNG + * image.c, img2sixel.c, quant.c, sixel.h, sixel2png.c: Add license blocks -2014-04-17 Hayaki Saito + * stb_image_write.c: Add stb_image_write.c - * converters/img2sixel.c: Cleanup + * Makefile.am, Makefile.in: Update makefile -2014-04-16 Hayaki Saito +2014-03-22 Hayaki Saito - * converters/img2sixel.c: Minor fix - * converters/img2sixel.c: Print stbi_failure_reason when stbi_load - failed - * converters/img2sixel.c: Implement --diffusion option - * converters/img2sixel.c: Free diffusion argument - * converters/img2sixel.c: Update help string - * converters/img2sixel.c: Change the signature of convert_to_sixel - * converters/img2sixel.c: Add --diffusion option - * converters/img2sixel.c: Minor fix + * Makefile.am, Makefile.in: Build tweak -2014-04-14 Hayaki Saito + * configure: Rebuild - * src/Makefile.am, src/Makefile.in: Fix a build error (sixel.h is - missing, reported by @ttdoda). - * configure: Rebuild - * configure.ac: Update version - * converters/Makefile.in, include/Makefile.in: Add missing build - files - * README.md, converters/img2sixel.c, converters/sixel2png.c: Update - usage description - * src/tosixel.c: Implement monochrome option - * converters/quant.c: Fix a style issue - * converters/img2sixel.c: Add monochrome option - * converters/img2sixel.c: Use diffusion when -m option is enabled - * config.h.in, configure, configure.ac, converters/img2sixel.c, - converters/sixel2png.c: Support long options + * configure.ac: Bump version -2014-04-18 Hayaki Saito + * fromsixel.c, image.c, img2sixel.c, sixel.h, sixel2png.c, tosixel.c: Rename + public symbols - * converters/stb_image.c: Experimental support for 1bpp PNG + * LICENSE: Update LICENSE -2014-04-17 Hayaki Saito + * .gitignore: Update gitignore - * converters/img2sixel.c: Cleanup + * Makefile.am, Makefile.in: Add missing LD flag -lm -2014-04-16 Hayaki Saito + * fromsixel.c, image.c, img2sixel.c, quant.c, sixel.h, sixel2png.c, + tosixel.c: Add some modlines for editors - * README.md: Update document - * converters/img2sixel.c: Minor fix - * converters/img2sixel.c: Print stbi_failure_reason when stbi_load - failed - * converters/img2sixel.c: Implement --diffusion option - * converters/img2sixel.c: Free diffusion argument - * converters/img2sixel.c: Update help string - * converters/img2sixel.c: Change the signature of convert_to_sixel - * converters/img2sixel.c: Add --diffusion option - * converters/img2sixel.c: Minor fix + * Makefile.am, Makefile.in: Add test target -2014-04-14 Hayaki Saito + * Makefile.am: Add missing file Makefile.am - * src/Makefile.am, src/Makefile.in: Fix a build error (sixel.h is - missing, reported by @ttdoda). - * configure: Rebuild - * configure.ac: Update version - * converters/Makefile.in, include/Makefile.in: Add missing build - files - * README.md, converters/img2sixel.c, converters/sixel2png.c: Update - usage description - * src/tosixel.c: Implement monochrome option - * converters/quant.c: Fix a style issue - * converters/img2sixel.c: Add monochrome option - * converters/img2sixel.c: Use diffusion when -m option is enabled - * config.h.in, configure, configure.ac, converters/img2sixel.c, - converters/sixel2png.c: Support long options + * Makefile.in, aclocal.m4, compile, config.guess, config.h.in, config.sub, + configure, configure.ac, depcomp, ltmain.sh, missing: Use automake -2014-04-13 Hayaki Saito + * configure, configure.ac: Bump version - * converters/img2sixel.c: Enable diffusion with -m option - * converters/img2sixel.c, converters/quant.c, converters/quant.h: Use - Floyd-Steinberg diffusion method only if original colors is more - than reduced colors - * configure, configure.ac: Add new configure switch --disable- - img2sixel --disable-sixel2png - * converters/Makefile.am, include/Makefile.am: Add new Makefiles for - separated directories + * sixel.h, tosixel.c: Fix for the case putchar is implemented as macro -2014-04-10 Hayaki Saito + * Makefile.in, img2sixel.c: Fix for cygwin environment - * Makefile.am, Makefile.in, config.h.in, configure, configure.ac, - {src => converters}/img2sixel.c, {src => converters}/quant.c, {src - => converters}/quant.h, {src => converters}/sixel2png.c, {src => - converters}/stb_image.c, {src => converters}/stb_image_write.c, - {src => converters}/stb_image_write.h, src/Makefile.am, - src/Makefile.in: Move source files of converter programs to new - directory converters/ - * Makefile.am, Makefile.in, configure, configure.ac, {src => - include}/sixel.h, src/Makefile.am, src/Makefile.in: Move the - include file sixel.h to separated directory +2014-03-22 saitoha -2014-04-09 Hayaki Saito + * Makefile.in, fromsixel.c, image.c, img2sixel.c, quant.c, sixel.h, + sixel2png.c, tosixel.c: Build fix for linux environment - * README.md: Update README +2014-03-22 Hayaki Saito -2014-04-04 saitoha + * sixel2png.c: Minor fix - * src/img2sixel.c, src/stb_image_write.c: Use bcopy/bmove if - memcpy/memmove is not availabe - * config.h.in, configure: Update ./configure - * configure.ac: Check memset availability in ./configure + * Makefile.in, sixel2png.c: Implement -i and -o option for sixel2png -2014-04-04 Hayaki Saito + * Makefile.in: update Makefile - * README.md: Update README - * README.md: Update README - * README.md: Update README - * README.md: Update README - * README.md: Update README + * fromsixel.c, image.c, quant.c, sixel.h, sixel2png.c, tosixel.c: Linting -2014-04-02 Hayaki Saito + * Makefile.in: Update makefile to build sixel2png - * src/fromsixel.c, src/image.c, src/sixel.h: Remove uint8_t from - public interface - * src/sixel.h: Strip needless extern - * configure: Rebuild ./configure - * configure.ac: Update version - * src/fromsixel.c, src/img2sixel.c, src/output.c, src/sixel.h, - src/sixel2png.c, src/tosixel.c: Change interface signature of - output.c - * configure: Rebuild ./configure - * configure.ac: Bump version - * src/quant.c: Respect methodForLargest and methodForRep when - choosing adaptive palette - * src/quant.c: Respect methodForDiffuse when applying palette - * src/img2sixel.c, src/quant.c, src/quant.h: Change interface - signature of quant.c - * Makefile.in, src/Makefile.in: Rebuild - * src/Makefile.am: Makefile tweak - * src/Makefile.am: Don't install stb_image_write.h to system include - directory - * Makefile.am: Makefile tweak - * src/quant.c: Minor fix - * src/quant.c: Fix a memory leak problem - * src/quant.c: Redule malloc invokation - * src/img2sixel.c: Fix a style issue - * src/img2sixel.c: Fix a memory leak - * src/img2sixel.c, src/quant.c: Include quant.h and change signatures - exported from quant.c - * src/quant.h: Add new header quant.h - * src/quant.c: Fix style issues - * src/img2sixel.c: Fix a memory leak when exiting - * src/img2sixel.c: Initialize image object with proper parameter - * src/image.c: Fix a memory leak when setting pixel to image object - * src/image.c: Fix style - * src/image.c: Minor fix around creating paletted image object + * fromsixel.c, image.c, img2sixel.c, sixel.h, sixel2png.c: Add sixel2png.c -2014-04-01 Hayaki Saito + * fromsixel.c, sixel.h: Minor fix - * src/quant.c: Linting + * fromsixel.c, image.c, img2sixel.c, sixel.h, tosixel.c: Linting -2014-03-31 Hayaki Saito + * Makefile.in: Makefile tweak - * src/image.c, src/quant.c, src/stb_image.c, src/stb_image_write.h: - Strip trailing spaces - * src/stb_image.c, src/stb_image_write.h: Change end of line style of - some files, CRLF to LF - * src/stb_image.c: Read and discard stdin data only when fseek failed +2014-03-21 Hayaki Saito -2014-03-30 Hayaki Saito + * Makefile.in: Add missing Makefile.in - * src/img2sixel.c: Free palette image - * src/img2sixel.c: Add some statements that print error messages - * src/stb_image.c: Apply the patch from arakiken which prevents to - seek STDIN http://mlterm.sourceforge.net/libsixel-fixstb.patch - * src/quant.c: Make it enable to skip dithering process - * src/quant.c: Change the signature of the helper function for - dithering - * src/quant.c: Add new enum for selecting dithering method - * src/quant.c: Minor fix for the process applying palette - * src/quant.c: Add new function for dithering - * src/quant.c: Minor fix for creating palette - * src/quant.c: Minor fix around creating histgram - * src/quant.c: Add new parameter for selecting method for detecting - largest splitting dimention - * src/quant.c: Import largestByLuminosity function from pnmcolormap.c + * install-sh: Add install-sh -2014-03-29 Hayaki Saito + * README.md: Minor fix - * README.md: Update README - * src/quant.c: Minor fix for color mapping - * src/quant.c: Fix a memory leak problem - * src/tosixel.c: Comment out unused code which makes histgram - * src/quant.c: Minor fix - * src/tosixel.c: Disable palette number shuffling - * src/quant.c: Change palette order - * configure, configure.ac: Rebuild - * Makefile.am, Makefile.in, config.h.in, configure, configure.ac, - src/Makefile.am, src/Makefile.in: Update version - * src/quant.c: Add a debug trace statement - * src/quant.c: Fix a duplicated memory allocation bug - * src/quant.c: Fix a stupid bug which causes illegal memory access - * src/quant.c: Expand freqTotal function - * src/quant.c: Fix for the case tupletable memory allocation failed - * src/quant.c: Expand MIN/MAX macro - * src/quant.c: Add pragma pack(1) for preventing memory corruption - * Makefile.am, Makefile.in, config.h.in, configure, configure.ac, - src/Makefile.am, src/Makefile.in, fromsixel.c => src/fromsixel.c, - image.c => src/image.c, img2sixel.c => src/img2sixel.c, output.c => - src/output.c, quant.c => src/quant.c, sixel.h => src/sixel.h, - sixel2png.c => src/sixel2png.c, stb_image.c => src/stb_image.c, - stb_image_write.c => src/stb_image_write.c, stb_image_write.h => - src/stb_image_write.h, tosixel.c => src/tosixel.c: Move source - files to src directory - * Makefile.am, Makefile.in, images/map8.png, quant.c: Minor fix - * img2sixel.c: Strip debug code - * README.md, quant.c: Update README - * img2sixel.c: Minor fix - * README.md: Update README - * README.md, images/map16.png, images/map8.png: Add color map image - files - * fromsixel.c, img2sixel.c, quant.c: Tweak for applying palette + * README.md: Update README -2014-03-28 Hayaki Saito + * README.md: Update README - * quant.c: Reduce sample pixels for creating histgram - * quant.c: Improve the allocation method for creating histgram - * quant.c: Minor fix - * tosixel.c: Do palette definition after emitting header section - * LICENSE.pnmquant => LICENSE.pnmcolormap: Rename a license file - * LICENSE.sixel_original_version => LICENSE.sixel, - {sixel_original_version => sixel_orig}/Makefile, - {sixel_original_version => sixel_orig}/frompnm.c, - {sixel_original_version => sixel_orig}/fromsixel.c, - {sixel_original_version => sixel_orig}/main.c, - {sixel_original_version => sixel_orig}/tosixel.c: Rename the - directory of sixel original version - * configure, configure.ac: Fix typo + * Makefile, config.h.in, configure, configure.ac: Use autoconf -2014-03-27 Hayaki Saito + * fromsixel.c, img2sixel.c, tosixel.c: use uint8_t insted of unsigned char - * configure: Minor fix - * configure.ac: Minor fix - * configure, configure.ac: Minor fix - * configure, configure.ac: Minor fix - * Makefile.in, aclocal.m4, config.guess, config.sub, configure, - configure.ac, ltmain.sh, m4/libtool.m4, m4/ltoptions.m4, - m4/ltversion.m4, missing: Update timestamps of some files during - running configure script - * m4/libtool.m4, m4/ltoptions.m4, m4/ltsugar.m4, m4/ltversion.m4, - m4/lt~obsolete.m4: Add m4 directory again + * Makefile, fromsixel.c, image.c, sixel.h: Add image.c -2014-03-26 Hayaki Saito + * .gitignore: Update gitignore - * config.guess, config.sub, install-sh, missing: Rebuild - * configure.ac: AD LT_PREREQ - * Makefile.in, aclocal.m4, configure, configure.ac, ltmain.sh: - Recreate build files in automake-1.14/libtool-2.4 environment - * Makefile.in, aclocal.m4, configure, configure.ac: Revert "Rebuild" - This reverts commit 7ade769de10cacf4600e3c8a210cde4e5e61502b. - * m4/libtool.m4, m4/ltoptions.m4, m4/ltsugar.m4, m4/ltversion.m4, - m4/lt~obsolete.m4: Revert "Add m4 scripts" This reverts commit - 5a5009899499b7dd18a978fb39b867f039b97947. - * aclocal.m4, configure, m4/libtool.m4, m4/ltoptions.m4, - m4/ltsugar.m4, m4/ltversion.m4, m4/lt~obsolete.m4: Rebuild - * Makefile.in, aclocal.m4, configure, configure.ac: Rebuild - * m4/libtool.m4, m4/ltoptions.m4, m4/ltsugar.m4, m4/ltversion.m4, - m4/lt~obsolete.m4: Add m4 scripts - * img2sixel.c: Add -m option (specify fixed palette) - * fromsixel.c, quant.c: Linting - * configure: Rebuild - * Makefile.in: Rebuild Makefile.in - * Makefile.am, Makefile.in, config.h.in, configure, configure.ac, - image.c, img2sixel.c, quant.c, sixel2png.c, tosixel.c: Minor fix + * LICENSE.sixel_original_version, LICENSE.stb_image, LICENSE.stbi, Makefile, + fromsixel.c, main.c => img2sixel.c, sixel.h, tosixel.c: Minor fix -2014-03-24 Hayaki Saito + * LICENSE.images, images/egret.jpg, images/snake.jpg: Add test images - * README.md: Update README - * README.md: Update README - * README.md: Update README - * README.md: Update README - * aclocal.m4, configure: Rebuild - * README.md: Update README - * configure: Rebuild configure script - * configure.ac: Update version - * quant.c: Disable the debug trace function - * LICENSE.pnmquant, README.md: Add license notice of pnmquant.c - * img2sixel.c, quant.c: Imported mediancut algorithm implementation - from pnmquant.c of netpbm + * LICENSE.stbiw, stb_image_write.h: Add stb_image_write.h and license file -2014-03-23 Hayaki Saito + * LICENSE, LICENSE.sixel_original_version, LICENSE.stb_image, tosixel.c: Add + license files - * aclocal.m4, configure, configure.ac: Build fix for ubuntu jessy - environment - * sixel.h: Minor fix - * README.md: Update README - * images/egret.jpg, images/snake.jpg: Resize images - * configure: Rebuild - * configure.ac: Update version - * README.md: Update README - * img2sixel.c: Minor fix - * tosixel.c: Separate color designation from color definition - * tosixel.c: Minor fix - * configure: Rebuild - * configure.ac: Update version - * image.c: Fix an off-by-one issue of fillrectangle implementation - * fromsixel.c, tosixel.c: Linting - * configure: Rebuild - * configure.ac: Bump version - * img2sixel.c, sixel.h, sixel2png.c, tosixel.c: Drop - OutputContext::fn_puts - * Makefile.am, Makefile.in: Update makefile - * output.c: Add output.c - * configure: Rebuild - * configure.ac: Update version to 0.2.1 - * image.c, img2sixel.c, quant.c, sixel.h, sixel2png.c: Add license - blocks - * stb_image_write.c: Add stb_image_write.c - * Makefile.am, Makefile.in: Update makefile + * Makefile, main.c, quant.c: Minor fix -2014-03-22 Hayaki Saito + * sixel_original_version/Makefile, sixel_original_version/frompnm.c, + sixel_original_version/fromsixel.c, sixel_original_version/main.c, + sixel_original_version/tosixel.c: Add original version (2014-3-2) of sixel - * Makefile.am, Makefile.in: Build tweak - * configure: Rebuild - * configure.ac: Bump version - * fromsixel.c, image.c, img2sixel.c, sixel.h, sixel2png.c, tosixel.c: - Rename public symbols - * LICENSE: Update LICENSE - * .gitignore: Update gitignore - * Makefile.am, Makefile.in: Add missing LD flag -lm - * fromsixel.c, image.c, img2sixel.c, quant.c, sixel.h, sixel2png.c, - tosixel.c: Add some modlines for editors - * Makefile.am, Makefile.in: Add test target - * Makefile.am: Add missing file Makefile.am - * Makefile.in, aclocal.m4, compile, config.guess, config.h.in, - config.sub, configure, configure.ac, depcomp, ltmain.sh, missing: - Use automake - * configure, configure.ac: Bump version - * sixel.h, tosixel.c: Fix for the case putchar is implemented as - macro - * Makefile.in, img2sixel.c: Fix for cygwin environment + * Makefile, main.c: implement -p option -2014-03-22 saitoha + * quant.c: Add quant.c - * Makefile.in, fromsixel.c, image.c, img2sixel.c, quant.c, sixel.h, - sixel2png.c, tosixel.c: Build fix for linux environment +2014-03-20 Hayaki Saito -2014-03-22 Hayaki Saito + * Makefile: Add makefile - * sixel2png.c: Minor fix - * Makefile.in, sixel2png.c: Implement -i and -o option for sixel2png - * Makefile.in: update Makefile - * fromsixel.c, image.c, quant.c, sixel.h, sixel2png.c, tosixel.c: - Linting - * Makefile.in: Update makefile to build sixel2png - * fromsixel.c, image.c, img2sixel.c, sixel.h, sixel2png.c: Add - sixel2png.c - * fromsixel.c, sixel.h: Minor fix - * fromsixel.c, image.c, img2sixel.c, sixel.h, tosixel.c: Linting - * Makefile.in: Makefile tweak + * main.c: Add main.c -2014-03-21 Hayaki Saito + * tosixel.c: Minor fix - * Makefile.in: Add missing Makefile.in - * install-sh: Add install-sh - * README.md: Minor fix - * README.md: Update README - * README.md: Update README - * Makefile, config.h.in, configure, configure.ac: Use autoconf - * fromsixel.c, img2sixel.c, tosixel.c: use uint8_t insted of unsigned - char - * Makefile, fromsixel.c, image.c, sixel.h: Add image.c - * .gitignore: Update gitignore - * LICENSE.sixel_original_version, LICENSE.stb_image, LICENSE.stbi, - Makefile, fromsixel.c, main.c => img2sixel.c, sixel.h, tosixel.c: - Minor fix - * LICENSE.images, images/egret.jpg, images/snake.jpg: Add test images - * LICENSE.stbiw, stb_image_write.h: Add stb_image_write.h and license - file - * LICENSE, LICENSE.sixel_original_version, LICENSE.stb_image, - tosixel.c: Add license files - * Makefile, main.c, quant.c: Minor fix - * sixel_original_version/Makefile, sixel_original_version/frompnm.c, - sixel_original_version/fromsixel.c, sixel_original_version/main.c, - sixel_original_version/tosixel.c: Add original version (2014-3-2) - of sixel - * Makefile, main.c: implement -p option - * quant.c: Add quant.c + * sixel.h: Minor fix -2014-03-20 Hayaki Saito + * tosixel.c: Independent from GD - * Makefile: Add makefile - * main.c: Add main.c - * tosixel.c: Minor fix - * sixel.h: Minor fix - * tosixel.c: Independent from GD - * sixel.h: Add sixel.h + * sixel.h: Add sixel.h 2014-03-19 Hayaki Saito - * fromsixel.c: Drop sixel decoder - * fromsixel.c, tosixel.c: Import sixel encoder/decoder written by - kmiya http://nanno.dip.jp/softlib/man/rlogin/sixel.tar.gz - * stb_image.c: Import stbi-1.33 from http://www.nothings.org/ + * fromsixel.c: Drop sixel decoder + + * fromsixel.c, tosixel.c: Import sixel encoder/decoder written by kmiya + http://nanno.dip.jp/softlib/man/rlogin/sixel.tar.gz + + * stb_image.c: Import stbi-1.33 from http://www.nothings.org/ 2013-08-20 Hayaki Saito - * .gitignore, LICENSE, README.md: Initial commit + * .gitignore, LICENSE, README.md: Initial commit + diff --git a/Makefile.in b/Makefile.in index 66facbe6..6d44f3bc 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. +# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2017 Free Software Foundation, Inc. +# Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -168,7 +168,7 @@ am__recursive_targets = \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ - cscope distdir dist dist-all distcheck + cscope distdir distdir-am dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ $(LISP)config.h.in # Read a list of newline-separated strings from the standard input, @@ -415,8 +415,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) @@ -583,7 +583,10 @@ distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files -distdir: $(DISTFILES) +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ diff --git a/NEWS b/NEWS index 8e282727..a414ed68 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,16 @@ * core: Improve quality of 15bpp(hi-color mode) dither. https://github.com/saitoha/libsixel/commit/42f34283defea67c2d6294af4bd7dcb4fdf9f046 +* core: Fix memory leak problems, Thanks to @fCorleone. + https://github.com/saitoha/libsixel/commit/f94bc6fec696abd77be275226f28409602bd1f27 + https://github.com/saitoha/libsixel/commit/84ed0bc35e273ebd0a7fbc9d8f8669f7cf5f5612 + +* core: Fix some heap buffer-overflow problems, Thanks to @fgeek. + https://github.com/saitoha/libsixel/commit/6a19d99f95dafbbb50facf9267497afbcfba5731 + https://github.com/saitoha/libsixel/commit/0d70e046437370c86696f2ed38ac0413855d98ce + https://github.com/saitoha/libsixel/commit/438188c1f8b418a38674364cf5c126ef3ed4166a + https://github.com/saitoha/libsixel/commit/ba21bb94d68f8bf7dc590400a707753f5d5c4709 + * img2sixel: Allow a deferred clear code in a GIF format GIF decoder must do nothing when the table is full. See Section "DEFERRED CLEAR CODE IN LZW COMPRESSION" in @@ -25,7 +35,7 @@ https://github.com/saitoha/libsixel/commit/9c8ffa62203899d866fc28e3ab7c6dfd9a0019b1 * Some bug fixes and minor improvements. - Thanks to @set135, @ttdoda. + Thanks to @set135, @ttdoda, @tsutsui. * Announcement for package maintainers: Immutable tarball is provided, because GitHub auto-generated tarball may be not immutable. diff --git a/README.md b/README.md index 346ffa20..1b383837 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,19 @@ libsixel This package provides encoder/decoder implementation for DEC SIXEL graphics, and some converter programs. -![img2sixel](https://raw.githubusercontent.com/saitoha/libsixel/data/data/libsixel-1.png) +![img2sixel](https://raw.githubusercontent.com/saitoha/libsixel/data/data/libsixel-1.png)(https://youtu.be/0SasrQ7pnbA) SIXEL is one of image formats for printer and terminal imaging introduced by Digital Equipment Corp. (DEC). Its data scheme is represented as a terminal-friendly escape sequence. So if you want to view a SIXEL image file, all you have to do is "cat" it to your terminal. +On 80's real hardware terminals, it tooks unbearable long waiting times to display images. + +[![vt330sixel](https://raw.githubusercontent.com/saitoha/libsixel/data/data/vt330sixel.png)](https://youtu.be/0SasrQ7pnbA) + +But nowdays, with high-speed CPU and broadband network, we got the chance to develop a new scope of SIXELs. + ## SIXEL Animation `img2sixel(1)` can decode GIF animation. @@ -200,7 +206,12 @@ Some NetBSD/OpenBSD users are doing amazing challenges. A sixel image dumper, provides pdf previewer. +### [RetroArch](https://github.com/libretro/RetroArch) + SIXEL video driver is provided if you build it with `--enable-sixel` option. + ([screenshot](https://imgur.com/lf3bh2S)) + + ## Highlighted features ### Improved compression @@ -221,40 +232,6 @@ Now libsixel and ImageMagick's sixel coder follow it. `img2sixel(1)` supports color image quantization. It works well even if few number of colors are allowed. -- `ppmtosixel` (`netpbm`) - - $ jpegtopnm images/snake.jpg | pnmquant 16 | ppmtosixel - - ![ppmtosixel](https://raw.githubusercontent.com/saitoha/libsixel/data/data/q_ppmtosixel.png) - - -- `ppmtosixel` with Floyd–Steinberg dithering (`netpbm`) - - $ jpegtopnm images/snake.jpg | pnmquant 16 -floyd | ppmtosixel - - ![ppmtosixel](https://raw.githubusercontent.com/saitoha/libsixel/data/data/q_ppmtosixel2.png) - - -- kmiya's `sixel` - - $ sixel -p16 images/snake.jpg - - ![kmiya's sixel](https://raw.githubusercontent.com/saitoha/libsixel/data/data/q_sixel.png) - - -- PySixel (`sixelconv` command) - - $ sixelconv -n16 images/snake.jpg - - ![PySixel](https://raw.githubusercontent.com/saitoha/libsixel/data/data/q_sixelconv.png) - - -- libsixel (`img2sixel` command) - - $ img2sixel -p16 images/snake.jpg - - ![PySixel](https://raw.githubusercontent.com/saitoha/libsixel/data/data/q_libsixel.png) - ## Terminal requirements @@ -341,7 +318,7 @@ You can install libsixel via the following package systems. - [NixOS](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/libsixel/default.nix) - [OpenBSD Ports](http://openports.se/graphics/libsixel) - [Fedora Copr](https://copr.fedorainfracloud.org/coprs/saahriktu/libsixel/) - +- [SlackBuilds](https://slackbuilds.org/repository/14.2/libraries/libsixel/) ### Build from source package diff --git a/aclocal.m4 b/aclocal.m4 index 1916ae43..834ed4a7 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,6 +1,6 @@ -# generated automatically by aclocal 1.15.1 -*- Autoconf -*- +# generated automatically by aclocal 1.16.1 -*- Autoconf -*- -# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# Copyright (C) 1996-2018 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -296,7 +296,7 @@ AS_VAR_COPY([$1], [pkg_cv_][$1]) AS_VAR_IF([$1], [""], [$5], [$4])dnl ])dnl PKG_CHECK_VAR -# Copyright (C) 2002-2017 Free Software Foundation, Inc. +# Copyright (C) 2002-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -308,10 +308,10 @@ AS_VAR_IF([$1], [""], [$5], [$4])dnl # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.15' +[am__api_version='1.16' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.15.1], [], +m4_if([$1], [1.16.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -327,14 +327,14 @@ m4_define([_AM_AUTOCONF_VERSION], []) # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.15.1])dnl +[AM_AUTOMAKE_VERSION([1.16.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- -# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -386,7 +386,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd` # AM_CONDITIONAL -*- Autoconf -*- -# Copyright (C) 1997-2017 Free Software Foundation, Inc. +# Copyright (C) 1997-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -417,7 +417,7 @@ AC_CONFIG_COMMANDS_PRE( Usually this means the macro was only invoked conditionally.]]) fi])]) -# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# Copyright (C) 1999-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -608,13 +608,12 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl # Generate code to set up dependency tracking. -*- Autoconf -*- -# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# Copyright (C) 1999-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. - # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], @@ -622,49 +621,41 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. - case $CONFIG_FILES in - *\'*) eval set x "$CONFIG_FILES" ;; - *) set x $CONFIG_FILES ;; - esac + # TODO: see whether this extra hack can be removed once we start + # requiring Autoconf 2.70 or later. + AS_CASE([$CONFIG_FILES], + [*\'*], [eval set x "$CONFIG_FILES"], + [*], [set x $CONFIG_FILES]) shift - for mf + # Used to flag and report bootstrapping failures. + am_rc=0 + for am_mf do # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named 'Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line + am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile which includes + # dependency-tracking related rules and includes. + # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running 'make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "$am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done + sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ + || continue + am_dirpart=`AS_DIRNAME(["$am_mf"])` + am_filepart=`AS_BASENAME(["$am_mf"])` + AM_RUN_LOG([cd "$am_dirpart" \ + && sed -e '/# am--include-marker/d' "$am_filepart" \ + | $MAKE -f - am--depfiles]) || am_rc=$? done + if test $am_rc -ne 0; then + AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments + for automatic dependency tracking. Try re-running configure with the + '--disable-dependency-tracking' option to at least be able to build + the package (albeit without support for automatic dependency tracking).]) + fi + AS_UNSET([am_dirpart]) + AS_UNSET([am_filepart]) + AS_UNSET([am_mf]) + AS_UNSET([am_rc]) + rm -f conftest-deps.mk } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS @@ -673,18 +664,17 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each '.P' file that we will -# need in order to bootstrap the dependency handling code. +# This code is only required when automatic dependency tracking is enabled. +# This creates each '.Po' and '.Plo' makefile fragment that we'll need in +# order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) + [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) # Do all the work for Automake. -*- Autoconf -*- -# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# Copyright (C) 1996-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -771,8 +761,8 @@ AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: -# -# +# +# AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. @@ -839,7 +829,7 @@ END Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . +that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM @@ -881,7 +871,7 @@ for _am_header in $config_headers :; do done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -902,7 +892,7 @@ if test x"${install_sh+set}" != xset; then fi AC_SUBST([install_sh])]) -# Copyright (C) 2003-2017 Free Software Foundation, Inc. +# Copyright (C) 2003-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -923,7 +913,7 @@ AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- -# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -931,49 +921,42 @@ AC_SUBST([am__leading_dot])]) # AM_MAKE_INCLUDE() # ----------------- -# Check to see how make treats includes. +# Check whether make has an 'include' directive that can support all +# the idioms we need for our automatic dependency tracking code. AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' +[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) +cat > confinc.mk << 'END' am__doit: - @echo this is the am__doit target + @echo this is the am__doit target >confinc.out .PHONY: am__doit END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# Ignore all kinds of additional output from 'make'. -case `$am_make -s -f confmf 2> /dev/null` in #( -*the\ am__doit\ target*) - am__include=include - am__quote= - _am_result=GNU - ;; -esac -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - case `$am_make -s -f confmf 2> /dev/null` in #( - *the\ am__doit\ target*) - am__include=.include - am__quote="\"" - _am_result=BSD - ;; - esac -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) +# BSD make does it like this. +echo '.include "confinc.mk" # ignored' > confmf.BSD +# Other make implementations (GNU, Solaris 10, AIX) do it like this. +echo 'include confinc.mk # ignored' > confmf.GNU +_am_result=no +for s in GNU BSD; do + AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) + AS_CASE([$?:`cat confinc.out 2>/dev/null`], + ['0:this is the am__doit target'], + [AS_CASE([$s], + [BSD], [am__include='.include' am__quote='"'], + [am__include='include' am__quote=''])]) + if test "$am__include" != "#"; then + _am_result="yes ($s style)" + break + fi +done +rm -f confinc.* confmf.* +AC_MSG_RESULT([${_am_result}]) +AC_SUBST([am__include])]) +AC_SUBST([am__quote])]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -# Copyright (C) 1997-2017 Free Software Foundation, Inc. +# Copyright (C) 1997-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1012,7 +995,7 @@ fi # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1041,7 +1024,7 @@ AC_DEFUN([_AM_SET_OPTIONS], AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) -# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# Copyright (C) 1999-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1088,7 +1071,7 @@ AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) -# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# Copyright (C) 1999-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1121,10 +1104,12 @@ AC_DEFUN([AM_PATH_PYTHON], [ dnl Find a Python interpreter. Python versions prior to 2.0 are not dnl supported. (2.0 was released on October 16, 2000). - dnl FIXME: Remove the need to hard-code Python versions here. m4_define_default([_AM_PYTHON_INTERPRETER_LIST], -[python python2 python3 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 dnl - python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0]) +[python python2 python3 dnl + python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl + python3.2 python3.1 python3.0 dnl + python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 dnl + python2.0]) AC_ARG_VAR([PYTHON], [the Python interpreter]) @@ -1324,7 +1309,7 @@ for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]] sys.exit(sys.hexversion < minverhex)" AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])]) -# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1343,7 +1328,7 @@ AC_DEFUN([AM_RUN_LOG], # Check to make sure that the build environment is sane. -*- Autoconf -*- -# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# Copyright (C) 1996-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1424,7 +1409,7 @@ AC_CONFIG_COMMANDS_PRE( rm -f conftest.file ]) -# Copyright (C) 2009-2017 Free Software Foundation, Inc. +# Copyright (C) 2009-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1484,7 +1469,7 @@ AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) -# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1512,7 +1497,7 @@ fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006-2017 Free Software Foundation, Inc. +# Copyright (C) 2006-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1531,7 +1516,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- -# Copyright (C) 2004-2017 Free Software Foundation, Inc. +# Copyright (C) 2004-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, diff --git a/compile b/compile index 2ab71e4e..99e50524 100755 --- a/compile +++ b/compile @@ -1,9 +1,9 @@ #! /bin/sh # Wrapper for compilers which do not understand '-c -o'. -scriptversion=2016-01-11.22; # UTC +scriptversion=2018-03-07.03; # UTC -# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# Copyright (C) 1999-2018 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify @@ -17,7 +17,7 @@ scriptversion=2016-01-11.22; # UTC # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -340,7 +340,7 @@ exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 -# eval: (add-hook 'write-file-hooks 'time-stamp) +# eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" diff --git a/config.guess b/config.guess index 2193702b..256083a7 100755 --- a/config.guess +++ b/config.guess @@ -1,8 +1,8 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright 1992-2017 Free Software Foundation, Inc. +# Copyright 1992-2018 Free Software Foundation, Inc. -timestamp='2017-05-27' +timestamp='2018-03-08' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ timestamp='2017-05-27' # General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, see . +# along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -27,7 +27,7 @@ timestamp='2017-05-27' # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess +# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess # # Please send patches to . @@ -39,7 +39,7 @@ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. -Operation modes: +Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit @@ -50,7 +50,7 @@ version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright 1992-2017 Free Software Foundation, Inc. +Copyright 1992-2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -107,9 +107,9 @@ trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int x;" > $dummy.c ; + ,,) echo "int x;" > "$dummy.c" ; for c in cc gcc c89 c99 ; do - if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; @@ -132,14 +132,14 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown -case "${UNAME_SYSTEM}" in +case "$UNAME_SYSTEM" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu - eval $set_cc_for_build - cat <<-EOF > $dummy.c + eval "$set_cc_for_build" + cat <<-EOF > "$dummy.c" #include #if defined(__UCLIBC__) LIBC=uclibc @@ -149,13 +149,20 @@ Linux|GNU|GNU/*) LIBC=gnu #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` + eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" + + # If ldd exists, use it to detect musl libc. + if command -v ldd >/dev/null && \ + ldd --version 2>&1 | grep -q ^musl + then + LIBC=musl + fi ;; esac # Note: order is significant - the case branches are not exclusive. -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in +case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, @@ -169,30 +176,30 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ - /sbin/$sysctl 2>/dev/null || \ - /usr/sbin/$sysctl 2>/dev/null || \ + "/sbin/$sysctl" 2>/dev/null || \ + "/usr/sbin/$sysctl" 2>/dev/null || \ echo unknown)` - case "${UNAME_MACHINE_ARCH}" in + case "$UNAME_MACHINE_ARCH" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) - arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` - endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` - machine=${arch}${endian}-unknown + arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` + endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` + machine="${arch}${endian}"-unknown ;; - *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + *) machine="$UNAME_MACHINE_ARCH"-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. - case "${UNAME_MACHINE_ARCH}" in + case "$UNAME_MACHINE_ARCH" in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) - eval $set_cc_for_build + eval "$set_cc_for_build" if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then @@ -208,10 +215,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in ;; esac # Determine ABI tags. - case "${UNAME_MACHINE_ARCH}" in + case "$UNAME_MACHINE_ARCH" in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' - abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` + abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` ;; esac # The OS release @@ -219,46 +226,55 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. - case "${UNAME_VERSION}" in + case "$UNAME_VERSION" in Debian*) release='-gnu' ;; *) - release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` + release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - echo "${machine}-${os}${release}${abi}" + echo "$machine-${os}${release}${abi}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} + echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" exit ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} + echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" + exit ;; + *:MidnightBSD:*:*) + echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" exit ;; *:ekkoBSD:*:*) - echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" exit ;; *:SolidBSD:*:*) - echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" exit ;; macppc:MirBSD:*:*) - echo powerpc-unknown-mirbsd${UNAME_RELEASE} + echo powerpc-unknown-mirbsd"$UNAME_RELEASE" exit ;; *:MirBSD:*:*) - echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" exit ;; *:Sortix:*:*) - echo ${UNAME_MACHINE}-unknown-sortix + echo "$UNAME_MACHINE"-unknown-sortix + exit ;; + *:Redox:*:*) + echo "$UNAME_MACHINE"-unknown-redox exit ;; + mips:OSF1:*.*) + echo mips-dec-osf1 + exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) @@ -310,28 +326,19 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` + echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; - Alpha\ *:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # Should we change UNAME_MACHINE based on the output of uname instead - # of the specific Alpha model? - echo alpha-pc-interix - exit ;; - 21064:Windows_NT:50:3) - echo alpha-dec-winnt3.5 - exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos + echo "$UNAME_MACHINE"-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-morphos + echo "$UNAME_MACHINE"-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition @@ -343,7 +350,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} + echo arm-acorn-riscix"$UNAME_RELEASE" exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos @@ -370,19 +377,19 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) - echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" exit ;; sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) - echo i386-pc-auroraux${UNAME_RELEASE} + echo i386-pc-auroraux"$UNAME_RELEASE" exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) - eval $set_cc_for_build + eval "$set_cc_for_build" SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. @@ -395,13 +402,13 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in SUN_ARCH=x86_64 fi fi - echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in @@ -410,25 +417,25 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" exit ;; sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} + echo m68k-sun-sunos"$UNAME_RELEASE" exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 + test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) - echo m68k-sun-sunos${UNAME_RELEASE} + echo m68k-sun-sunos"$UNAME_RELEASE" ;; sun4) - echo sparc-sun-sunos${UNAME_RELEASE} + echo sparc-sun-sunos"$UNAME_RELEASE" ;; esac exit ;; aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} + echo sparc-auspex-sunos"$UNAME_RELEASE" exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not @@ -439,44 +446,44 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} + echo m68k-atari-mint"$UNAME_RELEASE" exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} + echo m68k-atari-mint"$UNAME_RELEASE" exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} + echo m68k-atari-mint"$UNAME_RELEASE" exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} + echo m68k-milan-mint"$UNAME_RELEASE" exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} + echo m68k-hades-mint"$UNAME_RELEASE" exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} + echo m68k-unknown-mint"$UNAME_RELEASE" exit ;; m68k:machten:*:*) - echo m68k-apple-machten${UNAME_RELEASE} + echo m68k-apple-machten"$UNAME_RELEASE" exit ;; powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} + echo powerpc-apple-machten"$UNAME_RELEASE" exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} + echo mips-dec-ultrix"$UNAME_RELEASE" exit ;; VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} + echo vax-dec-ultrix"$UNAME_RELEASE" exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} + echo clipper-intergraph-clix"$UNAME_RELEASE" exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { @@ -485,23 +492,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && - dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && - SYSTEM_NAME=`$dummy $dummyarg` && + $CC_FOR_BUILD -o "$dummy" "$dummy.c" && + dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`"$dummy" "$dummyarg"` && { echo "$SYSTEM_NAME"; exit; } - echo mips-mips-riscos${UNAME_RELEASE} + echo mips-mips-riscos"$UNAME_RELEASE" exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax @@ -527,17 +534,17 @@ EOF AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ - [ ${TARGET_BINARY_INTERFACE}x = x ] + if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ + [ "$TARGET_BINARY_INTERFACE"x = x ] then - echo m88k-dg-dgux${UNAME_RELEASE} + echo m88k-dg-dgux"$UNAME_RELEASE" else - echo m88k-dg-dguxbcs${UNAME_RELEASE} + echo m88k-dg-dguxbcs"$UNAME_RELEASE" fi else - echo i586-dg-dgux${UNAME_RELEASE} + echo i586-dg-dgux"$UNAME_RELEASE" fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) @@ -554,7 +561,7 @@ EOF echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id @@ -566,14 +573,14 @@ EOF if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi - echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #include main() @@ -584,7 +591,7 @@ EOF exit(0); } EOF - if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` then echo "$SYSTEM_NAME" else @@ -598,7 +605,7 @@ EOF exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` - if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc @@ -607,18 +614,18 @@ EOF IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi - echo ${IBM_ARCH}-ibm-aix${IBM_REV} + echo "$IBM_ARCH"-ibm-aix"$IBM_REV" exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; - ibmrt:4.4BSD:*|romp-ibm:BSD:*) + ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx @@ -633,28 +640,28 @@ EOF echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - case "${UNAME_MACHINE}" in - 9000/31? ) HP_ARCH=m68000 ;; - 9000/[34]?? ) HP_ARCH=m68k ;; + HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` + case "$UNAME_MACHINE" in + 9000/31?) HP_ARCH=m68000 ;; + 9000/[34]??) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "${sc_cpu_version}" in + case "$sc_cpu_version" in 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 - case "${sc_kernel_bits}" in + case "$sc_kernel_bits" in 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 esac ;; esac fi - if [ "${HP_ARCH}" = "" ]; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + if [ "$HP_ARCH" = "" ]; then + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #define _HPUX_SOURCE #include @@ -687,13 +694,13 @@ EOF exit (0); } EOF - (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac - if [ ${HP_ARCH} = hppa2.0w ] + if [ "$HP_ARCH" = hppa2.0w ] then - eval $set_cc_for_build + eval "$set_cc_for_build" # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler @@ -712,15 +719,15 @@ EOF HP_ARCH=hppa64 fi fi - echo ${HP_ARCH}-hp-hpux${HPUX_REV} + echo "$HP_ARCH"-hp-hpux"$HPUX_REV" exit ;; ia64:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ia64-hp-hpux${HPUX_REV} + HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux"$HPUX_REV" exit ;; 3050*:HI-UX:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #include int main () @@ -745,11 +752,11 @@ EOF exit (0); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) @@ -758,7 +765,7 @@ EOF *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) @@ -766,9 +773,9 @@ EOF exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk + echo "$UNAME_MACHINE"-unknown-osf1mk else - echo ${UNAME_MACHINE}-unknown-osf1 + echo "$UNAME_MACHINE"-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) @@ -793,128 +800,109 @@ EOF echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) - echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) - echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` + FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" exit ;; sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} + echo sparc-unknown-bsdi"$UNAME_RELEASE" exit ;; *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` - case ${UNAME_PROCESSOR} in + case "$UNAME_PROCESSOR" in amd64) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac - echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" exit ;; i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin + echo "$UNAME_MACHINE"-pc-cygwin exit ;; *:MINGW64*:*) - echo ${UNAME_MACHINE}-pc-mingw64 + echo "$UNAME_MACHINE"-pc-mingw64 exit ;; *:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 + echo "$UNAME_MACHINE"-pc-mingw32 exit ;; *:MSYS*:*) - echo ${UNAME_MACHINE}-pc-msys - exit ;; - i*:windows32*:*) - # uname -m includes "-pc" on this system. - echo ${UNAME_MACHINE}-mingw32 + echo "$UNAME_MACHINE"-pc-msys exit ;; i*:PW*:*) - echo ${UNAME_MACHINE}-pc-pw32 + echo "$UNAME_MACHINE"-pc-pw32 exit ;; *:Interix*:*) - case ${UNAME_MACHINE} in + case "$UNAME_MACHINE" in x86) - echo i586-pc-interix${UNAME_RELEASE} + echo i586-pc-interix"$UNAME_RELEASE" exit ;; authenticamd | genuineintel | EM64T) - echo x86_64-unknown-interix${UNAME_RELEASE} + echo x86_64-unknown-interix"$UNAME_RELEASE" exit ;; IA64) - echo ia64-unknown-interix${UNAME_RELEASE} + echo ia64-unknown-interix"$UNAME_RELEASE" exit ;; esac ;; - [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) - echo i${UNAME_MACHINE}-pc-mks - exit ;; - 8664:Windows_NT:*) - echo x86_64-pc-mks - exit ;; - i*:Windows_NT*:* | Pentium*:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we - # UNAME_MACHINE based on the output of uname instead of i386? - echo i586-pc-interix - exit ;; i*:UWIN*:*) - echo ${UNAME_MACHINE}-pc-uwin + echo "$UNAME_MACHINE"-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; - p*:CYGWIN*:*) - echo powerpcle-unknown-cygwin - exit ;; prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; *:GNU:*:*) # the GNU system - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} + echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" exit ;; i*86:Minix:*:*) - echo ${UNAME_MACHINE}-pc-minix + echo "$UNAME_MACHINE"-pc-minix exit ;; aarch64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in @@ -928,63 +916,63 @@ EOF esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; arc:Linux:*:* | arceb:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; arm*:Linux:*:*) - eval $set_cc_for_build + eval "$set_cc_for_build" if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi else - echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf fi fi exit ;; avr32*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; cris:Linux:*:*) - echo ${UNAME_MACHINE}-axis-linux-${LIBC} + echo "$UNAME_MACHINE"-axis-linux-"$LIBC" exit ;; crisv32:Linux:*:*) - echo ${UNAME_MACHINE}-axis-linux-${LIBC} + echo "$UNAME_MACHINE"-axis-linux-"$LIBC" exit ;; e2k:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; frv:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; hexagon:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; i*86:Linux:*:*) - echo ${UNAME_MACHINE}-pc-linux-${LIBC} + echo "$UNAME_MACHINE"-pc-linux-"$LIBC" exit ;; ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; k1om:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; m32r*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; mips:Linux:*:* | mips64:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + eval "$set_cc_for_build" + sed 's/^ //' << EOF > "$dummy.c" #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el @@ -998,70 +986,70 @@ EOF #endif #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } + eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" + test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } ;; mips64el:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; openrisc*:Linux:*:*) - echo or1k-unknown-linux-${LIBC} + echo or1k-unknown-linux-"$LIBC" exit ;; or32:Linux:*:* | or1k*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; padre:Linux:*:*) - echo sparc-unknown-linux-${LIBC} + echo sparc-unknown-linux-"$LIBC" exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-${LIBC} + echo hppa64-unknown-linux-"$LIBC" exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; - PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; - *) echo hppa-unknown-linux-${LIBC} ;; + PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; + PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; + *) echo hppa-unknown-linux-"$LIBC" ;; esac exit ;; ppc64:Linux:*:*) - echo powerpc64-unknown-linux-${LIBC} + echo powerpc64-unknown-linux-"$LIBC" exit ;; ppc:Linux:*:*) - echo powerpc-unknown-linux-${LIBC} + echo powerpc-unknown-linux-"$LIBC" exit ;; ppc64le:Linux:*:*) - echo powerpc64le-unknown-linux-${LIBC} + echo powerpc64le-unknown-linux-"$LIBC" exit ;; ppcle:Linux:*:*) - echo powerpcle-unknown-linux-${LIBC} + echo powerpcle-unknown-linux-"$LIBC" exit ;; riscv32:Linux:*:* | riscv64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux-${LIBC} + echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" exit ;; sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; sh*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; tile*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; vax:Linux:*:*) - echo ${UNAME_MACHINE}-dec-linux-${LIBC} + echo "$UNAME_MACHINE"-dec-linux-"$LIBC" exit ;; x86_64:Linux:*:*) - echo ${UNAME_MACHINE}-pc-linux-${LIBC} + echo "$UNAME_MACHINE"-pc-linux-"$LIBC" exit ;; xtensa*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. @@ -1075,34 +1063,34 @@ EOF # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. - echo ${UNAME_MACHINE}-pc-os2-emx + echo "$UNAME_MACHINE"-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) - echo ${UNAME_MACHINE}-unknown-stop + echo "$UNAME_MACHINE"-unknown-stop exit ;; i*86:atheos:*:*) - echo ${UNAME_MACHINE}-unknown-atheos + echo "$UNAME_MACHINE"-unknown-atheos exit ;; i*86:syllable:*:*) - echo ${UNAME_MACHINE}-pc-syllable + echo "$UNAME_MACHINE"-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} + echo i386-unknown-lynxos"$UNAME_RELEASE" exit ;; i*86:*DOS:*:*) - echo ${UNAME_MACHINE}-pc-msdosdjgpp + echo "$UNAME_MACHINE"-pc-msdosdjgpp exit ;; - i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + i*86:*:4.*:*) + UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" fi exit ;; i*86:*:5:[678]*) @@ -1112,12 +1100,12 @@ EOF *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 @@ -1127,9 +1115,9 @@ EOF && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" else - echo ${UNAME_MACHINE}-pc-sysv32 + echo "$UNAME_MACHINE"-pc-sysv32 fi exit ;; pc:*:*:*) @@ -1149,9 +1137,9 @@ EOF exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) @@ -1171,9 +1159,9 @@ EOF test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; @@ -1182,28 +1170,28 @@ EOF test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} + echo m68k-unknown-lynxos"$UNAME_RELEASE" exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} + echo sparc-unknown-lynxos"$UNAME_RELEASE" exit ;; rs6000:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} + echo rs6000-unknown-lynxos"$UNAME_RELEASE" exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) - echo powerpc-unknown-lynxos${UNAME_RELEASE} + echo powerpc-unknown-lynxos"$UNAME_RELEASE" exit ;; SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} + echo mips-dde-sysv"$UNAME_RELEASE" exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 @@ -1214,7 +1202,7 @@ EOF *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 + echo "$UNAME_MACHINE"-sni-sysv4 else echo ns32k-sni-sysv fi @@ -1234,23 +1222,23 @@ EOF exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. - echo ${UNAME_MACHINE}-stratus-vos + echo "$UNAME_MACHINE"-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} + echo m68k-apple-aux"$UNAME_RELEASE" exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} + echo mips-nec-sysv"$UNAME_RELEASE" else - echo mips-unknown-sysv${UNAME_RELEASE} + echo mips-unknown-sysv"$UNAME_RELEASE" fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. @@ -1269,39 +1257,39 @@ EOF echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) - echo sx4-nec-superux${UNAME_RELEASE} + echo sx4-nec-superux"$UNAME_RELEASE" exit ;; SX-5:SUPER-UX:*:*) - echo sx5-nec-superux${UNAME_RELEASE} + echo sx5-nec-superux"$UNAME_RELEASE" exit ;; SX-6:SUPER-UX:*:*) - echo sx6-nec-superux${UNAME_RELEASE} + echo sx6-nec-superux"$UNAME_RELEASE" exit ;; SX-7:SUPER-UX:*:*) - echo sx7-nec-superux${UNAME_RELEASE} + echo sx7-nec-superux"$UNAME_RELEASE" exit ;; SX-8:SUPER-UX:*:*) - echo sx8-nec-superux${UNAME_RELEASE} + echo sx8-nec-superux"$UNAME_RELEASE" exit ;; SX-8R:SUPER-UX:*:*) - echo sx8r-nec-superux${UNAME_RELEASE} + echo sx8r-nec-superux"$UNAME_RELEASE" exit ;; SX-ACE:SUPER-UX:*:*) - echo sxace-nec-superux${UNAME_RELEASE} + echo sxace-nec-superux"$UNAME_RELEASE" exit ;; Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} + echo powerpc-apple-rhapsody"$UNAME_RELEASE" exit ;; *:Rhapsody:*:*) - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown - eval $set_cc_for_build + eval "$set_cc_for_build" if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi - if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then + if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ @@ -1329,7 +1317,7 @@ EOF # that Apple uses in portable devices. UNAME_PROCESSOR=x86_64 fi - echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` @@ -1337,22 +1325,25 @@ EOF UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi - echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-*:NONSTOP_KERNEL:*:*) - echo neo-tandem-nsk${UNAME_RELEASE} + echo neo-tandem-nsk"$UNAME_RELEASE" exit ;; NSE-*:NONSTOP_KERNEL:*:*) - echo nse-tandem-nsk${UNAME_RELEASE} + echo nse-tandem-nsk"$UNAME_RELEASE" exit ;; NSR-*:NONSTOP_KERNEL:*:*) - echo nsr-tandem-nsk${UNAME_RELEASE} + echo nsr-tandem-nsk"$UNAME_RELEASE" + exit ;; + NSV-*:NONSTOP_KERNEL:*:*) + echo nsv-tandem-nsk"$UNAME_RELEASE" exit ;; NSX-*:NONSTOP_KERNEL:*:*) - echo nsx-tandem-nsk${UNAME_RELEASE} + echo nsx-tandem-nsk"$UNAME_RELEASE" exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux @@ -1361,7 +1352,7 @@ EOF echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 @@ -1372,7 +1363,7 @@ EOF else UNAME_MACHINE="$cputype" fi - echo ${UNAME_MACHINE}-unknown-plan9 + echo "$UNAME_MACHINE"-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 @@ -1393,14 +1384,14 @@ EOF echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} + echo mips-sei-seiux"$UNAME_RELEASE" exit ;; *:DragonFly:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` - case "${UNAME_MACHINE}" in + case "$UNAME_MACHINE" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; @@ -1409,32 +1400,44 @@ EOF echo i386-pc-xenix exit ;; i*86:skyos:*:*) - echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` + echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" exit ;; i*86:rdos:*:*) - echo ${UNAME_MACHINE}-pc-rdos + echo "$UNAME_MACHINE"-pc-rdos exit ;; i*86:AROS:*:*) - echo ${UNAME_MACHINE}-pc-aros + echo "$UNAME_MACHINE"-pc-aros exit ;; x86_64:VMkernel:*:*) - echo ${UNAME_MACHINE}-unknown-esx + echo "$UNAME_MACHINE"-unknown-esx exit ;; amd64:Isilon\ OneFS:*:*) echo x86_64-unknown-onefs exit ;; esac +echo "$0: unable to guess system type" >&2 + +case "$UNAME_MACHINE:$UNAME_SYSTEM" in + mips:Linux | mips64:Linux) + # If we got here on MIPS GNU/Linux, output extra information. + cat >&2 <&2 </dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` -UNAME_MACHINE = ${UNAME_MACHINE} -UNAME_RELEASE = ${UNAME_RELEASE} -UNAME_SYSTEM = ${UNAME_SYSTEM} -UNAME_VERSION = ${UNAME_VERSION} +UNAME_MACHINE = "$UNAME_MACHINE" +UNAME_RELEASE = "$UNAME_RELEASE" +UNAME_SYSTEM = "$UNAME_SYSTEM" +UNAME_VERSION = "$UNAME_VERSION" EOF exit 1 # Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) +# eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" diff --git a/config.sub b/config.sub index 40ea5dfe..9ccf09a7 100755 --- a/config.sub +++ b/config.sub @@ -1,8 +1,8 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright 1992-2017 Free Software Foundation, Inc. +# Copyright 1992-2018 Free Software Foundation, Inc. -timestamp='2017-04-02' +timestamp='2018-03-08' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ timestamp='2017-04-02' # General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, see . +# along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -33,7 +33,7 @@ timestamp='2017-04-02' # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub +# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases @@ -57,7 +57,7 @@ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS Canonicalize a configuration name. -Operation modes: +Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit @@ -67,7 +67,7 @@ Report bugs and patches to ." version="\ GNU config.sub ($timestamp) -Copyright 1992-2017 Free Software Foundation, Inc. +Copyright 1992-2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -94,7 +94,7 @@ while test $# -gt 0 ; do *local*) # First pass through any local machine types. - echo $1 + echo "$1" exit ;; * ) @@ -112,7 +112,7 @@ esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ @@ -120,16 +120,16 @@ case $maybe_os in kopensolaris*-gnu* | cloudabi*-eabi* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown + basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` + basic_machine=`echo "$1" | sed 's/-[^-]*$//'` + if [ "$basic_machine" != "$1" ] + then os=`echo "$1" | sed 's/.*-/-/'` else os=; fi ;; esac @@ -178,44 +178,44 @@ case $os in ;; -sco6) os=-sco5v6 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -udk*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 @@ -227,10 +227,7 @@ case $os in os=-lynxos ;; -ptx*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` - ;; - -windowsnt*) - os=`echo $os | sed -e 's/windowsnt/winnt/'` + basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'` ;; -psos*) os=-psos @@ -299,7 +296,7 @@ case $basic_machine in | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 | or1k | or1knd | or32 \ - | pdp10 | pdp11 | pj | pjl \ + | pdp10 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pru \ | pyramid \ @@ -316,7 +313,6 @@ case $basic_machine in | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | visium \ | wasm32 \ - | we32k \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown @@ -337,7 +333,7 @@ case $basic_machine in basic_machine=$basic_machine-unknown os=-none ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) ;; ms1) basic_machine=mt-unknown @@ -366,7 +362,7 @@ case $basic_machine in ;; # Object if more than one company name word. *-*-*) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. @@ -461,7 +457,7 @@ case $basic_machine in # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) - basic_machine=i386-unknown + basic_machine=i386-pc os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) @@ -495,7 +491,7 @@ case $basic_machine in basic_machine=x86_64-pc ;; amd64-*) - basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl @@ -540,7 +536,7 @@ case $basic_machine in os=-linux ;; blackfin-*) - basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) @@ -548,13 +544,13 @@ case $basic_machine in os=-cnk ;; c54x-*) - basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c55x-*) - basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c6x-*) - basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray @@ -643,7 +639,7 @@ case $basic_machine in basic_machine=rs6000-bull os=-bosx ;; - dpx2* | dpx2*-bull) + dpx2*) basic_machine=m68k-bull os=-sysv3 ;; @@ -652,7 +648,7 @@ case $basic_machine in os=$os"spe" ;; e500v[12]-*) - basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=$os"spe" ;; ebmon29k) @@ -744,9 +740,6 @@ case $basic_machine in hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; - hppa-next) - os=-nextstep3 - ;; hppaosf) basic_machine=hppa1.1-hp os=-osf @@ -759,26 +752,26 @@ case $basic_machine in basic_machine=i370-ibm ;; i*86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; - i386-vsta | vsta) + vsta) basic_machine=i386-unknown os=-vsta ;; @@ -797,19 +790,16 @@ case $basic_machine in os=-sysv ;; leon-*|leon[3-9]-*) - basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` + basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) - basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; - m88k-omron*) - basic_machine=m88k-omron - ;; magnum | m3230) basic_machine=mips-mips os=-sysv @@ -841,10 +831,10 @@ case $basic_machine in os=-mint ;; mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` ;; mips3*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k @@ -863,7 +853,7 @@ case $basic_machine in os=-msdos ;; ms1-*) - basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i686-pc @@ -905,7 +895,7 @@ case $basic_machine in basic_machine=v70-nec os=-sysv ;; - next | m*-next ) + next | m*-next) basic_machine=m68k-next case $os in -nextstep* ) @@ -950,6 +940,9 @@ case $basic_machine in nsr-tandem) basic_machine=nsr-tandem ;; + nsv-tandem) + basic_machine=nsv-tandem + ;; nsx-tandem) basic_machine=nsx-tandem ;; @@ -985,7 +978,7 @@ case $basic_machine in os=-linux ;; parisc-*) - basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; pbd) @@ -1001,7 +994,7 @@ case $basic_machine in basic_machine=i386-pc ;; pc98-*) - basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc @@ -1016,16 +1009,16 @@ case $basic_machine in basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentium4-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould @@ -1035,23 +1028,23 @@ case $basic_machine in ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) - basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; - ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) - basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm @@ -1105,17 +1098,10 @@ case $basic_machine in sequent) basic_machine=i386-sequent ;; - sh) - basic_machine=sh-hitachi - os=-hms - ;; sh5el) basic_machine=sh5le-unknown ;; - sh64) - basic_machine=sh64-unknown - ;; - sparclite-wrs | simso-wrs) + simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; @@ -1134,7 +1120,7 @@ case $basic_machine in os=-sysv4 ;; strongarm-* | thumb-*) - basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` + basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun @@ -1248,9 +1234,6 @@ case $basic_machine in basic_machine=a29k-wrs os=-vxworks ;; - wasm32) - basic_machine=wasm32-unknown - ;; w65*) basic_machine=w65-wdc os=-none @@ -1259,6 +1242,9 @@ case $basic_machine in basic_machine=hppa1.1-winbond os=-proelf ;; + x64) + basic_machine=x86_64-pc + ;; xbox) basic_machine=i686-pc os=-mingw32 @@ -1267,20 +1253,12 @@ case $basic_machine in basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) - basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` + basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; - z8k-*-coff) - basic_machine=z8k-unknown - os=-sim - ;; - z80-*-coff) - basic_machine=z80-unknown - os=-sim - ;; none) basic_machine=none-none os=-none @@ -1309,10 +1287,6 @@ case $basic_machine in vax) basic_machine=vax-dec ;; - pdp10) - # there are many clones, so DEC is not a safe bet - basic_machine=pdp10-unknown - ;; pdp11) basic_machine=pdp11-dec ;; @@ -1322,9 +1296,6 @@ case $basic_machine in sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; - sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) - basic_machine=sparc-sun - ;; cydra) basic_machine=cydra-cydrome ;; @@ -1344,7 +1315,7 @@ case $basic_machine in # Make sure to match an already-canonicalized machine name. ;; *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 exit 1 ;; esac @@ -1352,10 +1323,10 @@ esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'` ;; *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'` ;; *) ;; @@ -1366,8 +1337,8 @@ esac if [ x"$os" != x"" ] then case $os in - # First match some system type aliases - # that might get confused with valid system types. + # First match some system type aliases that might get confused + # with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux @@ -1378,18 +1349,19 @@ case $os in -solaris) os=-solaris2 ;; - -svr4*) - os=-sysv4 - ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; - # First accept the basic system types. + # es1800 is here to avoid being matched by es* (a different OS) + -es1800*) + os=-ose + ;; + # Now accept the basic system types. # The portable systems comes first. - # Each alternative MUST END IN A *, to match a version number. + # Each alternative MUST end in a * to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ @@ -1399,25 +1371,26 @@ case $os in | -aos* | -aros* | -cloudabi* | -sortix* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* | -hcos* \ | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -morphos* | -superux* | -rtmk* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ - | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*) + | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \ + | -midnightbsd*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1434,12 +1407,12 @@ case $os in -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; - -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + -sim | -xray | -os68k* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) - os=`echo $os | sed -e 's|mac|macos|'` + os=`echo "$os" | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc @@ -1448,10 +1421,10 @@ case $os in os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) - os=`echo $os | sed -e 's|sunos5|solaris2|'` + os=`echo "$os" | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) - os=`echo $os | sed -e 's|sunos6|solaris3|'` + os=`echo "$os" | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition @@ -1462,12 +1435,6 @@ case $os in -wince*) os=-wince ;; - -osfrose*) - os=-osfrose - ;; - -osf*) - os=-osf - ;; -utek*) os=-bsd ;; @@ -1492,7 +1459,7 @@ case $os in -nova*) os=-rtmk-nova ;; - -ns2 ) + -ns2) os=-nextstep2 ;; -nsk*) @@ -1514,7 +1481,7 @@ case $os in -oss*) os=-sysv3 ;; - -svr4) + -svr4*) os=-sysv4 ;; -svr3) @@ -1529,24 +1496,28 @@ case $os in -ose*) os=-ose ;; - -es1800*) - os=-ose - ;; - -xenix) - os=-xenix - ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; - -aros*) - os=-aros - ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; + -pikeos*) + # Until real need of OS specific support for + # particular features comes up, bare metal + # configurations are quite functional. + case $basic_machine in + arm*) + os=-eabi + ;; + *) + os=-elf + ;; + esac + ;; -nacl*) ;; -ios) @@ -1556,7 +1527,7 @@ case $os in *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 exit 1 ;; esac @@ -1652,9 +1623,6 @@ case $basic_machine in *-be) os=-beos ;; - *-haiku) - os=-haiku - ;; *-ibm) os=-aix ;; @@ -1694,7 +1662,7 @@ case $basic_machine in m88k-omron*) os=-luna ;; - *-next ) + *-next) os=-nextstep ;; *-sequent) @@ -1709,9 +1677,6 @@ case $basic_machine in i370-*) os=-mvs ;; - *-next) - os=-nextstep3 - ;; *-gould) os=-sysv ;; @@ -1821,15 +1786,15 @@ case $basic_machine in vendor=stratus ;; esac - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"` ;; esac -echo $basic_machine$os +echo "$basic_machine$os" exit # Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) +# eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" diff --git a/configure b/configure index 4145dd03..8395ba55 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for sixel 1.8.1. +# Generated by GNU Autoconf 2.69 for sixel 1.8.2. # # Report bugs to . # @@ -590,8 +590,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='sixel' PACKAGE_TARNAME='sixel' -PACKAGE_VERSION='1.8.1' -PACKAGE_STRING='sixel 1.8.1' +PACKAGE_VERSION='1.8.2' +PACKAGE_STRING='sixel 1.8.2' PACKAGE_BUGREPORT='saitoha@me.com' PACKAGE_URL='' @@ -715,7 +715,6 @@ am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE -am__quote am__include DEPDIR OBJEXT @@ -800,7 +799,8 @@ PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR -SHELL' +SHELL +am__quote' ac_subst_files='' ac_user_opts=' enable_option_checking @@ -1393,7 +1393,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures sixel 1.8.1 to adapt to many kinds of systems. +\`configure' configures sixel 1.8.2 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1463,7 +1463,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of sixel 1.8.1:";; + short | recursive ) echo "Configuration of sixel 1.8.2:";; esac cat <<\_ACEOF @@ -1612,7 +1612,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -sixel configure 1.8.1 +sixel configure 1.8.2 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2027,7 +2027,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by sixel $as_me 1.8.1, which was +It was created by sixel $as_me 1.8.2, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2484,7 +2484,7 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac -am__api_version='1.15' +am__api_version='1.16' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or @@ -2970,7 +2970,7 @@ fi # Define the identity of the package. PACKAGE='sixel' - VERSION='1.8.1' + VERSION='1.8.2' cat >>confdefs.h <<_ACEOF @@ -3000,8 +3000,8 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: -# -# +# +# mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The @@ -3052,7 +3052,7 @@ END Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . +that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM @@ -3161,45 +3161,45 @@ DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" - -am_make=${MAKE-make} -cat > confinc << 'END' +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 +$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } +cat > confinc.mk << 'END' am__doit: - @echo this is the am__doit target + @echo this is the am__doit target >confinc.out .PHONY: am__doit END -# If we don't find an include directive, just comment out the code. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 -$as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# Ignore all kinds of additional output from 'make'. -case `$am_make -s -f confmf 2> /dev/null` in #( -*the\ am__doit\ target*) - am__include=include - am__quote= - _am_result=GNU - ;; -esac -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - case `$am_make -s -f confmf 2> /dev/null` in #( - *the\ am__doit\ target*) - am__include=.include - am__quote="\"" - _am_result=BSD +# BSD make does it like this. +echo '.include "confinc.mk" # ignored' > confmf.BSD +# Other make implementations (GNU, Solaris 10, AIX) do it like this. +echo 'include confinc.mk # ignored' > confmf.GNU +_am_result=no +for s in GNU BSD; do + { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 + (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + case $?:`cat confinc.out 2>/dev/null` in #( + '0:this is the am__doit target') : + case $s in #( + BSD) : + am__include='.include' am__quote='"' ;; #( + *) : + am__include='include' am__quote='' ;; +esac ;; #( + *) : ;; - esac -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 -$as_echo "$_am_result" >&6; } -rm -f confinc confmf +esac + if test "$am__include" != "#"; then + _am_result="yes ($s style)" + break + fi +done +rm -f confinc.* confmf.* +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 +$as_echo "${_am_result}" >&6; } # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : @@ -15526,7 +15526,7 @@ if ${am_cv_pathless_PYTHON+:} false; then : $as_echo_n "(cached) " >&6 else - for am_cv_pathless_PYTHON in python python2 python3 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do + for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do test "$am_cv_pathless_PYTHON" = none && break prog="import sys # split strings by '.' and convert to numeric. Append some zeros @@ -16373,7 +16373,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by sixel $as_me 1.8.1, which was +This file was extended by sixel $as_me 1.8.2, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -16439,7 +16439,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -sixel config.status 1.8.1 +sixel config.status 1.8.2 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" @@ -16558,7 +16558,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" +AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" # The HP-UX ksh and POSIX shell print the target directory to stdout @@ -17463,29 +17463,35 @@ $as_echo "$as_me: executing $ac_file commands" >&6;} # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. - case $CONFIG_FILES in - *\'*) eval set x "$CONFIG_FILES" ;; - *) set x $CONFIG_FILES ;; - esac + # TODO: see whether this extra hack can be removed once we start + # requiring Autoconf 2.70 or later. + case $CONFIG_FILES in #( + *\'*) : + eval set x "$CONFIG_FILES" ;; #( + *) : + set x $CONFIG_FILES ;; #( + *) : + ;; +esac shift - for mf + # Used to flag and report bootstrapping failures. + am_rc=0 + for am_mf do # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named 'Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line + am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile which includes + # dependency-tracking related rules and includes. + # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$mf" | + sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ + || continue + am_dirpart=`$as_dirname -- "$am_mf" || +$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$am_mf" : 'X\(//\)[^/]' \| \ + X"$am_mf" : 'X\(//\)$' \| \ + X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -17503,53 +17509,48 @@ $as_echo X"$mf" | q } s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running 'make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "$am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ + am_filepart=`$as_basename -- "$am_mf" || +$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ + X"$am_mf" : 'X\(//\)$' \| \ + X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$am_mf" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } - /^X\(\/\/\)$/{ + /^X\/\(\/\/\)$/{ s//\1/ q } - /^X\(\/\).*/{ + /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` - as_dir=$dirpart/$fdir; as_fn_mkdir_p - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done + { echo "$as_me:$LINENO: cd "$am_dirpart" \ + && sed -e '/# am--include-marker/d' "$am_filepart" \ + | $MAKE -f - am--depfiles" >&5 + (cd "$am_dirpart" \ + && sed -e '/# am--include-marker/d' "$am_filepart" \ + | $MAKE -f - am--depfiles) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } || am_rc=$? done + if test $am_rc -ne 0; then + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "Something went wrong bootstrapping makefile fragments + for automatic dependency tracking. Try re-running configure with the + '--disable-dependency-tracking' option to at least be able to build + the package (albeit without support for automatic dependency tracking). +See \`config.log' for more details" "$LINENO" 5; } + fi + { am_dirpart=; unset am_dirpart;} + { am_filepart=; unset am_filepart;} + { am_mf=; unset am_mf;} + { am_rc=; unset am_rc;} + rm -f conftest-deps.mk } ;; "libtool":C) diff --git a/configure.ac b/configure.ac index 453f1309..d65546f5 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_PREREQ([2.60]) LT_PREREQ([2.4]) -AC_INIT([sixel], [1.8.1], [saitoha@me.com]) +AC_INIT([sixel], [1.8.2], [saitoha@me.com]) LS_LT_CURRENT=1 LS_LT_REVISION=6 LS_LT_AGE=0 diff --git a/converters/Makefile.in b/converters/Makefile.in index 54ed81a0..05cdc626 100644 --- a/converters/Makefile.in +++ b/converters/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. +# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2017 Free Software Foundation, Inc. +# Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -157,7 +157,11 @@ am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles +am__maybe_remake_depfiles = depfiles +am__depfiles_remade = ./$(DEPDIR)/img2sixel-img2sixel.Po \ + ./$(DEPDIR)/img2sixel-malloc_stub.Po \ + ./$(DEPDIR)/sixel2png-malloc_stub.Po \ + ./$(DEPDIR)/sixel2png-sixel2png.Po am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) @@ -233,7 +237,7 @@ am__recursive_targets = \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ - distdir + distdir distdir-am am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is @@ -463,8 +467,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) @@ -539,10 +543,16 @@ mostlyclean-compile: distclean-compile: -rm -f *.tab.c -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/img2sixel-img2sixel.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/img2sixel-malloc_stub.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sixel2png-malloc_stub.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sixel2png-sixel2png.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/img2sixel-img2sixel.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/img2sixel-malloc_stub.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sixel2png-malloc_stub.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sixel2png-sixel2png.Po@am__quote@ # am--include-marker + +$(am__depfiles_remade): + @$(MKDIR_P) $(@D) + @echo '# dummy' >$@-t && $(am__mv) $@-t $@ + +am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @@ -811,7 +821,10 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -distdir: $(DISTFILES) +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ @@ -910,7 +923,10 @@ clean: clean-recursive clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive - -rm -rf ./$(DEPDIR) + -rm -f ./$(DEPDIR)/img2sixel-img2sixel.Po + -rm -f ./$(DEPDIR)/img2sixel-malloc_stub.Po + -rm -f ./$(DEPDIR)/sixel2png-malloc_stub.Po + -rm -f ./$(DEPDIR)/sixel2png-sixel2png.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags @@ -957,7 +973,10 @@ install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive - -rm -rf ./$(DEPDIR) + -rm -f ./$(DEPDIR)/img2sixel-img2sixel.Po + -rm -f ./$(DEPDIR)/img2sixel-malloc_stub.Po + -rm -f ./$(DEPDIR)/sixel2png-malloc_stub.Po + -rm -f ./$(DEPDIR)/sixel2png-sixel2png.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic @@ -981,21 +1000,22 @@ uninstall-man: uninstall-man1 .MAKE: $(am__recursive_targets) install-am install-strip -.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ - check-am clean clean-binPROGRAMS clean-generic clean-libtool \ - cscopelist-am ctags ctags-am distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-binPROGRAMS install-data install-data-am \ - install-dist_bashcompletionDATA install-dist_zshcompletionDATA \ - install-dvi install-dvi-am install-exec install-exec-am \ - install-html install-html-am install-info install-info-am \ - install-man install-man1 install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am uninstall-binPROGRAMS \ +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ + am--depfiles check check-am clean clean-binPROGRAMS \ + clean-generic clean-libtool cscopelist-am ctags ctags-am \ + distclean distclean-compile distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-binPROGRAMS \ + install-data install-data-am install-dist_bashcompletionDATA \ + install-dist_zshcompletionDATA install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-man1 \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ + uninstall-am uninstall-binPROGRAMS \ uninstall-dist_bashcompletionDATA \ uninstall-dist_zshcompletionDATA uninstall-man uninstall-man1 diff --git a/converters/img2sixel.1 b/converters/img2sixel.1 index 4e19180a..50005868 100644 --- a/converters/img2sixel.1 +++ b/converters/img2sixel.1 @@ -96,7 +96,7 @@ burkes -> Burkes' method .br a_dither -> positionally stable arithmetic dither .br -a_dither -> positionally stable arithmetic xor based dither +x_dither -> positionally stable arithmetic xor based dither .TP 5 .B \-f \fIFINDTYPE\fP, \-\-find\-largest=\fIFINDTYPE\fP choose method for finding the largest dimension of median diff --git a/depcomp b/depcomp index b39f98f9..65cbf709 100755 --- a/depcomp +++ b/depcomp @@ -1,9 +1,9 @@ #! /bin/sh # depcomp - compile a program generating dependencies as side-effects -scriptversion=2016-01-11.22; # UTC +scriptversion=2018-03-07.03; # UTC -# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# Copyright (C) 1999-2018 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -16,7 +16,7 @@ scriptversion=2016-01-11.22; # UTC # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -783,7 +783,7 @@ exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 -# eval: (add-hook 'write-file-hooks 'time-stamp) +# eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" diff --git a/include/Makefile.in b/include/Makefile.in index 10993de8..edddde6d 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. +# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2017 Free Software Foundation, Inc. +# Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -340,8 +340,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) @@ -434,7 +434,10 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -distdir: $(DISTFILES) +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ diff --git a/install-sh b/install-sh index 0360b79e..8175c640 100755 --- a/install-sh +++ b/install-sh @@ -1,7 +1,7 @@ #!/bin/sh # install - install a program, script, or datafile -scriptversion=2016-01-11.22; # UTC +scriptversion=2018-03-11.20; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the @@ -271,15 +271,18 @@ do fi dst=$dst_arg - # If destination is a directory, append the input filename; won't work - # if double slashes aren't ignored. + # If destination is a directory, append the input filename. if test -d "$dst"; then if test "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst - dst=$dstdir/`basename "$src"` + dstbase=`basename "$src"` + case $dst in + */) dst=$dst$dstbase;; + *) dst=$dst/$dstbase;; + esac dstdir_status=0 else dstdir=`dirname "$dst"` @@ -288,6 +291,11 @@ do fi fi + case $dstdir in + */) dstdirslash=$dstdir;; + *) dstdirslash=$dstdir/;; + esac + obsolete_mkdir_used=false if test $dstdir_status != 0; then @@ -324,34 +332,43 @@ do # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) + # Note that $RANDOM variable is not portable (e.g. dash); Use it + # here however when possible just to lower collision chance. tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ - trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 + trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 + + # Because "mkdir -p" follows existing symlinks and we likely work + # directly in world-writeable /tmp, make sure that the '$tmpdir' + # directory is successfully created first before we actually test + # 'mkdir -p' feature. if (umask $mkdir_umask && - exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 + $mkdirprog $mkdir_mode "$tmpdir" && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. - ls_ld_tmpdir=`ls -ld "$tmpdir"` + test_tmpdir="$tmpdir/a" + ls_ld_tmpdir=`ls -ld "$test_tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && - $mkdirprog -m$different_mode -p -- "$tmpdir" && { - ls_ld_tmpdir_1=`ls -ld "$tmpdir"` + $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi - rmdir "$tmpdir/d" "$tmpdir" + rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. - rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null + rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null fi trap '' 0;; esac;; @@ -427,8 +444,8 @@ do else # Make a couple of temp file names in the proper directory. - dsttmp=$dstdir/_inst.$$_ - rmtmp=$dstdir/_rm.$$_ + dsttmp=${dstdirslash}_inst.$$_ + rmtmp=${dstdirslash}_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 @@ -493,7 +510,7 @@ do done # Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) +# eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" diff --git a/missing b/missing index c6e37958..625aeb11 100755 --- a/missing +++ b/missing @@ -1,9 +1,9 @@ #! /bin/sh # Common wrapper for a few potentially missing GNU programs. -scriptversion=2016-01-11.22; # UTC +scriptversion=2018-03-07.03; # UTC -# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# Copyright (C) 1996-2018 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify @@ -17,7 +17,7 @@ scriptversion=2016-01-11.22; # UTC # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -101,9 +101,9 @@ else exit $st fi -perl_URL=http://www.perl.org/ -flex_URL=http://flex.sourceforge.net/ -gnu_software_URL=http://www.gnu.org/software +perl_URL=https://www.perl.org/ +flex_URL=https://github.com/westes/flex +gnu_software_URL=https://www.gnu.org/software program_details () { @@ -207,7 +207,7 @@ give_advice "$1" | sed -e '1s/^/WARNING: /' \ exit $st # Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) +# eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" diff --git a/package.json b/package.json index 4629d40a..edb3f4b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "libsixel", - "version": "1.8.1", + "version": "1.8.2", "repo": "saitoha/libsixel", "description": "A lightweight, fast implementation of DEC SIXEL graphics codec", "keywords": ["terminal", "graphics", "image", "sixel"], diff --git a/py-compile b/py-compile index 3693d96b..9f8baf7a 100755 --- a/py-compile +++ b/py-compile @@ -1,9 +1,9 @@ #!/bin/sh # py-compile - Compile a Python program -scriptversion=2016-01-11.22; # UTC +scriptversion=2018-03-07.03; # UTC -# Copyright (C) 2000-2017 Free Software Foundation, Inc. +# Copyright (C) 2000-2018 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -16,7 +16,7 @@ scriptversion=2016-01-11.22; # UTC # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -162,7 +162,7 @@ sys.stdout.write('\n')" 2>/dev/null || : # Local Variables: # mode: shell-script # sh-indentation: 2 -# eval: (add-hook 'write-file-hooks 'time-stamp) +# eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" diff --git a/python/Makefile.in b/python/Makefile.in index d82d8cd6..e056ee8b 100644 --- a/python/Makefile.in +++ b/python/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. +# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2017 Free Software Foundation, Inc. +# Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -153,7 +153,7 @@ am__uninstall_files_from_dir = { \ am__py_compile = PYTHON=$(PYTHON) $(SHELL) $(py_compile) am__installdirs = "$(DESTDIR)$(libsixeldir)" am__pep3147_tweak = \ - sed -e 's|\.py$$||' -e 's|[^/]*$$|__pycache__/&.*.py|' + sed -e 's|\.py$$||' -e 's|[^/]*$$|&.*.pyc\n&.*.pyo|' py_compile = $(top_srcdir)/py-compile am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/py-compile @@ -335,8 +335,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) @@ -386,20 +386,15 @@ uninstall-libsixelPYTHON: dir='$(DESTDIR)$(libsixeldir)'; \ pyc_files=`echo "$$py_files" | sed 's|$$|c|'`; \ pyo_files=`echo "$$py_files" | sed 's|$$|o|'`; \ - py_files_pep3147=`echo "$$py_files" | $(am__pep3147_tweak)`; \ - echo "$$py_files_pep3147";\ - pyc_files_pep3147=`echo "$$py_files_pep3147" | sed 's|$$|c|'`; \ - pyo_files_pep3147=`echo "$$py_files_pep3147" | sed 's|$$|o|'`; \ st=0; \ - for files in \ - "$$py_files" \ - "$$pyc_files" \ - "$$pyo_files" \ - "$$pyc_files_pep3147" \ - "$$pyo_files_pep3147" \ - ; do \ + for files in "$$py_files" "$$pyc_files" "$$pyo_files"; do \ $(am__uninstall_files_from_dir) || st=$$?; \ done; \ + dir='$(DESTDIR)$(libsixeldir)/__pycache__'; \ + echo "$$py_files" | $(am__pep3147_tweak) | $(am__base_list) | \ + while read files; do \ + $(am__uninstall_files_from_dir) || st=$$?; \ + done || exit $$?; \ exit $$st tags TAGS: @@ -408,7 +403,10 @@ ctags CTAGS: cscope cscopelist: -distdir: $(DISTFILES) +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ diff --git a/src/Makefile.in b/src/Makefile.in index 4296fead..bb31f70c 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. +# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2017 Free Software Foundation, Inc. +# Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -104,6 +104,7 @@ mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +PROGRAMS = $(noinst_PROGRAMS) am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -156,7 +157,6 @@ am__v_lt_1 = libsixel_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libsixel_la_CFLAGS) \ $(CFLAGS) $(libsixel_la_LDFLAGS) $(LDFLAGS) -o $@ -PROGRAMS = $(noinst_PROGRAMS) am__tests_SOURCES_DIST = tests.c @COND_TESTS_TRUE@am_tests_OBJECTS = tests-tests.$(OBJEXT) tests_OBJECTS = $(am_tests_OBJECTS) @@ -178,7 +178,27 @@ am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles +am__maybe_remake_depfiles = depfiles +am__depfiles_remade = ./$(DEPDIR)/libsixel_la-allocator.Plo \ + ./$(DEPDIR)/libsixel_la-chunk.Plo \ + ./$(DEPDIR)/libsixel_la-decoder.Plo \ + ./$(DEPDIR)/libsixel_la-dither.Plo \ + ./$(DEPDIR)/libsixel_la-encoder.Plo \ + ./$(DEPDIR)/libsixel_la-frame.Plo \ + ./$(DEPDIR)/libsixel_la-fromgif.Plo \ + ./$(DEPDIR)/libsixel_la-frompnm.Plo \ + ./$(DEPDIR)/libsixel_la-fromsixel.Plo \ + ./$(DEPDIR)/libsixel_la-loader.Plo \ + ./$(DEPDIR)/libsixel_la-malloc_stub.Plo \ + ./$(DEPDIR)/libsixel_la-output.Plo \ + ./$(DEPDIR)/libsixel_la-pixelformat.Plo \ + ./$(DEPDIR)/libsixel_la-quant.Plo \ + ./$(DEPDIR)/libsixel_la-scale.Plo \ + ./$(DEPDIR)/libsixel_la-status.Plo \ + ./$(DEPDIR)/libsixel_la-stb_image_write.Plo \ + ./$(DEPDIR)/libsixel_la-tosixel.Plo \ + ./$(DEPDIR)/libsixel_la-tty.Plo \ + ./$(DEPDIR)/libsixel_la-writer.Plo ./$(DEPDIR)/tests-tests.Po am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) @@ -466,8 +486,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) @@ -479,6 +499,15 @@ $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): +clean-noinstPROGRAMS: + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list + install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ @@ -517,15 +546,6 @@ clean-libLTLIBRARIES: libsixel.la: $(libsixel_la_OBJECTS) $(libsixel_la_DEPENDENCIES) $(EXTRA_libsixel_la_DEPENDENCIES) $(AM_V_CCLD)$(libsixel_la_LINK) -rpath $(libdir) $(libsixel_la_OBJECTS) $(libsixel_la_LIBADD) $(LIBS) -clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list - tests$(EXEEXT): $(tests_OBJECTS) $(tests_DEPENDENCIES) $(EXTRA_tests_DEPENDENCIES) @rm -f tests$(EXEEXT) $(AM_V_CCLD)$(tests_LINK) $(tests_OBJECTS) $(tests_LDADD) $(LIBS) @@ -536,27 +556,33 @@ mostlyclean-compile: distclean-compile: -rm -f *.tab.c -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-allocator.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-chunk.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-decoder.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-dither.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-encoder.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-frame.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-fromgif.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-frompnm.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-fromsixel.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-loader.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-malloc_stub.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-output.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-pixelformat.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-quant.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-scale.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-status.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-stb_image_write.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-tosixel.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-tty.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-writer.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tests-tests.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-allocator.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-chunk.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-decoder.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-dither.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-encoder.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-frame.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-fromgif.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-frompnm.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-fromsixel.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-loader.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-malloc_stub.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-output.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-pixelformat.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-quant.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-scale.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-status.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-stb_image_write.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-tosixel.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-tty.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsixel_la-writer.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tests-tests.Po@am__quote@ # am--include-marker + +$(am__depfiles_remade): + @$(MKDIR_P) $(@D) + @echo '# dummy' >$@-t && $(am__mv) $@-t $@ + +am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @@ -834,7 +860,10 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -distdir: $(DISTFILES) +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ @@ -866,7 +895,7 @@ distdir: $(DISTFILES) done check-am: all-am check: check-am -all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(MANS) +all-am: Makefile $(PROGRAMS) $(LTLIBRARIES) $(MANS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(man5dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ @@ -908,7 +937,27 @@ clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ clean-noinstPROGRAMS mostlyclean-am distclean: distclean-am - -rm -rf ./$(DEPDIR) + -rm -f ./$(DEPDIR)/libsixel_la-allocator.Plo + -rm -f ./$(DEPDIR)/libsixel_la-chunk.Plo + -rm -f ./$(DEPDIR)/libsixel_la-decoder.Plo + -rm -f ./$(DEPDIR)/libsixel_la-dither.Plo + -rm -f ./$(DEPDIR)/libsixel_la-encoder.Plo + -rm -f ./$(DEPDIR)/libsixel_la-frame.Plo + -rm -f ./$(DEPDIR)/libsixel_la-fromgif.Plo + -rm -f ./$(DEPDIR)/libsixel_la-frompnm.Plo + -rm -f ./$(DEPDIR)/libsixel_la-fromsixel.Plo + -rm -f ./$(DEPDIR)/libsixel_la-loader.Plo + -rm -f ./$(DEPDIR)/libsixel_la-malloc_stub.Plo + -rm -f ./$(DEPDIR)/libsixel_la-output.Plo + -rm -f ./$(DEPDIR)/libsixel_la-pixelformat.Plo + -rm -f ./$(DEPDIR)/libsixel_la-quant.Plo + -rm -f ./$(DEPDIR)/libsixel_la-scale.Plo + -rm -f ./$(DEPDIR)/libsixel_la-status.Plo + -rm -f ./$(DEPDIR)/libsixel_la-stb_image_write.Plo + -rm -f ./$(DEPDIR)/libsixel_la-tosixel.Plo + -rm -f ./$(DEPDIR)/libsixel_la-tty.Plo + -rm -f ./$(DEPDIR)/libsixel_la-writer.Plo + -rm -f ./$(DEPDIR)/tests-tests.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags @@ -954,7 +1003,27 @@ install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) + -rm -f ./$(DEPDIR)/libsixel_la-allocator.Plo + -rm -f ./$(DEPDIR)/libsixel_la-chunk.Plo + -rm -f ./$(DEPDIR)/libsixel_la-decoder.Plo + -rm -f ./$(DEPDIR)/libsixel_la-dither.Plo + -rm -f ./$(DEPDIR)/libsixel_la-encoder.Plo + -rm -f ./$(DEPDIR)/libsixel_la-frame.Plo + -rm -f ./$(DEPDIR)/libsixel_la-fromgif.Plo + -rm -f ./$(DEPDIR)/libsixel_la-frompnm.Plo + -rm -f ./$(DEPDIR)/libsixel_la-fromsixel.Plo + -rm -f ./$(DEPDIR)/libsixel_la-loader.Plo + -rm -f ./$(DEPDIR)/libsixel_la-malloc_stub.Plo + -rm -f ./$(DEPDIR)/libsixel_la-output.Plo + -rm -f ./$(DEPDIR)/libsixel_la-pixelformat.Plo + -rm -f ./$(DEPDIR)/libsixel_la-quant.Plo + -rm -f ./$(DEPDIR)/libsixel_la-scale.Plo + -rm -f ./$(DEPDIR)/libsixel_la-status.Plo + -rm -f ./$(DEPDIR)/libsixel_la-stb_image_write.Plo + -rm -f ./$(DEPDIR)/libsixel_la-tosixel.Plo + -rm -f ./$(DEPDIR)/libsixel_la-tty.Plo + -rm -f ./$(DEPDIR)/libsixel_la-writer.Plo + -rm -f ./$(DEPDIR)/tests-tests.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic @@ -977,21 +1046,21 @@ uninstall-man: uninstall-man5 .MAKE: install-am install-strip -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libLTLIBRARIES clean-libtool clean-noinstPROGRAMS \ - cscopelist-am ctags ctags-am distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-libLTLIBRARIES \ - install-man install-man5 install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ - uninstall-am uninstall-libLTLIBRARIES uninstall-man \ - uninstall-man5 +.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ + clean-generic clean-libLTLIBRARIES clean-libtool \ + clean-noinstPROGRAMS cscopelist-am ctags ctags-am distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am \ + install-libLTLIBRARIES install-man install-man5 install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES \ + uninstall-man uninstall-man5 .PRECIOUS: Makefile diff --git a/src/dither.c b/src/dither.c index 90ae831f..72251d78 100644 --- a/src/dither.c +++ b/src/dither.c @@ -279,7 +279,7 @@ sixel_dither_new( sixel_allocator_ref(allocator); } - if (ncolors == (-1)) { + if (ncolors < 0) { ncolors = 256; quality_mode = SIXEL_QUALITY_HIGHCOLOR; } else { diff --git a/src/frompnm.c b/src/frompnm.c index 56e7ca8f..44529db1 100644 --- a/src/frompnm.c +++ b/src/frompnm.c @@ -26,6 +26,9 @@ #include #include +#define PNM_MAX_WIDTH (1 << 16) +#define PNM_MAX_HEIGHT (1 << 16) +#define PNM_MAX_DEPTH (1 << 16) static unsigned char * pnm_get_line(unsigned char *p, unsigned char *end, unsigned char *line) @@ -74,6 +77,7 @@ load_pnm(unsigned char /* in */ *p, int width; int height; int deps; + char message[256]; unsigned char *s; unsigned char *end; unsigned char tmp[256]; @@ -97,72 +101,117 @@ load_pnm(unsigned char /* in */ *p, switch(tmp[1]) { case '1': + /* Portable bitmap - ASCII */ ascii = 1; maps = 0; break; case '2': + /* Portable graymap - ASCII */ ascii = 1; maps = 1; break; case '3': + /* Portable pixmap - ASCII */ ascii = 1; maps = 2; break; case '4': + /* Portable bitmap - Binary */ ascii = 0; maps = 0; break; case '5': + /* Portable graymap - Binary */ ascii = 0; maps = 1; break; case '6': + /* Portable pixmap - Binary */ ascii = 0; maps = 2; break; default: - status = SIXEL_RUNTIME_ERROR; - sixel_helper_set_additional_message( - "load_pnm: unknown ppm format."); - goto end; + goto unknown; } p = pnm_get_line(p, end, tmp); + if (p == end) { + /* check empty content */ + /* Issue 71: https://github.com/saitoha/libsixel/issues/71 */ + goto invalid; + } s = tmp; + + /* parse width */ width = 0; - while (isdigit(*s) && width >= 0) { - width = width * 10 + (*s++ - '0'); + for (; *s >= '0' && *s <= '9'; ++s) { + width = width * 10 + (*s - '0'); + if (width > PNM_MAX_WIDTH) { + status = SIXEL_RUNTIME_ERROR; + sprintf( + message, + "load_pnm: image width exceeds the limit %d.", + PNM_MAX_WIDTH); + sixel_helper_set_additional_message(message); + goto end; + } } + while (*s == ' ') { s++; } + + /* parse height */ height = 0; - while (isdigit(*s) && height >= 0) { - height = height * 10 + (*s++ - '0'); + for (; *s >= '0' && *s <= '9'; ++s) { + height = height * 10 + (*s - '0'); + if (width > PNM_MAX_WIDTH) { + status = SIXEL_RUNTIME_ERROR; + sprintf( + message, + "load_pnm: image height exceeds the limit %d.", + PNM_MAX_HEIGHT); + sixel_helper_set_additional_message(message); + goto end; + } } + while (*s != '\0') { s++; } if (maps > 0) { p = pnm_get_line(p, end, tmp); + if (p == end) { + /* check empty content */ + /* Issue 71: https://github.com/saitoha/libsixel/issues/71 */ + goto invalid; + } s = tmp; deps = 0; - while (isdigit(*s) && deps >= 0) { - deps = deps * 10 + (*s++ - '0'); + for (; *s >= '0' && *s <= '9'; ++s) { + deps = deps * 10 + (*s - '0'); + } + if (width > PNM_MAX_WIDTH) { + status = SIXEL_RUNTIME_ERROR; + sprintf( + message, + "load_pnm: image depth exceeds the limit %d.", + PNM_MAX_DEPTH); + sixel_helper_set_additional_message(message); + goto end; } } if (width < 1 || height < 1 || deps < 1) { - status = SIXEL_RUNTIME_ERROR; - sixel_helper_set_additional_message( - "load_pnm: invalid data detected."); - goto end; + goto invalid; } - *result = (unsigned char *)sixel_allocator_malloc(allocator, - (size_t)(width * height * 3 + 1)); + *result = (unsigned char *)sixel_allocator_malloc( + allocator, + (size_t)(width * height * 3 + 1)); + if (*result == NULL) { sixel_helper_set_additional_message( "load_pnm: sixel_allocator_malloc() failed."); @@ -186,7 +235,9 @@ load_pnm(unsigned char /* in */ *p, } n = 0; if (maps == 0) { - n = *s++ == '0'; + n = *s == '0'; + if (*s != '\0') + s++; } else { while (isdigit(*s) && n >= 0) { n = n * 10 + (*s++ - '0'); @@ -231,10 +282,7 @@ load_pnm(unsigned char /* in */ *p, component[2] = (component[2] * 255 / deps); break; default: - status = SIXEL_RUNTIME_ERROR; - sixel_helper_set_additional_message( - "load_pnm: unknown ppm format."); - goto end; + goto unknown; } *(*result + (y * width + x) * 3 + 0) = component[0]; @@ -248,6 +296,23 @@ load_pnm(unsigned char /* in */ *p, *ppixelformat = SIXEL_PIXELFORMAT_RGB888; status = SIXEL_OK; + goto end; + +unknown: + status = SIXEL_RUNTIME_ERROR; + sixel_helper_set_additional_message( + "load_pnm: unknown ppm format."); + sixel_allocator_free(allocator, *result); + *result = NULL; + goto end; + +invalid: + status = SIXEL_RUNTIME_ERROR; + sixel_helper_set_additional_message( + "load_pnm: invalid data detected."); + sixel_allocator_free(allocator, *result); + *result = NULL; + goto end; end: return status; diff --git a/src/quant.c b/src/quant.c index 827fe48a..a8e712ca 100644 --- a/src/quant.c +++ b/src/quant.c @@ -737,7 +737,7 @@ computeHistogram(unsigned char const /* in */ *data, goto end; } - for (i = 0; i < length - depth; i += step) { + for (i = 0; i < length; i += step) { bucket_index = computeHash(data + i, 3); if (histogram[bucket_index] == 0) { *ref++ = bucket_index; @@ -1274,6 +1274,15 @@ sixel_quant_apply_palette( unsigned short * const cachetable, int const complexion); + /* check bad reqcolor */ + if (reqcolor < 1) { + status = SIXEL_BAD_ARGUMENT; + sixel_helper_set_additional_message( + "sixel_quant_apply_palette: " + "a bad argument is detected, reqcolor < 0."); + goto end; + } + if (depth != 3) { f_diffuse = diffuse_none; } else { diff --git a/src/stb_image.h b/src/stb_image.h index d284fd09..26738094 100644 --- a/src/stb_image.h +++ b/src/stb_image.h @@ -1960,7 +1960,7 @@ static int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64], stbi__huffman if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); t = stbi__jpeg_huff_decode(j, hdc); - if (t < 0) return stbi__err("bad huffman code","Corrupt JPEG"); + if (t < 0 || t >= 16) return stbi__err("bad huffman code","Corrupt JPEG"); // 0 all the ac values now so we can do it 32-bits at a time memset(data,0,64*sizeof(data[0])); @@ -3063,7 +3063,7 @@ static int stbi__process_frame_header(stbi__jpeg *z, int scan) z->img_comp[i].coeff = 0; z->img_comp[i].raw_coeff = 0; z->img_comp[i].linebuf = NULL; - z->img_comp[i].raw_data = stbi__malloc_mad2(z->img_comp[i].w2, z->img_comp[i].h2, 15); + z->img_comp[i].raw_data = stbi__malloc_mad2(z->img_comp[i].w2, z->img_comp[i].h2 + 1, 15); if (z->img_comp[i].raw_data == NULL) return stbi__free_jpeg_components(z, i+1, stbi__err("outofmem", "Out of memory")); // align blocks for idct using mmx/sse diff --git a/tools/Makefile.in b/tools/Makefile.in index 63aa7bc3..b2a5f9d4 100644 --- a/tools/Makefile.in +++ b/tools/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. +# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2017 Free Software Foundation, Inc. +# Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -323,8 +323,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) @@ -385,7 +385,10 @@ ctags CTAGS: cscope cscopelist: -distdir: $(DISTFILES) +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \