Definition at line 579 of file Mpeg7Doc.h. References mFractions, and String2(). Referenced by ExportMediaTime(). 00580 { 00581 // produce something like PT00H00M04S2122N30000F 00582 long totalFractions = frame; 00583 if (mFractions == 30000) // probably NTSC with time unit PT1001N30000F 00584 totalFractions *= 1001; 00585 long nrFractions = totalFractions % mFractions; 00586 long totalSeconds = (totalFractions - nrFractions) / mFractions; 00587 long hours = totalSeconds / 3600; 00588 totalSeconds %= 3600; 00589 long minutes = totalSeconds / 60; 00590 long seconds = totalSeconds % 60; 00591 return "PT" + String2(hours) + "H" + String2(minutes) + "M" + 00592 String2(seconds) + "S" + String2(nrFractions) + "N" + 00593 String2(mFractions) + "F"; 00594 }
Here is the call graph for this function:
|