OLD | NEW |
1 /* $Id: tif_pixarlog.c,v 1.38 2012-06-21 01:01:53 fwarmerdam Exp $ */ | 1 /* $Id: tif_pixarlog.c,v 1.38 2012-06-21 01:01:53 fwarmerdam Exp $ */ |
2 | 2 |
3 /* | 3 /* |
4 * Copyright (c) 1996-1997 Sam Leffler | 4 * Copyright (c) 1996-1997 Sam Leffler |
5 * Copyright (c) 1996 Pixar | 5 * Copyright (c) 1996 Pixar |
6 * | 6 * |
7 * Permission to use, copy, modify, distribute, and sell this software and | 7 * Permission to use, copy, modify, distribute, and sell this software and |
8 * its documentation for any purpose is hereby granted without fee, provided | 8 * its documentation for any purpose is hereby granted without fee, provided |
9 * that (i) the above copyright notices and this permission notice appear in | 9 * that (i) the above copyright notices and this permission notice appear in |
10 * all copies of the software and related documentation, and (ii) the names of | 10 * all copies of the software and related documentation, and (ii) the names of |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 * The codec also handle byte swapping the encoded values as necessary | 82 * The codec also handle byte swapping the encoded values as necessary |
83 * since the library does not have the information necessary | 83 * since the library does not have the information necessary |
84 * to know the bit depth of the raw unencoded buffer. | 84 * to know the bit depth of the raw unencoded buffer. |
85 * | 85 * |
86 * NOTE: This decoder does not appear to update tif_rawcp, and tif_rawcc. | 86 * NOTE: This decoder does not appear to update tif_rawcp, and tif_rawcc. |
87 * This can cause problems with the implementation of CHUNKY_STRIP_READ_SUPPORT | 87 * This can cause problems with the implementation of CHUNKY_STRIP_READ_SUPPORT |
88 * as noted in http://trac.osgeo.org/gdal/ticket/3894. FrankW - Jan'11 | 88 * as noted in http://trac.osgeo.org/gdal/ticket/3894. FrankW - Jan'11 |
89 */ | 89 */ |
90 | 90 |
91 #include "tif_predict.h" | 91 #include "tif_predict.h" |
92 #include "../../../../../third_party/zlib_v128/zlib.h" | 92 #include "../zlib_v128/zlib.h" |
93 | 93 |
94 #include <stdio.h> | 94 #include <stdio.h> |
95 #include <stdlib.h> | 95 #include <stdlib.h> |
96 #include <math.h> | 96 #include <math.h> |
97 | 97 |
98 /* Tables for converting to/from 11 bit coded values */ | 98 /* Tables for converting to/from 11 bit coded values */ |
99 | 99 |
100 #define TSIZE 2048 /* decode table size (11-bit tokens) */ | 100 #define TSIZE 2048 /* decode table size (11-bit tokens) */ |
101 #define TSIZEP1 2049 /* Plus one for slop */ | 101 #define TSIZEP1 2049 /* Plus one for slop */ |
102 #define ONE 1250 /* token value of 1.0 exactly */ | 102 #define ONE 1250 /* token value of 1.0 exactly */ |
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1417 | 1417 |
1418 /* vim: set ts=8 sts=8 sw=8 noet: */ | 1418 /* vim: set ts=8 sts=8 sw=8 noet: */ |
1419 /* | 1419 /* |
1420 * Local Variables: | 1420 * Local Variables: |
1421 * mode: c | 1421 * mode: c |
1422 * c-basic-offset: 8 | 1422 * c-basic-offset: 8 |
1423 * fill-column: 78 | 1423 * fill-column: 78 |
1424 * End: | 1424 * End: |
1425 */ | 1425 */ |
1426 | 1426 |
OLD | NEW |