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