summaryrefslogtreecommitdiff
path: root/graphics/jpeg_ls/patches/patch-ad
blob: b8e7ec2cfcd27a1b783fb1b4b713579eb96ae2a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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