openexr-devel
[Top][All Lists]
Advanced

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

[Openexr-devel] Writing channels seperately


From: Brendan Bolles
Subject: [Openexr-devel] Writing channels seperately
Date: Fri, 22 Jun 2007 05:50:05 -0700

Is there a way to write a channel or two, load other channels in memory, and then write other channels? It seems like all the channels have to be written in one sweep, while reading doesn't have this problem.

So currently the samples go like this:


    OutputFile file (fileName, header);
    FrameBuffer frameBuffer;

    frameBuffer.insert ("G", ...);
    frameBuffer.insert ("Z", ...);

    file.setFrameBuffer (frameBuffer);
    file.writePixels (height);


Is it possible to do something like this?:

    OutputFile file (fileName, header);

    {
      FrameBuffer frameBuffer;
      frameBuffer.insert ("G", ...);
      file.setFrameBuffer (frameBuffer);
      file.writePixels (height);
    }

    // load Z channel

    {
      FrameBuffer frameBuffer;
      frameBuffer.insert ("Z", ...);
      file.setFrameBuffer (frameBuffer);
      file.writePixels (height);
    }





reply via email to

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