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

static int Impala::Core::VideoSet::Mpeg7DocAudio::ReFraction ( int  srcFrame,
int  srcFraction,
int  dstFraction 
) [inline, static]

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     }


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