openexr-devel
[Top][All Lists]
Advanced

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

[Openexr-devel] Deep Frame Buffer


From: Brendan Bolles
Subject: [Openexr-devel] Deep Frame Buffer
Date: Mon, 22 Jul 2013 21:00:01 -0700

Here's the description of a deep frame buffer from ImfDeepFrameBuffer.h:

// Memory layout:  The address of sample i in pixel (x, y) is
//
//  base + (xp / xSampling) * xStride + (yp / ySampling) * yStride
//       + i * sampleStride


But this is wrong, isn't it?


Shouldn't it be something like:

The address of a pointer to an array of samples for pixel (x, y) is 

**samples = base + (xp / xSampling) * xStride + (yp / ySampling) * yStride

And then a particular sample i is at:

*samples + i * sampleStride


Brendan




reply via email to

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