head 1.3; access; symbols pkgsrc-2026Q1:1.3.0.108 pkgsrc-2026Q1-base:1.3 pkgsrc-2025Q4:1.3.0.106 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.3.0.104 pkgsrc-2025Q3-base:1.3 pkgsrc-2025Q2:1.3.0.102 pkgsrc-2025Q2-base:1.3 pkgsrc-2025Q1:1.3.0.100 pkgsrc-2025Q1-base:1.3 pkgsrc-2024Q4:1.3.0.98 pkgsrc-2024Q4-base:1.3 pkgsrc-2024Q3:1.3.0.96 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.94 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.3.0.92 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.90 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.88 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.86 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.84 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.82 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.80 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.3.0.78 pkgsrc-2022Q2-base:1.3 pkgsrc-2022Q1:1.3.0.76 pkgsrc-2022Q1-base:1.3 pkgsrc-2021Q4:1.3.0.74 pkgsrc-2021Q4-base:1.3 pkgsrc-2021Q3:1.3.0.72 pkgsrc-2021Q3-base:1.3 pkgsrc-2021Q2:1.3.0.70 pkgsrc-2021Q2-base:1.3 pkgsrc-2021Q1:1.3.0.68 pkgsrc-2021Q1-base:1.3 pkgsrc-2020Q4:1.3.0.66 pkgsrc-2020Q4-base:1.3 pkgsrc-2020Q3:1.3.0.64 pkgsrc-2020Q3-base:1.3 pkgsrc-2020Q2:1.3.0.60 pkgsrc-2020Q2-base:1.3 pkgsrc-2020Q1:1.3.0.40 pkgsrc-2020Q1-base:1.3 pkgsrc-2019Q4:1.3.0.62 pkgsrc-2019Q4-base:1.3 pkgsrc-2019Q3:1.3.0.58 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.56 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.54 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.52 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.3.0.50 pkgsrc-2018Q3-base:1.3 pkgsrc-2018Q2:1.3.0.48 pkgsrc-2018Q2-base:1.3 pkgsrc-2018Q1:1.3.0.46 pkgsrc-2018Q1-base:1.3 pkgsrc-2017Q4:1.3.0.44 pkgsrc-2017Q4-base:1.3 pkgsrc-2017Q3:1.3.0.42 pkgsrc-2017Q3-base:1.3 pkgsrc-2017Q2:1.3.0.38 pkgsrc-2017Q2-base:1.3 pkgsrc-2017Q1:1.3.0.36 pkgsrc-2017Q1-base:1.3 pkgsrc-2016Q4:1.3.0.34 pkgsrc-2016Q4-base:1.3 pkgsrc-2016Q3:1.3.0.32 pkgsrc-2016Q3-base:1.3 pkgsrc-2016Q2:1.3.0.30 pkgsrc-2016Q2-base:1.3 pkgsrc-2016Q1:1.3.0.28 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.3.0.26 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.24 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.22 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.20 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.18 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.16 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.14 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.12 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.10 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.8 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.6 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.4 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.2 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.2.0.58 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.56 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.2.0.54 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.52 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.2.0.50 pkgsrc-2011Q3-base:1.2 pkgsrc-2011Q2:1.2.0.48 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.2.0.46 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.44 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.42 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.40 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.38 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.36 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.34 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.32 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.30 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.28 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.26 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.24 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.22 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.20 pkgsrc-2008Q1:1.2.0.18 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.16 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.14 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.12 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.10 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.8 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.6 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.4 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.2 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.1.1.1.0.16 pkgsrc-2005Q4-base:1.1.1.1 pkgsrc-2005Q3:1.1.1.1.0.14 pkgsrc-2005Q3-base:1.1.1.1 pkgsrc-2005Q2:1.1.1.1.0.12 pkgsrc-2005Q2-base:1.1.1.1 pkgsrc-2005Q1:1.1.1.1.0.10 pkgsrc-2005Q1-base:1.1.1.1 pkgsrc-2004Q4:1.1.1.1.0.8 pkgsrc-2004Q4-base:1.1.1.1 pkgsrc-2004Q3:1.1.1.1.0.6 pkgsrc-2004Q3-base:1.1.1.1 pkgsrc-2004Q2:1.1.1.1.0.4 pkgsrc-2004Q2-base:1.1.1.1 pkgsrc-2004Q1:1.1.1.1.0.2 pkgsrc-2004Q1-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.3 date 2012.12.20.21.52.28; author joerg; state Exp; branches; next 1.2; 1.2 date 2005.12.30.23.23.54; author joerg; state Exp; branches; next 1.1; 1.1 date 2003.12.21.21.29.08; author wiz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2003.12.21.21.29.08; author wiz; state Exp; branches; next ; desc @@ 1.3 log @Consistently use void. @ text @$NetBSD: patch-ad,v 1.2 2005/12/30 23:23:54 joerg Exp $ --- Encoder/global.h.orig 1999-06-22 18:14:15.000000000 +0000 +++ 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 */ @@@@ -300,7 +298,7 @@@@ typedef unsigned short pixel; /****** Global variables prototypes */ -extern FILE *in, *out, *msgfile; +extern FILE *in, *out; extern FILE *c_in[MAX_COMPONENTS]; extern FILE *c_out[MAX_COMPONENTS]; extern int inhandle; @@@@ -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 */ @@@@ -355,7 +353,7 @@@@ void buffinit(FILE *); /* melcode.c */ void init_process_run(int); void close_process_run(); -int process_run(int,int,int); +void process_run(int,int,int); /* initialize.c */ @@@@ -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 @ 1.2 log @stdout can not be used to initialise a global variable.. Move it from global scope to static scope in encoder.c / decoder.c and initialise it from main. Fix a nice side-effect from a macro, which is not a macro in DragonFly: if feof(tablefile) does not parse correctly. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.1.1.1 2003/12/21 21:29:08 wiz Exp $ d3 1 a3 1 --- Encoder/global.h.orig Tue Jun 22 20:14:15 1999 d32 9 @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d14 9 @ 1.1.1.1 log @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. @ text @@