Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void Impala::Core::VideoSet::Mpeg7Doc::ReadData ( String  fileName,
Util::IOBuffer ioBuf 
) [inline, private]

Definition at line 668 of file Mpeg7Doc.h.

References AddShot(), Impala::Util::XmlDoc::GetAttributeValue(), Impala::Util::XmlDoc::GetChildNode(), Impala::Util::XmlDoc::GetChildNodes(), Impala::Util::XmlDoc::GetElementValue(), GetFractions(), GetMediaDuration(), ILOG_DEBUG, mFractions, mId, mNrFrames, mVideoFileName, Impala::Persistency::XmlFileReader::Read(), and Xml2String().

Referenced by Mpeg7Doc().

00669     {
00670         Persistency::XmlFileReader reader;
00671         DOMDocument* doc = reader.Read(fileName, ioBuf);
00672         delete ioBuf;
00673         DOMNode* mpeg7 = GetChildNode(doc, "Mpeg7", true);
00674         DOMNode* desc = GetChildNode(mpeg7, "Description", true);
00675         DOMNode* mmContent = GetChildNode(desc, "MultimediaContent", true);
00676         DOMNode* video = GetChildNode(mmContent, "Video", true);
00677         mId = Xml2String(GetAttributeValue(video, "id"));
00678         ILOG_DEBUG("video id = " << mId);
00679         DOMNode* mediaLoc = GetChildNode(video, "MediaLocator", true);
00680         DOMNode* mediaUri = GetChildNode(mediaLoc, "MediaUri", true);
00681         mVideoFileName = Xml2String(GetElementValue(mediaUri));
00682         ILOG_DEBUG("filename = " << mVideoFileName);
00683         DOMNode* mediaTime = GetChildNode(video, "MediaTime", true);
00684         mNrFrames = GetMediaDuration(mediaTime);
00685         ILOG_DEBUG("nrFrames = " << mNrFrames);
00686         mFractions = GetFractions(mediaTime);
00687         ILOG_DEBUG("fractions = " << mFractions);
00688         DOMNode* decomp = GetChildNode(video, "TemporalDecomposition", true);
00689         std::vector<DOMNode*> segments = GetChildNodes(decomp, "VideoSegment");
00690         ILOG_DEBUG("nr VideoSegments = " << segments.size());
00691         for (int i=0 ; i<segments.size() ; i++)
00692             AddShot(segments[i]);
00693     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:30:48 2010 for ImpalaSrc by  doxygen 1.5.1