Page MenuHome

Support half float file format storage for Multilayer EXR

Authored by Sergey Sharybin (sergey) on Jun 14 2015, 11:39 AM.



Quite straightforward implementation -- all the conversion magic is
happening in IMB_exr_write_channels() and remained changes are only
needed to pass information whether channels is to be converted to
half float or not.

Regular file output will use full-float for Z pass, which matches
behavior of the single layer EXR files. But when saving happens
with File Output node then all the passes are respecting half float
settings because it's not possible to distinguish whether we're
saving Z pass or not.

Diff Detail

rB Blender

Event Timeline

Sergey Sharybin (sergey) retitled this revision from to Support half float file format storage for Multilayer EXR.
Sergey Sharybin (sergey) updated this object.
Campbell Barton (campbellbarton) edited edge metadata.

Seems fine


slight preference for braces here

const bool use_half_float = (imf->depth == R_IMF_CHAN_DEPTH_16);
This revision is now accepted and ready to land.Jun 19 2015, 11:53 AM
Sergey Sharybin (sergey) edited edge metadata.

Update for Campbell's feedback

This revision was automatically updated to reflect the committed changes.