Package org.freedesktop.gstreamer.gst
Class TocEntry
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.TocEntry
- All Implemented Interfaces:
Proxy
-
Constructor Summary
ConstructorDescriptionTocEntry
(MemorySegment address) Create a TocEntry proxy instance for the provided memory address.TocEntry
(TocEntryType type, String uid) Create newGstTocEntry
structure. -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendSubEntry
(TocEntry subentry) Appends theGstTocEntry
subentry
to this TocEntry.boolean
getLoop
(@Nullable Out<TocLoopType> loopType, @Nullable Out<Integer> repeatCount) GetloopType
andrepeatCount
values from the this TocEntry and write them into appropriate storages.Gets the parentGstTocEntry
of this TocEntry.boolean
getStartStopTimes
(@Nullable Out<Long> start, @Nullable Out<Long> stop) Getstart
andstop
values from the this TocEntry and write them into appropriate storages.Gets the sub-entries of this TocEntry.getTags()
Gets the tags for this TocEntry.getToc()
Gets the parentGstToc
of this TocEntry.static Type
getType()
Get the GType of the TocEntry classgetUid()
Gets the UID of this TocEntry.boolean
boolean
void
mergeTags
(@Nullable TagList tags, TagMergeMode mode) Mergetags
into the existing tags of this TocEntry usingmode
.void
setLoop
(TocLoopType loopType, int repeatCount) SetloopType
andrepeatCount
values for the this TocEntry.void
setStartStopTimes
(long start, long stop) Setstart
andstop
values for the this TocEntry.void
Set aGstTagList
with tags for the complete this TocEntry.Methods inherited from class io.github.jwharm.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 newGstTocEntry
structure.- Parameters:
type
- entry type.uid
- unique ID (UID) in the whole TOC.
-
-
Method Details
-
getType
-
appendSubEntry
Appends theGstTocEntry
subentry
to this TocEntry.- Parameters:
subentry
- AGstTocEntry
-
getEntryType
-
getLoop
public boolean getLoop(@Nullable @Nullable Out<TocLoopType> loopType, @Nullable @Nullable Out<Integer> repeatCount) GetloopType
andrepeatCount
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, leavenull
if not need.repeatCount
- the storage for the repeat_count value, leavenull
if not need.- Returns:
true
if all non-null
storage pointers were filled with appropriate values,false
otherwise.
-
getParent
Gets the parentGstTocEntry
of this TocEntry.- Returns:
- The parent
GstTocEntry
of this TocEntry
-
getStartStopTimes
public boolean getStartStopTimes(@Nullable @Nullable Out<Long> start, @Nullable @Nullable Out<Long> stop) Getstart
andstop
values from the this TocEntry and write them into appropriate storages.- Parameters:
start
- the storage for the start value, leavenull
if not need.stop
- the storage for the stop value, leavenull
if not need.- Returns:
true
if all non-null
storage pointers were filled with appropriate values,false
otherwise.
-
getSubEntries
-
getTags
-
getToc
Gets the parentGstToc
of this TocEntry.- Returns:
- The parent
GstToc
of this TocEntry
-
getUid
-
isAlternative
public boolean isAlternative() -
isSequence
public boolean isSequence() -
mergeTags
Mergetags
into the existing tags of this TocEntry usingmode
.- Parameters:
tags
- AGstTagList
ornull
mode
- AGstTagMergeMode
-
setLoop
SetloopType
andrepeatCount
values for the this TocEntry.- Parameters:
loopType
- loop_type value to set.repeatCount
- repeat_count value to set.
-
setStartStopTimes
public void setStartStopTimes(long start, long stop) Setstart
andstop
values for the this TocEntry.- Parameters:
start
- start value to set.stop
- stop value to set.
-
setTags
Set aGstTagList
with tags for the complete this TocEntry.- Parameters:
tags
- AGstTagList
ornull
-