freeMXF.org

Open discussion about freeMXF.org tools and MXF in general
It is currently Sun Dec 22, 2024 2:46 am
Board index » MXF Categories » freeMXF.org Tools



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

Offline
Regular

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

Post Posted: Thu Jan 03, 2008 3:35 pm 
Top  
I need to add a multiple descriptor to a file package.
If i want to add a normal descriptor i do this:
FilePackage->AddChild(Descriptor_UL)->MakeLink (WrapConfig->EssenceDescriptor);


So if i want to add a multiple descriptor i think that i should do this:
MDObjectPtr multipleDescriptor=new MDObject(MultipleDescriptor_UL);

multipleDescriptor->addChild(SubDescriptor_UL)->MakeLink(WrapConfigA->EssenceDescriptor);

multipleDescriptor->addChild(SubDescriptor_UL)->MakeLink(WrapConfigB->EssenceDescriptor);

FilePackage->AddChild(multipleDescriptor);

is this the right way?thx

 Profile  

Offline
Regular

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

Post Posted: Sun Jan 13, 2008 12:30 pm 
Top  
ok. This code is wrong and i found the right code in the mxfwrap application. it is something like this:
mxflib::MDObjectPtr multipleDescriptor=new mxflib::MDObject(mxflib::MultipleDescriptor_UL);

multipleDescriptor->AddChild(mxflib::SubDescriptorUIDs_UL);

mxflib::MDObjectPtr subDescriptorA=WrapConfigA->EssenceDescriptor;

multipleDescriptor[mxflib::SubDescriptorUIDs_UL]->AddChild()->MakeRef(subDescriptorA);

mxflib::MDObjectPtr subDescriptorB=WrapConfigB->EssenceDescriptor;

multipleDescriptor[mxflib::SubDescriptorUIDs_UL]->AddChild()->MakeRef(subDescriptorB);

sourcePackage->AddChild(mxflib::Descriptor_UL)->MakeRef(multipleDescriptor);

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

Jump to:  


Who is online

Users browsing this forum: No registered users and 4 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