Ejemplo n.º 1
0
 private static TimeSpan TimeFromFrameCount(int frames, BdViFrameRate rate)
 {
     return(TimeSpan.FromSeconds(frames / rate.ToDouble()));
 }
Ejemplo n.º 2
0
 private static uint FrameCountFromTime(TimeSpan syncOffset, BdViFrameRate rate)
 {
     return(Convert.ToUInt32(rate.ToDouble() * syncOffset.TotalSeconds));
 }