Sign In
New User? Sign Up
exiv2
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
You can search the group for older messages.

Messages

  Messages Help
Advanced
Some questions   Message List  
Reply | Forward Message #1135 of 1513 |
Re: [exiv2] Conversion to and from xmp

On Thu, 1 May 2008 22:00:20 +0200,
Vladimir Nadvornik (nadvornik@...) wrote:

>This is what I have so far. It is not yet complete and needs a lot of work,
>I just want to show that I am working on it ;). The biggest problem so
far is
>a parser for the xmp date values in ISO 8601.

Couldn't you use XMPUtils::ConvertToDate() for that?
It's defined in the Adobe XMP SDK (XMPUtils.cpp:1271) and
I think it covers most, if not all, of the possible ISO 8601
representations.

Something along these lines:

std::string xmpDateString;
XMP_DateTime xmpDateTime = {0};
char exifDateString[20];

XMPUtils::ConvertToDate(xmpDateString.c_str(), &xmpDateTime);
snprintf(exifDateString, sizeof(exifDateString),
"%04ld:%02ld:%02ld %02ld:%02ld:%02ld",
xmpDateTime.year,
xmpDateTime.month,
xmpDateTime.day,
xmpDateTime.hour,
xmpDateTime.minute,
xmpDateTime.second);


-- marco

--
It's not the data universe only, it's human conversation.
They want to turn it into a one-way flow that they have entirely
monetized. I look at the collective human mind as a kind of
ecosystem. They want to clear cut it. They want to go into the
rainforest of human thought and mow the thing down.




Thu May 1, 2008 9:37 pm

piovanel
Offline Offline
Send Email Send Email

Forward
Message #1135 of 1513 |
Expand Messages Author Sort by Date

... Hi Andreas, This is what I have so far. It is not yet complete and needs a lot of work, I just want to show that I am working on it ;). The biggest problem...
Vladimir Nadvornik
nadvornikv
Offline Send Email
May 1, 2008
8:00 pm

On Thu, 1 May 2008 22:00:20 +0200, ... far is ... Couldn't you use XMPUtils::ConvertToDate() for that? It's defined in the Adobe XMP SDK (XMPUtils.cpp:1271)...
Marco Piovanelli
piovanel
Offline Send Email
May 1, 2008
9:37 pm

Hi Vladimir ... of work, ... Great! Thanks for the patch. I'm sorry I didn't ask you earlier whether you are assigning the copyright of your changes to me -...
Andreas Huggel
zzzahu
Offline Send Email
May 2, 2008
9:13 am

... OK, no problem. I knew about the dual licence since beginning. ... Thanks, but I don't think that I need SVN access. I am not too familiar with c++ and I...
Vladimir Nadvornik
nadvornikv
Offline Send Email
May 2, 2008
9:28 pm

... Ok, that's fine too. It will just be a bit slower. -ahu....
Andreas Huggel
zzzahu
Offline Send Email
May 5, 2008
3:33 pm

... I am not sure if the implicit conversion in XmpSidecar::setExifData is a good idea. It is inconsistent with formats that have both metadata and a code that...
Vladimir Nadvornik
nadvornikv
Offline Send Email
Mar 11, 2008
9:54 am
 First  |  |  Next > Last 
Advanced

Copyright © 2009 Yahoo! UK. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help