summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* make TIFF_SSIZE_T the same bitwidth as TIFF_SIZE_TThomas Bernard2019-05-311-1/+1
| | | | | it was previously the same bitwidth as unsigned char * Pointers can be larger than size_t.
* Add test to check that libtiff types have the correct sizeThomas Bernard2019-05-313-2/+67
| | | | | | | | | | | | | | | | in configure/CMakeList.txt : - TIFF_INT8_T/TIFF_UINT8_T is signed/unsigned char sizeof(char)==1 in C standard - TIFF_INT16_T/TIFF_UINT16_T is signed/unsigned short sizeof(short)>=2 in C standard - TIFF_INT32_T/TIFF_UINT32_T is defined so its sizeof() is 4 - TIFF_INT64_T/TIFF_UINT64_T is defined so its sizeof() is 8 - TIFF_SIZE_T is defined so it has same sizeof() than size_t - TIFF_SSIZE_T is defined so it has same sizeof() than unsigned char *
* Merge branch 'defer_strile_writing' into 'master'Even Rouault2019-05-293-0/+245
|\ | | | | | | | | Add TIFFDeferStrileArrayWriting() and TIFFForceStrileArrayWriting() See merge request libtiff/libtiff!82
| * Add TIFFDeferStrileArrayWriting() and TIFFForceStrileArrayWriting()Even Rouault2019-05-253-0/+245
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Those advanced writing functions must be used in a particular sequence to make their intended effect. Their aim is to control when/where the [Strip/Tile][Offsets/ByteCounts] arrays are written into the file. The purpose of this is to generate 'cloud-optimized geotiff' files where the first KB of the file only contain the IFD entries without the potentially large strile arrays. Those are written afterwards. The typical sequence of calls is: TIFFOpen() [ TIFFCreateDirectory(tif) ] Set fields with calls to TIFFSetField(tif, ...) TIFFDeferStrileArrayWriting(tif) TIFFWriteCheck(tif, ...) TIFFWriteDirectory(tif) ... potentially create other directories and come back to the above directory TIFFForceStrileArrayWriting(tif): emit the arrays at the end of file See test/defer_strile_writing.c for a practical example.
* | Add TIFFReadFromUserBuffer()Even Rouault2019-05-231-10/+64
|/ | | | | | | This function replaces the use of TIFFReadEncodedStrip()/TIFFReadEncodedTile() when the user can provide the buffer for the input data, for example when he wants to avoid libtiff to read the strile offset/count values from the [Strip|Tile][Offsets/ByteCounts] array.
* test/defer_strile_loading.c: fix warning with Visual C++Even Rouault2019-05-221-1/+2
|
* Merge branch 'ondemand_strile_offbytecount_loading' into 'master'Even Rouault2019-05-213-1/+262
|\ | | | | | | | | Make defer strile offset/bytecount loading available at runtime See merge request libtiff/libtiff!79
| * Make defer strile offset/bytecount loading available at runtimeEven Rouault2019-05-103-1/+262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... and add per-strile offset/bytecount loading capabilities. Part of this commit makes the behaviour that was previously met when libtiff was compiled with -DDEFER_STRILE_LOAD available for default builds when specifying the new 'D' (Deferred) TIFFOpen() flag. In that mode, the [Tile/Strip][ByteCounts/Offsets] arrays are only loaded when first accessed. This can speed-up the opening of files stored on the network when just metadata retrieval is needed. This mode has been used for years by the GDAL library when compiled with its embeded libtiff copy. To avoid potential out-of-tree code (typically codecs) that would use the td_stripbytecount and td_stripoffset array inconditionnaly assuming they have been loaded, those have been suffixed with _p (for protected). The use of the new functions mentionned below is then recommended. Another addition of this commit is the capability of loading only the values of the offset/bytecount of the strile of interest instead of the whole array. This is enabled with the new 'O' (Ondemand) flag of TIFFOpen() (which implies 'D'). That behaviour has also been used by GDAL, which hacked into the td_stripoffset/td_stripbytecount arrays directly. The new code added in the _TIFFFetchStrileValue() and _TIFFPartialReadStripArray() internal functions is mostly a port of what was in GDAL GTiff driver previously. Related to that, the public TIFFGetStrileOffset[WithErr]() and TIFFGetStrileByteCount[WithErr]() functions have been added to API. They are of particular interest when using sparse files (with offset == bytecount == 0) and you want to detect if a strile is present or not without decompressing the data, or updating an existing sparse file. They will also be used to enable a future enhancement where client code can entirely skip bytecount loading in some situtations A new test/defer_strile_loading.c test has been added to test the above capabilities.
* | Creation: use SHORT type when possible for StripByteCounts/TileByteCountsEven Rouault2019-05-101-13/+26
|/ | | | This follows the same logic as previous commit.
* Merge branch 'bug2799' into 'master'Even Rouault2019-05-085-0/+23
|\ | | | | | | | | fix fax2tiff See merge request libtiff/libtiff!55
| * add a test for fax2tiff toolThomas Bernard2019-03-225-0/+23
| |
* | Add output check for tiff2psThomas Bernard2019-04-0310-4/+457
|/ | | | note : the reference files have been generated in master branch
* Fix libtiff 4.0.8 regression when reading LZW-compressed strips with ↵Even Rouault2018-08-075-2/+14
| | | | | | scanline API Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2800
* Remove remaining .cvsignore filesEven Rouault2017-12-011-12/+0
|
* Remove autoconf/automake generated files, and add them to .gitignoreEven Rouault2017-12-011-1988/+0
|
* Regenerate autoconf filesEven Rouault2017-11-301-0/+1
|
* Remove all $Id and $Headers comments with CVS versionsEven Rouault2017-11-3012-24/+0
|
* * test/Makefile.am: Add some tests for tiff2bw.Bob Friesenhahn2017-11-025-4/+98
|
* fax2tiff: Pass the FAX_Client_Data struct as client dataBob Friesenhahn2017-10-291-1/+0
|
* * test/Makefile.am: add missing reference to images/quad-lzw-compat.tiffEven Rouault2017-08-282-2/+4
| | | | to fix "make distcheck". Patch by Roger Leigh
* * test/tiffcp-lzw-compat.sh, test/images/quad-lzw-compat.tiff: new filesEven Rouault2017-07-116-5/+24
| | | | | to test old-style LZW decompression * test/common.sh, Makefile.am, CMakeList.txt: updated with above
* * refresh autoconf/make stuff with what is on Ubuntu 16.04 (minor changes)Even Rouault2017-07-111-0/+1
|
* * .travis.yml, build/travis-ci: new files fromEven Rouault2017-06-082-12/+22
| | | | | | | | | | | | | | | | | | | | 0001-ci-Add-Travis-support-for-Linux-builds-with-Autoconf.patch by Roger Leigh (sent to mailing list on 2017-06-08) This patch adds support for the Travis-CI service. * .appveyor.yml: new file from 0002-ci-Add-AppVeyor-support.patch by Roger Leigh (sent to mailing list on 2017-06-08) This patch adds a .appveyor.yml file to the top-level. This allows one to opt in to having a branch built on Windows with Cygwin, MinGW and MSVC automatically when a branch is pushed to GitHub, GitLab, BitBucket or any other supported git hosting service. * CMakeLists.txt, test/CMakeLists.txt, test/TiffTestCommon.cmake: apply patch 0001-cmake-Improve-Cygwin-and-MingGW-test-support.patch from Roger Leigh (sent to mailing list on 2017-06-08) This patch makes the CMake build system support running the tests with MinGW or Cygwin.
* * tools/Makefile.am: The libtiff tools bmp2tiff, gif2tiff,Bob Friesenhahn2016-06-059-81/+6
| | | | | | | | | ras2tiff, sgi2tiff, sgisv, and ycbcr are completely removed from the distribution. The libtiff tools rgb2ycbcr and thumbnail are only built in the build tree for testing. Old files are put in new 'archive' subdirectory of the source repository, but not in distribution archives. These changes are made in order to lessen the maintenance burden.
* * html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn forBob Friesenhahn2016-04-081-9/+22
| | | | purposes of security issue reporting.
* * libtiff/*.c: fix clang -Wshorten-64-to-32 warningsEven Rouault2015-11-181-21/+9
|
* * Makefile.am (distcheck-hook), configure.ac: Applied patches byBob Friesenhahn2015-09-011-0/+1
| | | | | | Roger Leigh (via tiff mailing list on 2015-09-01) to fix issue with BSD make and to make use of cmake in 'distcheck' target conditional on if cmake is available.
* * CMakeLists.txt, libtiff/test/Makefile.am: Applied patches byBob Friesenhahn2015-09-012-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Roger Leigh (via tiff mailing list on 2015-08-31. CMake reads all version information directly from configure.ac to avoid duplication of values. This basically greps over the file for the LIBTIFF_* variables, then translates them to the form needed for cmake. This includes the release version and libtool shared library version information. Make shared/static library building configurable. Currently it always builds shared libraries, with static libs having a _static suffix (copying zlib, but it means it's got a non-standard name). CMake has a -DBUILD_SHARED_LIBS=ON|OFF option to select one or the other, which is now used instead. There's now a single "tiff" target to build either shared or static as required, and all the tests and tools are linked with this. Note: the Windows tests fail when linked with a static libtiff (says: libtiff.dll not found). Not really a regression since this was not tested up to this point, and it's likely the unit tests haven't (ever?) been run on Windows with a static libtiff, so there's some additional portability issue here to address. Works fine on UNIX systems, and fine on Windows with the default to build a DLL. Add a missing file which wasn't being distributed, causing unit tests to fail. Note that "find . -name '*.cmake'" lists all the CMake files which need distributing in addition to all the CMakeLists.txt files (which now are distributed).
* Additional CMake-related files were missing from the distribution tarball.v4.0.5Release-v4-0-5Bob Friesenhahn2015-08-312-2/+6
|
* All the CMakeLists.txt files were missing from the distribution tarball.Bob Friesenhahn2015-08-302-0/+2
|
* Use consistent line terminations.Bob Friesenhahn2015-08-281-12/+12
|
* rewrite_tag test uses main() with no argument list.Bob Friesenhahn2015-08-231-2/+2
|
* Fix problem with 'boolean' definition from IJG JPEG 9.Bob Friesenhahn2015-08-161-4/+28
|
* * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted toBob Friesenhahn2015-06-255-4/+575
| | | | | | | libtiff mailing list on Mon, 22 Jun 2015 21:21:01 +0100. Several corrections to ensure that the autotools build still works were added by me. I have not yet tested the build using 'cmake' or MSVC with 'nmake'.
* * test/Makefile.am: tiff2rgba-quad-tile.jpg.sh depends on the JPEGBob Friesenhahn2015-06-212-5/+56
| | | | library so only execute if JPEG is available.
* * configure.ac: Add a HAVE_FOO Automake conditional for eachBob Friesenhahn2015-06-212-8/+19
| | | | | | | | add-on library. * test/Makefile.am (JPEG_DEPENDENT_CHECK_PROG): raw_decode requires JPEG support to compile. Use Automake conditional to only include it when JPEG support is available.
* * test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32Bob Friesenhahn2015-06-201-2/+8
| | | | and boolean in MinGW build due to including jpeglib.h.
* * test/rewrite_tag.c (main): Fix problem with location of variableBob Friesenhahn2015-06-201-2/+3
| | | | declaration.
* * tools/tiffcrop.c (ROTATE_ANY): Fix Coverity 1294542 "LogicalBob Friesenhahn2015-05-281-1/+0
| | | | vs. bitwise operator".
* * automake: updated to 1.15Even Rouault2015-01-261-9/+22
| | | | * libtool: updated to 2.4.5
* * Update bundled libtool to 2.4.4 release.Bob Friesenhahn2014-12-291-54/+92
|
* Update the valgrind memcheck recipe for the test suite.Bob Friesenhahn2014-12-062-4/+30
|
* * tools/tiffdump.c: Fix double-free bug.Bob Friesenhahn2014-12-061-92/+54
|
* * automake: updated to 1.14.1Even Rouault2014-11-201-54/+92
| | | | | * libtool: updated to 2.4.3 * HOWTO-RELEASE: small update about autotools building order
* Check return status from TIFFWriteScanline() correctly in test programs.Bob Friesenhahn2013-12-176-12/+12
|
* Fix raw_decode test to pass with more versions of libjpegTom Lane2012-12-201-29/+49
|
* * automake: Update Automake to 1.12.5 release.Bob Friesenhahn2012-11-181-1/+1
|
* * Makefile.am: Update to Automake 1.12.4Bob Friesenhahn2012-09-202-5/+5
|
* * Makefile.in: Update to Automake 1.12.3Bob Friesenhahn2012-08-191-300/+854
|
* * libtiff{tiff.h, tif_print.c, tif_dirinfo.c, tif_dirread.c}: AddBob Friesenhahn2012-08-191-62/+60
| | | | | | | | | | some TIFF/FX support in libtiff. Add the tag definitions to tiff.h. Add the related TIFF field definitions to tif_dirinfo.c, and also fixes an error in a comment. Adds the photometric values to tif_print.c, and fixes a bug. These changes are by Steve Underwood. * libtiff/tif_write.c: Fix bug rewriting image tiles in a