Hi!

I've added support for reading portable float maps (PFM) files to the PNM 
plugin a long while ago and finally I'd like to get the PFM file writing doen 
as well. While the code to write the file itself is pretty much trivial, I am 
stuck with one detail:

So far the plugin converts all input data to 8 bit per channel before writing. 
This is OK for portable pixmaps, but when I add support for writing PFMs the 
plugin needs to decide whether the output should be floating point or 8 bits 
per channel. What would be the preferred way to do that? Ideally the 
application should have some level of control over that as well, I believe. It 
also might break existing programs if done improperly and the user suddenly 
gets a different file format from the same application code on his end.

Do you have any ideas/pointers?

Regards
Gregor
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to