Ejemplo n.º 1
0
        public static CMSyncError GetRelativeRateAndAnchorTime(CMClockOrTimebase clockOrTimebaseA, CMClockOrTimebase clockOrTimebaseB, out double relativeRate, out CMTime timeA, out CMTime timeB)
        {
            if (clockOrTimebaseA == null)
            {
                throw new ArgumentNullException("clockOrTimebaseA");
            }

            if (clockOrTimebaseB == null)
            {
                throw new ArgumentNullException("clockOrTimebaseB");
            }

            return(CMSyncGetRelativeRateAndAnchorTime(clockOrTimebaseA.Handle, clockOrTimebaseB.handle, out relativeRate, out timeA, out timeB));
        }
Ejemplo n.º 2
0
        public static bool MightDrift(CMClockOrTimebase clockOrTimebaseA, CMClockOrTimebase clockOrTimebaseB)
        {
            if (clockOrTimebaseA == null)
            {
                throw new ArgumentNullException("clockOrTimebaseA");
            }

            if (clockOrTimebaseB == null)
            {
                throw new ArgumentNullException("clockOrTimebaseB");
            }

            return(CMSyncMightDrift(clockOrTimebaseA.Handle, clockOrTimebaseB.Handle));
        }
Ejemplo n.º 3
0
        public static double GetRelativeRate(CMClockOrTimebase clockOrTimebaseA, CMClockOrTimebase clockOrTimebaseB)
        {
            if (clockOrTimebaseA == null)
            {
                throw new ArgumentNullException("clockOrTimebaseA");
            }

            if (clockOrTimebaseB == null)
            {
                throw new ArgumentNullException("clockOrTimebaseB");
            }

            return(CMSyncGetRelativeRate(clockOrTimebaseA.Handle, clockOrTimebaseB.Handle));
        }
Ejemplo n.º 4
0
        public static bool MightDrift(CMClockOrTimebase clockOrTimebaseA, CMClockOrTimebase clockOrTimebaseB)
        {
            if (clockOrTimebaseA == null)
                throw new ArgumentNullException ("clockOrTimebaseA");

            if (clockOrTimebaseB == null)
                throw new ArgumentNullException ("clockOrTimebaseB");

            return CMSyncMightDrift (clockOrTimebaseA.Handle, clockOrTimebaseB.Handle);
        }
Ejemplo n.º 5
0
        public static CMSyncError GetRelativeRateAndAnchorTime(CMClockOrTimebase clockOrTimebaseA, CMClockOrTimebase clockOrTimebaseB,  out double relativeRate, out CMTime timeA, out CMTime timeB)
        {
            if (clockOrTimebaseA == null)
                throw new ArgumentNullException ("clockOrTimebaseA");

            if (clockOrTimebaseB == null)
                throw new ArgumentNullException ("clockOrTimebaseB");

            return CMSyncGetRelativeRateAndAnchorTime (clockOrTimebaseA.Handle, clockOrTimebaseB.handle, out relativeRate, out timeA, out timeB);
        }
Ejemplo n.º 6
0
        public static double GetRelativeRate(CMClockOrTimebase clockOrTimebaseA, CMClockOrTimebase clockOrTimebaseB)
        {
            if (clockOrTimebaseA == null)
                throw new ArgumentNullException ("clockOrTimebaseA");

            if (clockOrTimebaseB == null)
                throw new ArgumentNullException ("clockOrTimebaseB");

            return CMSyncGetRelativeRate (clockOrTimebaseA.Handle, clockOrTimebaseB.Handle);
        }
Ejemplo n.º 7
0
        public static CMTime ConvertTime(CMTime time, CMClockOrTimebase from, CMClockOrTimebase to)
        {
            if (from == null)
                throw new ArgumentNullException ("from");
            if (to == null)
                throw new ArgumentNullException ("to");

            return CMSyncConvertTime (time, from.Handle, to.Handle);
        }