int tsmSetPyramidChecksum ( Pyramid *pyramid, tsmChecksumArray *array, tspSymbol imgFormat ) Insert a checksum array into a pyramid tspec
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.