libtiff/test
Even Rouault eaeca6274a
Add TIFFDeferStrileArrayWriting() and TIFFForceStrileArrayWriting()
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.
2019-05-25 11:37:34 +02:00
..
images add a test for fax2tiff tool 2019-03-22 10:06:01 +01:00
refs Add output check for tiff2ps 2019-04-03 14:55:29 +02:00
ascii_tag.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
check_tag.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
CMakeLists.txt Add TIFFDeferStrileArrayWriting() and TIFFForceStrileArrayWriting() 2019-05-25 11:37:34 +02:00
common.sh Add output check for tiff2ps 2019-04-03 14:55:29 +02:00
custom_dir.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
defer_strile_loading.c test/defer_strile_loading.c: fix warning with Visual C++ 2019-05-22 22:34:27 +02:00
defer_strile_writing.c Add TIFFDeferStrileArrayWriting() and TIFFForceStrileArrayWriting() 2019-05-25 11:37:34 +02:00
fax2tiff.sh add a test for fax2tiff tool 2019-03-22 10:06:01 +01:00
long_tag.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
Makefile.am Add TIFFDeferStrileArrayWriting() and TIFFForceStrileArrayWriting() 2019-05-25 11:37:34 +02:00
ppm2tiff_pbm.sh * test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh, 2009-08-29 20:45:09 +00:00
ppm2tiff_pgm.sh * test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh, 2009-08-29 20:45:09 +00:00
ppm2tiff_ppm.sh * test/{bmp2tiff_palette.sh, bmp2tiff_rgb.sh, gif2tiff.sh, 2009-08-29 20:45:09 +00:00
raw_decode.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
rewrite_tag.c Creation: use SHORT type when possible for StripByteCounts/TileByteCounts 2019-05-10 11:08:01 +02:00
short_tag.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
strip_rw.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
strip.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
test_arrays.c Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
test_arrays.h Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
tiff2bw-palette-1c-8b.sh * test/Makefile.am: Add some tests for tiff2bw. 2017-11-02 13:51:22 +00:00
tiff2bw-quad-lzw-compat.sh * test/Makefile.am: Add some tests for tiff2bw. 2017-11-02 13:51:22 +00:00
tiff2bw-rgb-3c-8b.sh * test/Makefile.am: Add some tests for tiff2bw. 2017-11-02 13:51:22 +00:00
tiff2pdf.sh Utilities which write to stdout needed more attention. 2009-08-24 15:48:00 +00:00
tiff2ps-EPS1.sh Add output check for tiff2ps 2019-04-03 14:55:29 +02:00
tiff2ps-PS1.sh Add output check for tiff2ps 2019-04-03 14:55:29 +02:00
tiff2ps-PS2.sh Add output check for tiff2ps 2019-04-03 14:55:29 +02:00
tiff2ps-PS3.sh Add output check for tiff2ps 2019-04-03 14:55:29 +02:00
tiff2rgba-logluv-3c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-minisblack-1c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-minisblack-1c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-minisblack-2c-8b-alpha.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-miniswhite-1c-1b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-palette-1c-1b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-palette-1c-4b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-palette-1c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-quad-tile.jpg.sh add new test scripts 2012-06-15 23:36:41 +00:00
tiff2rgba-rgb-3c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiff2rgba-rgb-3c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcp-g3-1d-fill.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-g3-1d.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-g3-2d-fill.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-g3-2d.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-g3.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-g4.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-logluv.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-lzw-compat.sh * test/tiffcp-lzw-compat.sh, test/images/quad-lzw-compat.tiff: new files 2017-07-11 09:20:31 +00:00
tiffcp-lzw-scanline-decode.sh Fix libtiff 4.0.8 regression when reading LZW-compressed strips with scanline API 2018-08-07 11:54:27 +02:00
tiffcp-split-join.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-split.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcp-thumbnail.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffcrop-doubleflip-logluv-3c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-minisblack-1c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-minisblack-1c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-minisblack-2c-8b-alpha.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-miniswhite-1c-1b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-palette-1c-1b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-palette-1c-4b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-palette-1c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-quad-tile.jpg.sh add new test scripts 2012-06-15 23:36:41 +00:00
tiffcrop-doubleflip-rgb-3c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-doubleflip-rgb-3c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extract-logluv-3c-16b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-minisblack-1c-8b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-minisblack-1c-16b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-minisblack-2c-8b-alpha.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-miniswhite-1c-1b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-palette-1c-1b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-palette-1c-4b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-palette-1c-8b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-quad-tile.jpg.sh add new test scripts 2012-06-15 23:36:41 +00:00
tiffcrop-extract-rgb-3c-8b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extract-rgb-3c-16b.sh Change tiffcrop parameters to -X 60 -Y 60 2009-11-02 18:30:21 +00:00
tiffcrop-extractz14-logluv-3c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-minisblack-1c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-minisblack-1c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-minisblack-2c-8b-alpha.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-miniswhite-1c-1b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-palette-1c-1b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-palette-1c-4b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-palette-1c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-quad-tile.jpg.sh add new test scripts 2012-06-15 23:36:41 +00:00
tiffcrop-extractz14-rgb-3c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-extractz14-rgb-3c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-logluv-3c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-minisblack-1c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-minisblack-1c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-minisblack-2c-8b-alpha.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-miniswhite-1c-1b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-palette-1c-1b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-palette-1c-4b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-palette-1c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-quad-tile.jpg.sh add new test scripts 2012-06-15 23:36:41 +00:00
tiffcrop-R90-rgb-3c-8b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffcrop-R90-rgb-3c-16b.sh Fix typo. 2009-08-24 02:55:05 +00:00
tiffdump.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
tiffinfo.sh tiffcrop.sh into a collection of many specific tests. Re-wrote 2009-08-23 22:58:25 +00:00
TiffSplitTest.cmake * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to 2015-06-25 02:27:58 +00:00
TiffTest.cmake * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to 2015-06-25 02:27:58 +00:00
tifftest.h Remove all $Id and $Headers comments with CVS versions 2017-11-30 18:02:46 +01:00
TiffTestCommon.cmake * .travis.yml, build/travis-ci: new files from 2017-06-08 20:46:10 +00:00