Definition at line 937 of file Mpeg7Doc.h. References Impala::Util::StringParser::AdvanceP(), Impala::Util::StringParser::Eat(), Fraction2Frame(), Impala::Util::XmlDoc::GetChildNode(), Impala::Util::XmlDoc::GetElementValue(), and Impala::Util::StringParser::GetInt(). Referenced by AddShot(), and GetTemporalDecomposition(). 00938 { 00939 DOMNode* timePoint = GetChildNode(mediaTime, "MediaTimePoint", true); 00940 String s = GetElementValue(timePoint); 00941 // e.g. s = T00:28:21:5985F30000 00942 Util::StringParser p(s); 00943 p.Eat('T'); // T is begin of time point 00944 long hours = p.GetInt(':'); 00945 long minutes = p.GetInt(':'); 00946 long seconds = p.GetInt(':'); 00947 p.AdvanceP(1); // skip ':', since it is not whitespace for next 00948 long fractions = p.GetInt('F'); 00949 p.AdvanceP(1); 00950 long nrFractions = p.GetInt(); 00951 long frame; 00952 frame = (hours*3600 + minutes*60 + seconds)*nrFractions + fractions; 00953 return Fraction2Frame(frame); 00954 }
Here is the call graph for this function:
|