Using FILEINFO to Speed up the Load

You can speed up most load operations by passing a FILEINFO structure to the load function.

Whenever you pass a FILEINFO structure to a load function, you MUST set FILEINFO.uStructSize to sizeof(FILEINFO).

The structure can contain:

The complete information Obtain the complete information by calling L_FileInfo.
Only the file format FILEINFO.uStructSize = sizeof(FILEINFO)
FILEINFO.Format = FILE_XXX value describing the source file.
Only the file name FILEINFO.uStructSize = sizeof(FILEINFO)
FILEINFO.Name = name describing the source file.

This last mode is helpful when you are loading a file from a stream rather than a file, but you know the type of file you have. This is particularly useful if the source file format does not have an easily identifiable file signature. In this case, LEADTOOLS will use the file extension to determine the most likely source file format.

NOTE: Another way to speed up the load is to use the filter data mechanism described in the Using Filter Data to Speed up Loading Large Files topic.

Help Version 20.0.2019.9.22
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help