int tsmSetPyramidChecksum ( Pyramid *pyramid, tsmChecksumArray *array, tspSymbol imgFormat )

Insert a checksum array into a pyramid tspec

Documentation

Insert a checksum array into a pyramid tspec.

This function will take a tsmChecksumArray (e.g. as calculated using the tsmCalcChecksum function) and will copy the values from this array into the appropriate array in the specified pyramid structure.

Currently there are two checksum arrays for a single pyramid: one for the lrbt tiles, the other for the jpeg tiles. You specify which array you want to write to by supplying a tspSymbol parameter indicating the image format.

The function will be smart and check to see if the currently allocated checksum array in the pyramid is the right size for the new array (it really should be, but ya never know!). If it's not the right size then it will be free'd and malloc'd to the right size.

Returns:
TRUE if all went well, FALSE if an error occurred
Parameters:
pyramid - the pyramid structure to copy the array into
array - the checksum array to be copied into the pyramid
imgFormat - tspLrbtRaster or tspJPEGCompressed
Author:
Martin Reddy
Version:
30 October 1997
See Also:
tsmCalcChecksum


TSMAPI_RELEASE 2.1 - Release Date: 2001/01/10 19:01:12

Back to tsmApi Home Page