Class TocEntry

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.TocEntry
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class TocEntry extends ProxyInstance
  • Constructor Details

    • TocEntry

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

      public TocEntry(TocEntryType type, String uid)
      Create new GstTocEntry structure.
      Parameters:
      type - entry type.
      uid - unique ID (UID) in the whole TOC.
  • Method Details

    • getType

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

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

      public void appendSubEntry(TocEntry subentry)
      Appends the GstTocEntry subentry to entry.
      Parameters:
      subentry - A GstTocEntry
    • getEntryType

      public TocEntryType getEntryType()
    • getLoop

      public boolean getLoop(@Nullable Out<TocLoopType> loopType, @Nullable Out<Integer> repeatCount)
      Get loopType and repeatCount values from the this TocEntry and write them into appropriate storages. Loops are e.g. used by sampled instruments. GStreamer is not automatically applying the loop. The application can process this meta data and use it e.g. to send a seek-event to loop a section.
      Parameters:
      loopType - the storage for the loop_type value, leave null if not need.
      repeatCount - the storage for the repeat_count value, leave null if not need.
      Returns:
      true if all non-null storage pointers were filled with appropriate values, false otherwise.
      Since:
      1.4
    • getParent

      public @Nullable TocEntry getParent()
      Gets the parent GstTocEntry of entry.
      Returns:
      The parent GstTocEntry of this TocEntry
    • getStartStopTimes

      public boolean getStartStopTimes(@Nullable Out<Long> start, @Nullable Out<Long> stop)
      Get start and stop values from the this TocEntry and write them into appropriate storages.
      Parameters:
      start - the storage for the start value, leave null if not need.
      stop - the storage for the stop value, leave null if not need.
      Returns:
      true if all non-null storage pointers were filled with appropriate values, false otherwise.
    • getSubEntries

      public List<TocEntry> getSubEntries()
      Gets the sub-entries of entry.
      Returns:
      A GList of GstTocEntry of this TocEntry
    • getTags

      public @Nullable TagList getTags()
      Gets the tags for entry.
      Returns:
      A GstTagList for this TocEntry
    • getToc

      public @Nullable Toc getToc()
      Gets the parent GstToc of entry.
      Returns:
      The parent GstToc of this TocEntry
    • getUid

      public String getUid()
      Gets the UID of entry.
      Returns:
      The UID of this TocEntry
    • isAlternative

      public boolean isAlternative()
    • isSequence

      public boolean isSequence()
    • mergeTags

      public void mergeTags(@Nullable TagList tags, TagMergeMode mode)
      Merge tags into the existing tags of this TocEntry using mode.
      Parameters:
      tags - A GstTagList or null
      mode - A GstTagMergeMode
    • setLoop

      public void setLoop(TocLoopType loopType, int repeatCount)
      Set loopType and repeatCount values for the entry.
      Parameters:
      loopType - loop_type value to set.
      repeatCount - repeat_count value to set.
      Since:
      1.4
    • setStartStopTimes

      public void setStartStopTimes(long start, long stop)
      Set start and stop values for the entry.
      Parameters:
      start - start value to set.
      stop - stop value to set.
    • setTags

      public void setTags(@Nullable TagList tags)
      Set a GstTagList with tags for the complete entry.
      Parameters:
      tags - A GstTagList or null