freeMXF.org http://freemxf.org/forum/ |
|
Read UMID e istance UID form a packagePtr http://freemxf.org/forum/viewtopic.php?f=2&t=117 |
Page 1 of 1 |
Author: | MarcoBiagi [ Fri Nov 16, 2007 12:15 pm ] |
Post subject: | Read UMID e istance UID form a packagePtr |
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? |
Author: | Matt Beard [ Mon Nov 19, 2007 11:16 am ] |
Post subject: | |
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 |
Author: | MarcoBiagi [ Tue Nov 20, 2007 11:02 am ] |
Post subject: | |
thx for your's answer |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |