Module vcr4j.rs422

Class RS422Timecode

java.lang.Object
org.mbari.vcr4j.rs422.RS422Timecode

public class RS422Timecode extends Object
  • Field Details

    • ZERO

      public static final RS422Timecode ZERO
    • ALT_LTC_TIMECODE

      public static final byte[] ALT_LTC_TIMECODE
    • LTC_TIMECODE

      public static final byte[] LTC_TIMECODE
    • TIMER1_TIMECODE

      public static final byte[] TIMER1_TIMECODE
    • TIMER2_TIMECODE

      public static final byte[] TIMER2_TIMECODE
    • VTC_TIMECODE

      public static final byte[] VTC_TIMECODE
  • Constructor Details

    • RS422Timecode

      public RS422Timecode(byte[] timecodeBytes)
  • Method Details

    • byteToHourOrFrame

      public static int byteToHourOrFrame(byte b)
    • byteToMinuteOrSecond

      public static int byteToMinuteOrSecond(byte b)
    • byteToTime

      public static int byteToTime(byte b)
      Deprecated.
      Don't use. In some cases it will return the wrong frame value. See setTimecodeBytes
      Convert a byte representing a timecode value to a number
      Parameters:
      b - A byte of timecode
      Returns:
      The decimal timecode value corresponding to the input byte.
    • timeToByte

      public static byte timeToByte(int i)
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      Formatted timecode in HH:MM:SS:FF (i.e. hours:minutes:seconds:frame)
    • getTimecode

      public Timecode getTimecode()
    • getTimecodeBytes

      public byte[] getTimecodeBytes()
    • isTimecodeReply

      public static boolean isTimecodeReply(byte[] cmd)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object