Re: requesting a specific layer/view from a part?

Paul Miller <[email protected]>
Newsgroups gmane.comp.video.openexr.devel
Organization FXTECH
Message-ID <[email protected]>
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!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.