Larry,

Agreed. Metadata access would not be inherently faster with XMP.

However, unless you have a fixed offset to the line table, image access
would be faster, as there would be fewer attributes to slog through byte
by byte to find the line table. (StringVector or any other form of
attribute aggregator would solve that problem as well.)
And image access speed is usually a greater concern.

Lars


-----Original Message-----
From: Larry Gritz <[email protected]>
Date: Tuesday, November 19, 2013 8:17 AM
To: Lars <[email protected]>
Cc: Piotr Stanczyk <[email protected]>, Blecher Wolf
<[email protected]>, "[email protected]"
<[email protected]>
Subject: Re: [Openexr-devel] List of all availabe attributes in an exr file

>XMP might be nice for the sake of compatibility with other formats that
>insert an XMP blob into their files, but I don't think you should count
>on a performance gain.
>
>The one case where you'd expect it to be faster is if you are just
>"copying" from one file to another and can do it as one string rather
>than walking the list. But if you need the actual content of the
>metadata, I'd expect it to take just as long, or longer, to parse a bunch
>of XML to get the metadata than to pull them out of the original header
>as separate attributes.
>
>       -- lg
>
>On Nov 19, 2013, at 10:02 AM, Lars Borg <[email protected]> wrote:
>
>> When will XMP be available in EXR?
>> One top-level attribute for lots of attributes.
>> Less speed penalty.
>> 
>> Lars
>> 
>> -----Original Message-----
>> From: Piotr Stanczyk <[email protected]>
>> Date: Tuesday, November 19, 2013 7:34 AM
>> To: Larry Gritz <[email protected]>, Blecher Wolf
>><[email protected]>
>> Cc: "[email protected]" <[email protected]>
>> Subject: Re: [Openexr-devel] List of all availabe attributes in an exr
>>file
>> 
>>> +1 
>>> 
>>> Also, take a look at the code for the standalone executable exrheader,
>>>it
>>> does something very much what you are after.
>>> 
>>> - Piotr
>>> 
>>> ________________________________________
>>> From: [email protected]
>>> [[email protected]] on behalf of Larry
>>> Gritz [[email protected]]
>>> Sent: 19 November 2013 09:28
>>> To: Blecher Wolf
>>> Cc: [email protected]
>>> Subject: Re: [Openexr-devel] List of all availabe attributes in an exr
>>> file
>>> 
>>> It is certainly possible to iterate over the full metadata of an
>>>OpenEXR
>>> file.
>>> 
>>>       Imf::Header *header = ...;
>>>       for (Imf::Header::ConstIterator hit = header->begin();
>>>            hit != header->end();  ++hit) {
>>>           std::cout << "name = " << hit.name()
>>>                     << ", type = " << hit.attribute().typeName() <<
>>> "\n";
>>>       }
>>> 
>>> 
>>> For a full example, look at this portion of the OpenImageIO code:
>>> 
>>>https://github.com/OpenImageIO/oiio/blob/master/src/openexr.imageio/exri
>>>np
>>> ut.cpp
>>> look at the loop beginning at line 530.
>>> 
>>> 
>>> 
>>> 
>>> On Nov 19, 2013, at 12:48 AM, Blecher Wolf <[email protected]>
>>> wrote:
>>> 
>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA256
>>>> 
>>>> Hi,
>>>> 
>>>> we are currently implementing OpenEXR as an internal exchange/storage
>>>> format for some processed medical images.
>>>> Since we need to store a variety of metadata (realized by storing
>>>> several attributes) depending on the actual image type, we would like
>>>>to
>>>> query a list of attributes present in the file.
>>>> As far as I have seen, the implementation (version 2.0.1) does not
>>>> provide a method for this, so my idea was to store an additional
>>>> attribute (StringVector) which contains the available attributes and
>>>> their static typename.
>>>> Any better ideas?
>>>> 
>>>> Cheers
>>>> 
>>>> Wolf
>>> 
>>> --
>>> Larry Gritz
>>> [email protected]
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Openexr-devel mailing list
>>> [email protected]
>>> https://lists.nongnu.org/mailman/listinfo/openexr-devel
>>> 
>>> _______________________________________________
>>> Openexr-devel mailing list
>>> [email protected]
>>> https://lists.nongnu.org/mailman/listinfo/openexr-devel
>> 
>
>--
>Larry Gritz
>[email protected]
>
>
>

_______________________________________________
Openexr-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/openexr-devel

Reply via email to