2011/2/14 alberto@mattea.info:
Hi Stefan, thanks for your answer. I've checked the nvidia texture tools but, sadly, I think it's impossible to use them in wine: while they have c bindings, those bindings lack the essential function nvttSetOutputOptionsOutputHandler(NvttOutputOptions * outputOptions, nvttOutputHandler outputHandler, nvttImageHandler imageHandler) (commented out in the headers), so the output can only be written to a file. What about going the mesa way, where the drivers aren't linked with any s3tc library, but load it at runtime if it is present? Any idea is welcome.
An idea that was proposed before was to delegate the conversion (and the patents burden) to the OpenGL drivers, something like using glCompressedTexImage2D() / glGetCompressedTexImage(). Not sure whether there are hidden issues with that approach (except, well, requiring an OpenGL driver with compressed textures support), but at a first glance it doesn't look as something particularly hard to do.