diff options
author | wiz <wiz> | 2003-12-21 21:29:08 +0000 |
---|---|---|
committer | wiz <wiz> | 2003-12-21 21:29:08 +0000 |
commit | 2cecf3a2e85d1bf0dcbcac2c7872b268d117a5cd (patch) | |
tree | 5875c58dc5879c9d3f1237453975ec376f6766c9 /graphics/jpeg_ls/patches/patch-ad | |
parent | a55949ff1465cb714d682d4a8b4cab9a9a1baa84 (diff) | |
download | pkgsrc-2cecf3a2e85d1bf0dcbcac2c7872b268d117a5cd.tar.gz |
Initial import of jpeg_ls-2.2:
This software package contains an implementation of JPEG-LS, the
emerging lossless/near-lossless compression standard for continuous-tone
images being developed by ISO/IEC JTC1/SC29/WG1 (draft document
FCD14495 as of November 1997). The names of the executables in the
software package derive from the acronym LOCO, as the core of the
new standard is based on the LOCO-I algorithm (LOw COmplexity
LOssless COmpression for Images) developed at Hewlett-Packard
Laboratories (reference: M. Weinberger, G. Seroussi, G. Sapiro,
"LOCO-I: A Low Complexity, Context-Based, Lossless Image Compression
Algorithm," Proc. IEEE Data Compression Conference, Snowbird, Utah,
March-April 1996).
The term "near-lossless compression" refers to a lossy algorithm
for which each decompressed image sample differs from the corresponding
original image sample by not more than a pre-specified value, the
(usually small) "loss." Lossless compression corresponds to loss=0.
Even though the term "continuous-tone image" refers in principle
to any image whose components have more than one bit per sample,
palletized images may require a reordering of the color palette
for best compression results using LOCO-I on the array of color
indices. This functionality is not implemented in the present
software, although it is supported by the new standard, and is easy
enough to implement with the tools given. Notice, however, that
LOCO-I and JPEG-LS were not designed, and might not give optimal
performance, for images that have been palletized through dithering.
Diffstat (limited to 'graphics/jpeg_ls/patches/patch-ad')
-rw-r--r-- | graphics/jpeg_ls/patches/patch-ad | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/graphics/jpeg_ls/patches/patch-ad b/graphics/jpeg_ls/patches/patch-ad new file mode 100644 index 00000000000..b8e7ec2cfcd --- /dev/null +++ b/graphics/jpeg_ls/patches/patch-ad @@ -0,0 +1,31 @@ +$NetBSD: patch-ad,v 1.1.1.1 2003/12/21 21:29:08 wiz Exp $ + +--- Encoder/global.h.orig Tue Jun 22 20:14:15 1999 ++++ Encoder/global.h +@@ -97,8 +97,6 @@ extern char *plane_int_string, + *pixel_int_string; + + +-#define BIG_ENDIAN 1 +- + typedef struct jpeg_ls { + + int columns, /* The number of columns */ +@@ -318,7 +316,7 @@ extern int alpha; + extern int vLUT[3][2 * LUTMAX16]; + extern int lutmax; + extern int classmap[CONTEXTS1]; +-extern int *qdiv0, *qdiv, /* quantization table (division via look-up) */ ++extern int *qdiv0, *qdiv1, /* quantization table (division via look-up) */ + *qmul0, *qmul; /* dequantization table */ + + /* statistics tables */ +@@ -365,7 +363,7 @@ void init_stats(int); + + + +-#ifdef BIG_ENDIAN ++#ifdef NEVER_ASSUME_BIG_ENDIAN + # define ENDIAN8(x) (x) + # define ENDIAN16(x) (x) + #else |