openexr-devel
[Top][All Lists]
Advanced

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

Re: [Openexr-devel] Unpacking the multiView attribute?


From: Paul Miller
Subject: Re: [Openexr-devel] Unpacking the multiView attribute?
Date: Fri, 03 Feb 2012 13:21:50 -0600
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1

On 2/3/2012 1:12 PM, Stewart Dickson wrote:
Dumb question?

When reading the MultiView/* image files in the OpenEXR Sample Images source:
http://download.savannah.nongnu.org/releases/openexr/openexr-images-1.7.0.tar.gz
openexr-images-1.7.0/MultiView/*

One encounters the attribute of type StringVector, which I don't see hooks in 
the
OpenEXR API to unpack.

Can anyone explain how to do it?

Here is how I do it:

const StringVectorAttribute *multiView = file->header().findTypedAttribute<StringVectorAttribute>("multiView");
if (multiView)
{
   const StringVector &value = multiView->value();
   std::string def_view = defaultViewName(value);
   ...
}



reply via email to

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