Class VideoTimeCodeInterval

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoTimeCodeInterval
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class VideoTimeCodeInterval extends ProxyInstance
A representation of a difference between two GstVideoTimeCode instances. Will not necessarily correspond to a real timecode (e.g. 00:00:10;00)
Since:
1.12
  • Constructor Details

    • VideoTimeCodeInterval

      public VideoTimeCodeInterval(MemorySegment address)
      Create a VideoTimeCodeInterval proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • VideoTimeCodeInterval

      public VideoTimeCodeInterval(int hours, int minutes, int seconds, int frames)
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the VideoTimeCodeInterval class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readHours

      public int readHours()
      Read the value of the field hours.
      Returns:
      The value of the field hours
    • writeHours

      public void writeHours(int hours)
      Write a value in the field hours.
      Parameters:
      hours - The new value for the field hours
    • readMinutes

      public int readMinutes()
      Read the value of the field minutes.
      Returns:
      The value of the field minutes
    • writeMinutes

      public void writeMinutes(int minutes)
      Write a value in the field minutes.
      Parameters:
      minutes - The new value for the field minutes
    • readSeconds

      public int readSeconds()
      Read the value of the field seconds.
      Returns:
      The value of the field seconds
    • writeSeconds

      public void writeSeconds(int seconds)
      Write a value in the field seconds.
      Parameters:
      seconds - The new value for the field seconds
    • readFrames

      public int readFrames()
      Read the value of the field frames.
      Returns:
      The value of the field frames
    • writeFrames

      public void writeFrames(int frames)
      Write a value in the field frames.
      Parameters:
      frames - The new value for the field frames
    • fromString

      public static @Nullable VideoTimeCodeInterval fromString(String tcInterStr)
      tcInterStr must only have ":" as separators.
      Parameters:
      tcInterStr - The string that represents the GstVideoTimeCodeInterval
      Returns:
      a new GstVideoTimeCodeInterval from the given string or null if the string could not be passed.
      Since:
      1.12
    • clear

      public void clear()
      Initializes this VideoTimeCodeInterval with empty/zero/NULL values.
      Since:
      1.12
    • copy

      public VideoTimeCodeInterval copy()
    • free

      public void free()
      Frees tc.
      Since:
      1.12
    • init

      public void init(int hours, int minutes, int seconds, int frames)
      Initializes this VideoTimeCodeInterval with the given values.
      Parameters:
      hours - the hours field of GstVideoTimeCodeInterval
      minutes - the minutes field of GstVideoTimeCodeInterval
      seconds - the seconds field of GstVideoTimeCodeInterval
      frames - the frames field of GstVideoTimeCodeInterval
      Since:
      1.12