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);
   ...
}

_______________________________________________
Openexr-devel mailing list
Openexr-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/openexr-devel

Reply via email to