[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Openexr-devel] Unpacking the multiView attribute?
From: |
Stewart Dickson |
Subject: |
Re: [Openexr-devel] Unpacking the multiView attribute? |
Date: |
Fri, 03 Feb 2012 14:22:27 -0600 (CST) |
Thanks, Paul,
Is this in OpenEXR version 1.7.0?
In openexr-1.6.1, I get:
error: ISO C++ forbids declaration of ‘StringVectorAttribute’ with no type
I'll try version 1.7.0
Thanks again,
-Stewart
----- Original Message -----
From: "Paul Miller" <address@hidden>
To: address@hidden
Sent: Friday, February 3, 2012 1:21:50 PM
Subject: Re: [Openexr-devel] Unpacking the multiView attribute?
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
address@hidden
https://lists.nongnu.org/mailman/listinfo/openexr-devel