freeMXF.org

Open discussion about freeMXF.org tools and MXF in general
It is currently Thu Mar 28, 2024 12:18 pm
Board index » MXF Categories » freeMXF.org Tools



Post new topic Reply to topic  [ 3 posts ] 
Author
Search for:
Message

Offline
Regular

Joined: Tue Aug 14, 2007 2:57 pm
Posts: 23
Location: Firenze

Post Posted: Fri Nov 16, 2007 12:15 pm 
Top  
I have a mxflib::PackagePtr package, and i want to read it's UMID and it's Package UID.How can i do this?

mxflib::UUIDPtr mIstanceUID=package-> ????
mxflib::UMIDPtr mPackageID=package-> ????

someone can help me?

 Profile  

Offline
Insider

Joined: Thu Apr 15, 2004 10:39 am
Posts: 198
Location: Scotland

Post Posted: Mon Nov 19, 2007 11:16 am 
Top  
There are currently no methods available that convert directly from a KLV value to a UUID or a UMID, but you can read the data bytes and use these to build a UUID or UMID object. For example:

Code:
  PackagePtr ThisPackage = { read the package }
  UUIDPtr InstanceUID;
  DataChunkPtr InstanceData = ThisPackage[InstanceUID_UL]->PutData();
  if(InstanceData->Size == 16)
  {
    InstanceUID = new mxflib::UUID(InstanceData->Data);
  }


Note how you have to qualify UUID as there is a UUID class defined by Visual Studio

 Profile WWW  

Offline
Regular

Joined: Tue Aug 14, 2007 2:57 pm
Posts: 23
Location: Firenze

Post Posted: Tue Nov 20, 2007 11:02 am 
Top  
thx for your's answer

 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

Jump to:  


Who is online

Users browsing this forum: No registered users and 54 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group :: Style based on FI Subice by phpBBservice.nl :: All times are UTC