openexr-devel
[Top][All Lists]
Advanced

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

Re: [Openexr-devel] requesting a specific layer/view from a part?


From: Paul Miller
Subject: Re: [Openexr-devel] requesting a specific layer/view from a part?
Date: Tue, 17 Jun 2014 13:04:12 -0500
User-agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 6/17/2014 12:55 PM, Gonzalo Garramuno wrote:
On 17/06/14 13:56, Paul Miller wrote:
I'm adapting some code (which previously used RgbaInputFile) to
support MultiPartInputFiles and InputPart objects.

But there is no InputPart::setLayerName(). Once I have identified a
part, how am I supposed to request the "left" or "right" view for
instance, assuming the part has both left and right channel descriptors?

Each part has a header with both a view() and a name() call for that
header.  The name tells you what you are dealing with and the view()
what left or right eye you are dealing with.  However note that
supporting view() is optional (hasView()), so it is a good idea to check
for "left" or "right" string in the name().

So it appears that parts would be taking the place of the old "multi-view" system in this case?

Previously, I might see a stereo multi-view file with a "left" and "right" view, and channel names like: left.R, left.G, left.B, and right.R, right.G, right.B.

I was assuming that multi-part files would keep this idiom, but allow multiple versions/images in the same file, so I might see this:

part 0: original
left.R, left.G, left.B, right.R, right.G, right.B

part 1: processed
left.R, left.G, left.B, right.R, right.G, right.B

But without a way to target specific "layers" in the InputPart class, should I be expecting this instead?

part 0: original.left
R, G, B
part 1: original.right
R, G, B

part 2: processed.left
R, G, B
part 3: processed.right
R, G, B

Thanks for the input!



reply via email to

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