Package org.freedesktop.gstreamer.video
Class VideoTimeCodeInterval
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoTimeCodeInterval
- All Implemented Interfaces:
Proxy
A representation of a difference between two
GstVideoTimeCode
instances.
Will not necessarily correspond to a real timecode (e.g. 00:00:10;00)-
Constructor Summary
ConstructorDescriptionVideoTimeCodeInterval
(int hours, int minutes, int seconds, int frames) VideoTimeCodeInterval
(MemorySegment address) Create a VideoTimeCodeInterval proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Initializes this VideoTimeCodeInterval with empty/zero/NULL values.copy()
void
free()
Frees this VideoTimeCodeInterval.static VideoTimeCodeInterval
fromString
(String tcInterStr) tcInterStr
must only have ":" as separators.static MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the VideoTimeCodeInterval classvoid
init
(int hours, int minutes, int seconds, int frames) Initializes this VideoTimeCodeInterval with the given values.int
Read the value of the fieldframes
.int
Read the value of the fieldhours
.int
Read the value of the fieldminutes
.int
Read the value of the fieldseconds
.void
writeFrames
(int frames) Write a value in the fieldframes
.void
writeHours
(int hours) Write a value in the fieldhours
.void
writeMinutes
(int minutes) Write a value in the fieldminutes
.void
writeSeconds
(int seconds) Write a value in the fieldseconds
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
VideoTimeCodeInterval
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
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readHours
public int readHours()Read the value of the fieldhours
.- Returns:
- The value of the field
hours
-
writeHours
public void writeHours(int hours) Write a value in the fieldhours
.- Parameters:
hours
- The new value for the fieldhours
-
readMinutes
public int readMinutes()Read the value of the fieldminutes
.- Returns:
- The value of the field
minutes
-
writeMinutes
public void writeMinutes(int minutes) Write a value in the fieldminutes
.- Parameters:
minutes
- The new value for the fieldminutes
-
readSeconds
public int readSeconds()Read the value of the fieldseconds
.- Returns:
- The value of the field
seconds
-
writeSeconds
public void writeSeconds(int seconds) Write a value in the fieldseconds
.- Parameters:
seconds
- The new value for the fieldseconds
-
readFrames
public int readFrames()Read the value of the fieldframes
.- Returns:
- The value of the field
frames
-
writeFrames
public void writeFrames(int frames) Write a value in the fieldframes
.- Parameters:
frames
- The new value for the fieldframes
-
fromString
tcInterStr
must only have ":" as separators.- Parameters:
tcInterStr
- The string that represents theGstVideoTimeCodeInterval
- Returns:
- a new
GstVideoTimeCodeInterval
from the given string ornull
if the string could not be passed.
-
clear
public void clear()Initializes this VideoTimeCodeInterval with empty/zero/NULL values. -
copy
-
free
public void free()Frees this VideoTimeCodeInterval. -
init
public void init(int hours, int minutes, int seconds, int frames) Initializes this VideoTimeCodeInterval with the given values.- Parameters:
hours
- the hours field ofGstVideoTimeCodeInterval
minutes
- the minutes field ofGstVideoTimeCodeInterval
seconds
- the seconds field ofGstVideoTimeCodeInterval
frames
- the frames field ofGstVideoTimeCodeInterval
-