openexr-devel
[Top][All Lists]
Advanced

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

RE: [Openexr-devel] modify datawindow in input EXR file header


From: Barnaby Robson
Subject: RE: [Openexr-devel] modify datawindow in input EXR file header
Date: Tue, 2 May 2006 17:21:07 -0700

No you can't do that.

The datawindow is not like a DOD as it is inherently tied
to how the data is laid out in the file.

If you change the datawindow you must write a new file.

I noticed that most packages (mental ray, photoshop, framecycler etc.)
handle the datawindow very badly so I decided to write all my frames out
in full (i.e. datawindow = displaywindow) and create a custom header
attribute that contains the DOD information.

Then I modified the shake reader and writer to handle that custom header 
attribute.

.. so actually I *can* change the DOD at will without writing a new file.

barnaby.


-----Original Message-----
From: address@hidden
[mailto:address@hidden
Behalf Of ZiZi Zhao
Sent: Tuesday, May 02, 2006 5:09 PM
To: address@hidden
Subject: [Openexr-devel] modify datawindow in input EXR file header


After I open an EXR image and detect its true datawindow, can I directly
modify the xmin, ymin, xmax, ymax values in the input EXR header? Do I
have to open and write a new EXR file with datawindow Cropped Image?

Is the input EXR image file opened in ImfOpenInputFile( filename ) with
"r+" or "r" only ?

If not, it seems that I have to open a new EXR image file and set new
datawindow values in header, but everything else stays the same as the
input EXR image. 

Thanks in advance,

zizi




_______________________________________________
Openexr-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/openexr-devel




reply via email to

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