Commit Graph

2286 Commits

Author SHA1 Message Date
Bob Friesenhahn
7e4803b57f Need to include string.h for strncmp() 2008-03-28 01:10:39 +00:00
Frank Warmerdam
e80d604df0 disable tag size sanity checks (GDAL #2005) 2008-03-14 05:58:40 +00:00
Joris Van Damme
809dbe933b handling for PageNumber tag values different from 2 2008-02-09 09:51:46 +00:00
Frank Warmerdam
e8ca21280f added missing swab functions needed for tiffdump 2008-02-04 05:41:00 +00:00
Frank Warmerdam
d3d2ef5638 avoid attempting jpeg subsampling fixup if stripbytecount[0] is zero 2008-02-01 21:50:24 +00:00
Frank Warmerdam
f2f169eb0e add extra casts in TIFFRewriteField to avoid warnings 2008-01-07 15:50:02 +00:00
Frank Warmerdam
e9cb45c2ee fix 64bit type issues 2008-01-07 15:47:54 +00:00
Frank Warmerdam
be56f42493 ifdef out unused functions 2008-01-01 16:26:13 +00:00
Frank Warmerdam
2e8e250054 Fix clean rules to be more precise, avoiding warnings from "del"
when running them after a full build.
2008-01-01 15:53:10 +00:00
Frank Warmerdam
c080e30701 info on various fixes from Edward Lam 2008-01-01 15:49:43 +00:00
Frank Warmerdam
41feaacb78 Fix 64-bit warnings when compiling under MSVC 2005 (x64). 2008-01-01 15:49:00 +00:00
Frank Warmerdam
bee6b8237d Changes to reflect the fact that TIFFFieldWithTag() and TIFFFieldWithName()
now return TIFFField pointers instead of TIFFFieldInfo pointers.
2008-01-01 15:46:28 +00:00
Frank Warmerdam
3e75fc789f Added ssize_t typedef on Windows since it doesn't exist. This makes
it compile again on Windows.
2008-01-01 15:45:14 +00:00
Frank Warmerdam
e47164d103 Fix 64-bit warnings when compiling under MSVC 2005 (x64).
Fixed bad calls to TIFFErrorExt()
2008-01-01 15:41:49 +00:00
Frank Warmerdam
9c57ea610d Fix 64-bit warnings when compiling under MSVC 2005 (x64). 2008-01-01 15:41:22 +00:00
Frank Warmerdam
8b57e5cd14 modify CreateFileMapping() for win64 2008-01-01 15:35:54 +00:00
Frank Warmerdam
bdc4949566 support WIN64 builds 2008-01-01 15:27:41 +00:00
Frank Warmerdam
19fb2c9918 added rewrite_tag test 2008-01-01 13:57:21 +00:00
Frank Warmerdam
586a6869b7 New 2008-01-01 13:55:23 +00:00
Frank Warmerdam
2b64a8aac4 added TIFFRewriteField() 2007-12-31 21:55:07 +00:00
Frank Warmerdam
d0de6a396d Keep track of TIFF_DIRTYSTRIP separately from TIFF_DIRTYDIRECT to indicate
that the strip offset/size values are dirty but nothing else about the
directory is dirty.  In flush handle "just stripmaps dirty" as a special
case that just rewrites these values without otherwise modifying the
directory on disk using TIFFRewriteField().

We also modify logic so that in update mode the directory is not
marked dirty on read, but only when something is changed.  This
means we need to keep track of updates to the stripmap stuff in
TIFFAppendToStrip().
2007-12-31 21:52:16 +00:00
Frank Warmerdam
a7e32673b8 improve switching between encode/decode (gdal bug #2033) 2007-12-10 19:58:41 +00:00
Frank Warmerdam
6311aae796 fix typo in last fix 2007-11-23 21:14:43 +00:00
Frank Warmerdam
e427d6178d Fixed bug reference. 2007-11-23 20:55:35 +00:00
Frank Warmerdam
4dcbede5b0 introduce TIFF_BUF4WRITE flag to mark rawcc buffer as for writing 2007-11-23 20:49:42 +00:00
Andrey Kiselev
d7c1603a27 Better OpenVMS support. Patches from Alexey Chupahin. 2007-11-23 10:01:34 +00:00
Frank Warmerdam
d14dae9c0c avoid corruption risk with write-in-same-location logic 2007-11-02 19:57:28 +00:00
Frank Warmerdam
e770990619 avoid extra tile info write in TIFFWriteDirectory() 2007-11-02 19:53:04 +00:00
Frank Warmerdam
508bb71bc3 add missing part of ChangeLog message for last change 2007-11-02 19:45:38 +00:00
Frank Warmerdam
4710fe4c8b Split pfunc into encode and decode versions to avoid mixing things
up in read/write applications.
http://trac.osgeo.org/gdal/ticket/1948
Also make a temporary working buffer to modify in PredictorEncodeTile.
http://trac.osgeo.org/gdal/ticket/1965
2007-11-02 19:43:55 +00:00
Frank Warmerdam
f3c11d49d7 Improvements so that predictor based encoding and decoding works in
read-write update mode properly.  http://trac.osgeo.org/gdal/ticket/1948
2007-11-02 00:25:21 +00:00
Joris Van Damme
1a5dfd2205 tif_dirread.c: Fixed problem with bogus file triggering assert in ChopUpSingleUncompressedStrip 2007-10-24 10:19:42 +00:00
Joris Van Damme
7497b6e5f3 tif_jpeg.c: resolved buffer incrementation bug 2007-10-22 18:39:53 +00:00
Frank Warmerdam
fe89e891bf update people responsible info for web site 2007-10-11 15:35:23 +00:00
Frank Warmerdam
8e40470908 Fix problem with alpha setting 2007-10-05 16:30:18 +00:00
Joris Van Damme
8753fa323f changed some more incorrect %lud printf flags to %lu 2007-10-01 12:43:48 +00:00
Joris Van Damme
d8144e074c small correction to ChangeLog text entry 2007-09-29 10:37:40 +00:00
Joris Van Damme
00ddda303a tif_dirread.c: Fixed bad behaviour of strip chopping on uncompressed subsampled images. 2007-09-29 10:34:37 +00:00
Joris Van Damme
cce392c46f tif_dirread.c: Logical cast working around compiler warning; tif_read.c: Correction of some error flags and parameter lists 2007-09-28 14:49:14 +00:00
Joris Van Damme
4df2d8f4f7 tif_dirread.c: made calculation of td_maxsamplevalue more robust; tif_open.c: moved early exit in case of 'h' flag, solving some unwanted bugs later on 2007-09-27 17:38:57 +00:00
Joris Van Damme
fca5e791dd tif_dirinfo.c: fixed (MSVC) compiler reports about inconsistent use of const in tiffFields and exifFields definition 2007-09-24 06:40:14 +00:00
Andrey Kiselev
86a7057d06 Make all module name constants static. 2007-09-22 15:08:27 +00:00
Frank Warmerdam
37588b8480 Correct comment about tag counting in TIFFWriteDirectoryTagLongLong8Array. 2007-09-21 14:21:03 +00:00
Frank Warmerdam
86d1335d52 always write strip/tile offsets as long8 in bigtiff 2007-09-20 19:57:58 +00:00
Frank Warmerdam
08f2d19fab more improvements to error reporting in TIFFFetchDirectory 2007-09-20 19:20:54 +00:00
Frank Warmerdam
9f6ea3bef9 Fix name TIFFFetchDirectory uses in error message (was ...Classic). 2007-09-20 16:34:23 +00:00
Bob Friesenhahn
2737e0e77b * test/images: Added a small collection of test images for use by
test programs and scripts.
* test/tiffinfo.sh: A trivial example test script.
* test/common.sh: Added small script for setting the environment
used by script-based tests.
2007-09-19 21:51:00 +00:00
Frank Warmerdam
8b2b03ae11 Write the tif_nextdiroff value instead of a fixed zero when writing
directory contents to preserve the ability to rewrite directories in place,
even in the middle of a directory chain.
2007-08-24 20:49:38 +00:00
Frank Warmerdam
a6bea11162 _TIFFMergeFields() now only merges in field definitions that are missing.
Existing definitions are silently ignored.  This avoids warnings with
multi-directory files.
2007-08-24 20:47:49 +00:00
Frank Warmerdam
4baacb150b Add runtime check in TIFFFetchNormalTag() 2007-08-24 20:45:59 +00:00