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

void Impala::Core::VideoSet::Mpeg7DocAudio::AddSegment ( DOMNode segment  )  [inline, private]

Definition at line 237 of file Mpeg7DocAudio.h.

References Impala::atof(), Impala::Util::XmlDoc::GetAttributeValue(), Impala::Util::XmlDoc::GetChildNode(), Impala::Util::XmlDoc::GetChildNodes(), Impala::Util::XmlDoc::GetElementValue(), GetMediaDuration(), GetMediaTimePoint(), ILOG_DEBUG, mAnnos, mAnnoTypes, mConfidence, mEndFrame, mSegmentId, and mStartFrame.

Referenced by ReadData().

00238     {
00239         String id = GetAttributeValue(segment, "id", "<none>");
00240         ILOG_DEBUG("segment id = " << id);
00241         mSegmentId.push_back(id);
00242         std::vector<DOMNode*> annoNodes = GetChildNodes(segment,
00243                                                         "TextAnnotation");
00244         std::vector<String> annoTypes;
00245         std::vector<String> annos;
00246         for (int i=0 ; i<annoNodes.size() ; i++)
00247         {
00248             DOMNode* annoNode = annoNodes[i];
00249             String conf = GetAttributeValue(annoNode, "confidence", "1.0");
00250             mConfidence.push_back(atof(conf));
00251             DOMNode* freeText = GetChildNode(annoNode, "FreeTextAnnotation",
00252                                              true);
00253             String anno = GetElementValue(freeText);
00254             annos.push_back(anno);
00255             ILOG_DEBUG("anno = " << anno << " conf = " << conf);
00256         }
00257         mAnnoTypes.push_back(annoTypes);
00258         mAnnos.push_back(annos);
00259 
00260         DOMNode* mediaTime = GetChildNode(segment, "MediaTime", true);
00261         long frame = GetMediaTimePoint(mediaTime);
00262         long duration = GetMediaDuration(mediaTime);
00263         mStartFrame.push_back(frame);
00264         mEndFrame.push_back(frame + duration - 1);
00265     }

Here is the call graph for this function:


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