This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via 4a428416a87a6b7b1290c8e89d3fc8cfc83fe188 (commit)
from dd150fbb860e16f01cbdf28dc2c0f2d2d8425b20 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/4a428416a87a6b7b1290c8e89d3fc8cfc83f…
commit 4a428416a87a6b7b1290c8e89d3fc8cfc83fe188
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sun Feb 2 11:10:06 2014 +0100
loaders: PCX: Add test for 8bit palette, fix docs.
Signed-off-by: Cyril Hrubis <metan(a)ucw.cz>
diff --git a/doc/about.txt b/doc/about.txt
index 6065ed4d..018d71f9 100644
--- a/doc/about.txt
+++ b/doc/about.txt
@@ -99,7 +99,7 @@ images into various standard formats (PNG, JPEG, GIF, TIFF, BMP, PNM, etc...).
[green]#Composite image only for newer formats than 3.0# |
[black]*No*
-| PBM PGM PNM |
+| PBM PGM PPM PNM |
Netpbm portable bitmap |
[green]#All but < 8bit binary grayscale# |
[green]#All ASCII formats#
@@ -111,7 +111,7 @@ images into various standard formats (PNG, JPEG, GIF, TIFF, BMP, PNM, etc...).
| PCX |
ZSoft PCX |
- [green]#All v3.0# |
+ [green]*Yes* |
[black]*No*
| CBZ |
diff --git a/doc/spiv.txt b/doc/spiv.txt
index 0a0b6bac..0fd031b1 100644
--- a/doc/spiv.txt
+++ b/doc/spiv.txt
@@ -6,8 +6,8 @@ Spiv is a fast, lightweight and minimalistic image viewer build on the top of
the GFXprim library.
Spiv supports wide range of image formats, currently supported are JPEG, PNG,
-GIF, BMP, TIFF, PSP, PPM, JP2 and CBZ (as well general ZIP archives with
-images), and more will come in the near future.
+GIF, BMP, TIFF, PSP, PNM, PCX, JPEG2000 and CBZ (as well general ZIP archives
+with images), and more will come in the near future.
Spiv implements image caches with LRU (last recently used) algorithm which
speeds up subsequent image operations (rotations, going back and forth).
@@ -22,7 +22,7 @@ Floyd-Steinberg dithering (even, for example, from RGB888 to RGB565).
Spiv implements feh-like image actions, which are short shell scripts with
printf-like modifiers. The modifiers are substituted to current image path,
-name, etc. and executed by pressing function keys).
+name, etc. and executed by pressing function keys.
See 'spiv(1)' man page for more information.
diff --git a/tests/loaders/PCX.c b/tests/loaders/PCX.c
index d894c862..53d11e49 100644
--- a/tests/loaders/PCX.c
+++ b/tests/loaders/PCX.c
@@ -129,6 +129,14 @@ static struct testcase v2_8_4bpp_10x10_white = {
.pixel = 0xffffff,
};
+static struct testcase v3_0_8bpp_10x10_white = {
+ .path = "ver3_0_palette_8bpp_10x10_white.pcx",
+ .w = 10,
+ .h = 10,
+ .pixel_type = GP_PIXEL_RGB888,
+ .pixel = 0xffffff,
+};
+
static struct testcase v3_0_24bpp_10x10_white = {
.path = "ver3_0_palette_24bpp_10x10_white.pcx",
.w = 10,
@@ -164,6 +172,12 @@ const struct tst_suite tst_suite = {
.data = &v2_8_4bpp_10x10_white,
.flags = TST_TMPDIR | TST_CHECK_MALLOC},
+ {.name = "PCX Load ver3.0 8bpp 10x10 white",
+ .tst_fn = test_load_PCX,
+ .res_path = "data/pcx/valid/ver3_0_palette_8bpp_10x10_white.pcx",
+ .data = &v3_0_8bpp_10x10_white,
+ .flags = TST_TMPDIR | TST_CHECK_MALLOC},
+
{.name = "PCX Load ver3.0 24bpp 10x10 white",
.tst_fn = test_load_PCX,
.res_path = "data/pcx/valid/ver3_0_palette_24bpp_10x10_white.pcx",
diff --git a/tests/loaders/data/pcx/valid/ver3_0_palette_8bpp_10x10_white.pcx b/tests/loaders/data/pcx/valid/ver3_0_palette_8bpp_10x10_white.pcx
new file mode 100644
index 00000000..2f7e71ee
Binary files /dev/null and b/tests/loaders/data/pcx/valid/ver3_0_palette_8bpp_10x10_white.pcx differ
-----------------------------------------------------------------------
Summary of changes:
doc/about.txt | 4 ++--
doc/spiv.txt | 6 +++---
tests/loaders/PCX.c | 14 ++++++++++++++
.../pcx/valid/ver3_0_palette_8bpp_10x10_white.pcx | Bin 0 -> 917 bytes
4 files changed, 19 insertions(+), 5 deletions(-)
create mode 100644 tests/loaders/data/pcx/valid/ver3_0_palette_8bpp_10x10_white.pcx
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")