Skip to content

Commit

Permalink
Merge branch 'release-0.21' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
saitoha committed Jun 15, 2014
2 parents 08fb885 + f56d132 commit 5634f33
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 28 deletions.
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,13 @@ If you want to view a SIXEL image, you have to get a terminal which support sixe

Now SIXEL feature is supported by the following terminals.

- VT240
- DEC VT series, VT240/VT241/VT330/VT340/VT282/VT284/VT286/VT382

- VT241
- DECterm(dxterm)

- VT330

- VT340
- Kermit

- VT382
- WRQ Reflection / ZSTEM

- RLogin (Japanese terminal emulator)

Expand All @@ -71,13 +69,9 @@ Now SIXEL feature is supported by the following terminals.

You should launch xterm with "-ti 340" option. the SIXEL palette is limited to a maximum of 16 colors.

- DECterm

- Kermit

- WRQ Reflection
- yaft (in github repo)

- ZSTEM
[https://github.com/uobikiemukot/yaft](https://github.com/uobikiemukot/yaft)


## Usage of command line tools
Expand Down
20 changes: 10 additions & 10 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for sixel 0.20.0.
# Generated by GNU Autoconf 2.69 for sixel 0.21.1.
#
# Report bugs to <user@zuse.jp>.
#
Expand Down Expand Up @@ -589,8 +589,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='sixel'
PACKAGE_TARNAME='sixel'
PACKAGE_VERSION='0.20.0'
PACKAGE_STRING='sixel 0.20.0'
PACKAGE_VERSION='0.21.1'
PACKAGE_STRING='sixel 0.21.1'
PACKAGE_BUGREPORT='user@zuse.jp'
PACKAGE_URL=''

Expand Down Expand Up @@ -1355,7 +1355,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 0.20.0 to adapt to many kinds of systems.
\`configure' configures sixel 0.21.1 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

Expand Down Expand Up @@ -1425,7 +1425,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of sixel 0.20.0:";;
short | recursive ) echo "Configuration of sixel 0.21.1:";;
esac
cat <<\_ACEOF

Expand Down Expand Up @@ -1558,7 +1558,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
sixel configure 0.20.0
sixel configure 0.21.1
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
Expand Down Expand Up @@ -2094,7 +2094,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 0.20.0, which was
It was created by sixel $as_me 0.21.1, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ $0 $@
Expand Down Expand Up @@ -3035,7 +3035,7 @@ fi

# Define the identity of the package.
PACKAGE='sixel'
VERSION='0.20.0'
VERSION='0.21.1'


cat >>confdefs.h <<_ACEOF
Expand Down Expand Up @@ -17720,7 +17720,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 0.20.0, which was
This file was extended by sixel $as_me 0.21.1, which was
generated by GNU Autoconf 2.69. Invocation command line was

CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -17786,7 +17786,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 0.20.0
sixel config.status 0.21.1
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

AC_PREREQ([2.60])
LT_PREREQ([2.4])
AC_INIT([sixel], [0.20.0], [user@zuse.jp])
AC_INIT([sixel], [0.21.1], [user@zuse.jp])
LS_LT_CURRENT=0
LS_LT_REVISION=0
LS_LT_AGE=0
Expand Down
22 changes: 17 additions & 5 deletions converters/stb_image.h
Original file line number Diff line number Diff line change
Expand Up @@ -2897,7 +2897,7 @@ static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp)
}

// Microsoft/Windows BMP image
static int stbi__bmp_test(stbi__context *s)
static int stbi__bmp_test_raw(stbi__context *s)
{
int r;
int sz;
Expand All @@ -2908,7 +2908,13 @@ static int stbi__bmp_test(stbi__context *s)
stbi__get16le(s); // discard reserved
stbi__get32le(s); // discard data offset
sz = stbi__get32le(s);
r = (sz == 12 || sz == 40 || sz == 56 || sz == 108);
r = (sz == 12 || sz == 40 || sz == 56 || sz == 108 || sz == 124);
return r;
}

static int stbi__bmp_test(stbi__context *s)
{
int r = stbi__bmp_test_raw(s);
stbi__rewind(s);
return r;
}
Expand Down Expand Up @@ -2967,7 +2973,7 @@ static stbi_uc *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int
stbi__get16le(s); // discard reserved
offset = stbi__get32le(s);
hsz = stbi__get32le(s);
if (hsz != 12 && hsz != 40 && hsz != 56 && hsz != 108) return stbi__errpuc("unknown BMP", "BMP type not supported: unknown");
if (hsz != 12 && hsz != 40 && hsz != 56 && hsz != 108 && hsz != 124) return stbi__errpuc("unknown BMP", "BMP type not supported: unknown");
if (hsz == 12) {
s->img_x = stbi__get16le(s);
s->img_y = stbi__get16le(s);
Expand Down Expand Up @@ -3026,14 +3032,20 @@ static stbi_uc *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int
return stbi__errpuc("bad BMP", "bad BMP");
}
} else {
assert(hsz == 108);
assert(hsz == 108 || hsz == 124);
mr = stbi__get32le(s);
mg = stbi__get32le(s);
mb = stbi__get32le(s);
ma = stbi__get32le(s);
stbi__get32le(s); // discard color space
for (i=0; i < 12; ++i)
stbi__get32le(s); // discard color space parameters
if (hsz == 124) {
stbi__get32le(s); // discard rendering intent
stbi__get32le(s); // discard offset of profile data
stbi__get32le(s); // discard size of profile data
stbi__get32le(s); // discard reserved
}
}
if (bpp < 16)
psize = (offset - 14 - hsz) >> 2;
Expand Down Expand Up @@ -4363,7 +4375,7 @@ static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp)
}
stbi__skip(s,12);
hsz = stbi__get32le(s);
if (hsz != 12 && hsz != 40 && hsz != 56 && hsz != 108) {
if (hsz != 12 && hsz != 40 && hsz != 56 && hsz != 108 && hsz != 124) {
stbi__rewind( s );
return 0;
}
Expand Down
Binary file added images/snake.bmp
Binary file not shown.
Binary file added images/snake.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/snake.tga
Binary file not shown.
Binary file added images/snake.tiff
Binary file not shown.

0 comments on commit 5634f33

Please sign in to comment.