MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / Fims_Transform_Metadata

Function Fims_Transform_Metadata

Source/MediaInfo/Export/Export_Fims.cpp:999–1025  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

997
998//---------------------------------------------------------------------------
999Ztring Fims_Transform_Metadata(Ztring &ToReturn, MediaInfo_Internal &MI, size_t StreamPos, bool Is1_2)
1000{
1001 if (Is1_2)
1002 ToReturn+=__T("\t\t\t\t<!-- (metadataFormat not in XSD)\n");
1003
1004 ToReturn+=__T("\t\t\t\t<ebucore:metadataFormat");
1005 if (!MI.Get(Stream_Other, StreamPos, Other_Format).empty())
1006 ToReturn+=__T(" metadataFormatName=\"")+MI.Get(Stream_Other, StreamPos, Other_Format)+__T("\"");
1007 ToReturn+=__T(">\n");
1008
1009 if (!MI.Get(Stream_Other, StreamPos, Other_ID).empty() || !MI.Get(Stream_Other, StreamPos, Other_Title).empty())
1010 {
1011 ToReturn+=__T("\t\t\t\t\t<ebucore:metadataTrack");
1012 if (!MI.Get(Stream_Other, StreamPos, Other_ID).empty())
1013 ToReturn+=__T(" trackId=\"")+MI.Get(Stream_Other, StreamPos, Other_ID)+__T("\"");
1014 if (!MI.Get(Stream_Other, StreamPos, Other_Title).empty())
1015 ToReturn+=__T(" trackName=\"")+MI.Get(Stream_Other, StreamPos, Other_Title)+__T("\"");
1016 ToReturn+=__T("/>\n");
1017 }
1018
1019 ToReturn+=__T("\t\t\t\t</ebucore:metadataFormat>\n");
1020
1021 if (Is1_2)
1022 ToReturn+=__T("\t\t\t\t-->\n");
1023
1024 return ToReturn;
1025}
1026
1027//---------------------------------------------------------------------------
1028Ztring Export_Fims::Transform(MediaInfo_Internal &MI, version Version)

Callers 1

TransformMethod · 0.85

Calls 2

GetMethod · 0.65
emptyMethod · 0.45

Tested by

no test coverage detected