I have plugin for reading raw files that contain elevation maps (raw or dem/srtm files) at http://outerra.com/xnview/
Almost works now, but I have one problem - since these are raw files without a header, the plugin displays a dialog window first, allowing user to specify the dimensions, bit depth, various flags about the file (integer/floating point data, signedness, endianness) and rendering options (vertical flip, grayscale, clip ranges). The plugin can also autodetect the image dimensions according to the specified types, using correlation test.
However, herein lies the problem - XnView attempts to prefetch the next image, and if that happens to be a .raw file too, another dialog window is displayed as soon as the first file loads.
I wonder, would it be possible to for example to add something like GFP_NOPREFETCH flag to the support
member of gfpGetPluginInfo
function, that would turn off the prefetching for files with given extension? Or maybe there is some other solution ..