Class CMTime


  • public final class CMTime
    extends org.moe.natj.c.StructObject
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        CMTime()  
        CMTime​(long value, int timescale, int flags, long epoch)  
      protected CMTime​(org.moe.natj.general.Pointer peer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long epoch()
      < Differentiates between equal timestamps that are actually different because of looping, multi-item sequencing, etc.
      int flags()
      < The flags, eg.
      void setEpoch​(long value)
      < Differentiates between equal timestamps that are actually different because of looping, multi-item sequencing, etc.
      void setFlags​(int value)
      < The flags, eg.
      void setTimescale​(int value)
      < The timescale of the CMTime.
      void setValue​(long value)
      < The value of the CMTime.
      int timescale()
      < The timescale of the CMTime.
      long value()
      < The value of the CMTime.
      • Methods inherited from class org.moe.natj.general.NativeObject

        finalize, getPeer, getPeerPointer
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CMTime

        public CMTime()
      • CMTime

        protected CMTime​(org.moe.natj.general.Pointer peer)
      • CMTime

        public CMTime​(long value,
                      int timescale,
                      int flags,
                      long epoch)
    • Method Detail

      • value

        public long value()
        < The value of the CMTime. value/timescale = seconds
      • setValue

        public void setValue​(long value)
        < The value of the CMTime. value/timescale = seconds
      • timescale

        public int timescale()
        < The timescale of the CMTime. value/timescale = seconds.
      • setTimescale

        public void setTimescale​(int value)
        < The timescale of the CMTime. value/timescale = seconds.
      • flags

        public int flags()
        < The flags, eg. kCMTimeFlags_Valid, kCMTimeFlags_PositiveInfinity, etc.
      • setFlags

        public void setFlags​(int value)
        < The flags, eg. kCMTimeFlags_Valid, kCMTimeFlags_PositiveInfinity, etc.
      • epoch

        public long epoch()
        < Differentiates between equal timestamps that are actually different because of looping, multi-item sequencing, etc. Will be used during comparison: greater epochs happen after lesser ones. Additions/subtraction is only possible within a single epoch, however, since epoch length may be unknown/variable
      • setEpoch

        public void setEpoch​(long value)
        < Differentiates between equal timestamps that are actually different because of looping, multi-item sequencing, etc. Will be used during comparison: greater epochs happen after lesser ones. Additions/subtraction is only possible within a single epoch, however, since epoch length may be unknown/variable