Definition at line 103 of file Mpeg7DocAudio.h. Referenced by EndFrameReFraction(), and StartFrameReFraction(). 00104 { 00105 Int64 totalFractions = srcFrame; 00106 if (srcFraction == 30000) // probably NTSC with time unit PT1001N30000F 00107 totalFractions *= 1001; 00108 Int64 nrFractions = totalFractions % srcFraction; 00109 Int64 seconds = (totalFractions - nrFractions) / srcFraction; 00110 double f = (double) nrFractions / (double) srcFraction; 00111 nrFractions = f * dstFraction; 00112 return seconds * dstFraction + nrFractions; 00113 }
|