Package org.freedesktop.gstreamer.gst
Class TocEntry
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.TocEntry
- All Implemented Interfaces:
Proxy
-
Constructor Summary
ConstructorsConstructorDescriptionTocEntry(MemorySegment address) Create a TocEntry proxy instance for the provided memory address.TocEntry(TocEntryType type, String uid) Create newGstTocEntrystructure. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendSubEntry(TocEntry subentry) Appends theGstTocEntrysubentrytoentry.booleangetLoop(@Nullable Out<TocLoopType> loopType, @Nullable Out<Integer> repeatCount) GetloopTypeandrepeatCountvalues from the this TocEntry and write them into appropriate storages.@Nullable TocEntryGets the parentGstTocEntryofentry.booleangetStartStopTimes(@Nullable Out<Long> start, @Nullable Out<Long> stop) Getstartandstopvalues from the this TocEntry and write them into appropriate storages.Gets the sub-entries ofentry.@Nullable TagListgetTags()Gets the tags forentry.@Nullable TocgetToc()Gets the parentGstTocofentry.static @Nullable TypegetType()Get the GType of the TocEntry classgetUid()Gets the UID ofentry.booleanbooleanvoidmergeTags(@Nullable TagList tags, TagMergeMode mode) Mergetagsinto the existing tags of this TocEntry usingmode.voidsetLoop(TocLoopType loopType, int repeatCount) SetloopTypeandrepeatCountvalues for theentry.voidsetStartStopTimes(long start, long stop) Setstartandstopvalues for theentry.voidSet aGstTagListwith tags for the completeentry.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
TocEntry
Create a TocEntry proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
TocEntry
Create newGstTocEntrystructure.- Parameters:
type- entry type.uid- unique ID (UID) in the whole TOC.
-
-
Method Details
-
getType
-
appendSubEntry
Appends theGstTocEntrysubentrytoentry.- Parameters:
subentry- AGstTocEntry
-
getEntryType
-
getLoop
GetloopTypeandrepeatCountvalues 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, leavenullif not need.repeatCount- the storage for the repeat_count value, leavenullif not need.- Returns:
trueif all non-nullstorage pointers were filled with appropriate values,falseotherwise.- Since:
- 1.4
-
getParent
Gets the parentGstTocEntryofentry.- Returns:
- The parent
GstTocEntryof this TocEntry
-
getStartStopTimes
Getstartandstopvalues from the this TocEntry and write them into appropriate storages.- Parameters:
start- the storage for the start value, leavenullif not need.stop- the storage for the stop value, leavenullif not need.- Returns:
trueif all non-nullstorage pointers were filled with appropriate values,falseotherwise.
-
getSubEntries
-
getTags
-
getToc
Gets the parentGstTocofentry.- Returns:
- The parent
GstTocof this TocEntry
-
getUid
-
isAlternative
public boolean isAlternative() -
isSequence
public boolean isSequence() -
mergeTags
Mergetagsinto the existing tags of this TocEntry usingmode.- Parameters:
tags- AGstTagListornullmode- AGstTagMergeMode
-
setLoop
SetloopTypeandrepeatCountvalues for theentry.- Parameters:
loopType- loop_type value to set.repeatCount- repeat_count value to set.- Since:
- 1.4
-
setStartStopTimes
public void setStartStopTimes(long start, long stop) Setstartandstopvalues for theentry.- Parameters:
start- start value to set.stop- stop value to set.
-
setTags
Set aGstTagListwith tags for the completeentry.- Parameters:
tags- AGstTagListornull
-