Module vcr4j.core

Class Converters

java.lang.Object
org.mbari.vcr4j.time.Converters

public class Converters extends Object
Since:
2015-09-24T14:08:00
Author:
Brian Schlining
  • Constructor Details

    • Converters

      public Converters()
  • Method Details

    • toMediaTime

      public static Optional<MediaTime> toMediaTime(Timecode timecode)
    • toTimecode

      public static Timecode toTimecode(MediaTime mediaTime)
      Returns a timecode representation of the mediatime. The frame section of the timecode is represented by decimal fractional seconds.
      Parameters:
      mediaTime - Value to convert
      Returns:
      A timecode estimating the mediaTime
    • toTimecode

      public static Timecode toTimecode(HMSF hmsf)
      Convert an HMSF to a timecode.
      Parameters:
      hmsf - The HMSF to convert
      Returns:
      An timecode where isComplete is false.