openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Openexr-devel] Help implementing Imf::Ostream


From: Koraxen
Subject: [Openexr-devel] Help implementing Imf::Ostream
Date: Thu, 11 Feb 2010 12:39:56 -0800

Hi guys,

I am trying to implement Imf::Ostream. Unfortunately, the EXR manual only shows how to implement Imf::Istream. That being said, please consider this pseudocode:

const char filename[] = "file.exr"

// Case 1:
Imf::OutputFile( filename )

// Case 2:
MyOStream ostr( mySTDostream , filename )
Imf::OutputFile( ostr )

In both cases, files of almost equal sizes are successfully written.

All EXR viewers can open a file generated by #1.
All EXR viewers crash when opening a file generated by #2.

Please note that I am constructing MyOStream with an std::ofstream, instead of std::ostream. Does anyone have an example of a working implementation of Imf::Ostream?

Thanks for reading :)
- Kora

reply via email to

[Prev in Thread] Current Thread [Next in Thread]