TsmImportFormat tsmFindImportFormat ( char const *filename )

Works out a import format from the filename

Documentation

Works out a import format from the filename.

This function will try to work out the format of the specified import data file name. This is done based purely upon the extension of the filename. If no filename extension is provided, or if the extension is not recognised, then a result of TSM_IMPORT_UNSUPPORTED will be returned. The following extensions are recognised:

Filename extensions are matched in a case insensitive manner, i.e. foo.raw, foo.RAW, and foo.Raw all mean the same image format.

Returns:
The format of the file, returned as a TsmImportFormat enum.
Parameters:
The - filename for the input image to be analysed
Author:
Martin Reddy
Version:
6 February 1998
See Also:
tsmParseCreateParams, tsmCreateAllTiles, TsmImportFormat


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

Back to tsmApi Home Page