Package org.freedesktop.gstreamer.video
Class VideoTimeCodeInterval
java.lang.Object
org.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)- Since:
- 1.12
-
Constructor Summary
ConstructorsConstructorDescriptionVideoTimeCodeInterval(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 TypeMethodDescriptionvoidclear()Initializes this VideoTimeCodeInterval with empty/zero/NULL values.copy()voidfree()Freestc.static VideoTimeCodeIntervalfromString(String tcInterStr) tcInterStrmust only have ":" as separators.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the VideoTimeCodeInterval classvoidinit(int hours, int minutes, int seconds, int frames) Initializes this VideoTimeCodeInterval with the given values.intRead the value of the fieldframes.intRead the value of the fieldhours.intRead the value of the fieldminutes.intRead the value of the fieldseconds.voidwriteFrames(int frames) Write a value in the fieldframes.voidwriteHours(int hours) Write a value in the fieldhours.voidwriteMinutes(int minutes) Write a value in the fieldminutes.voidwriteSeconds(int seconds) Write a value in the fieldseconds.Methods inherited from class org.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
Get the GType of the VideoTimeCodeInterval class- Returns:
- the GType
-
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
tcInterStrmust only have ":" as separators.- Parameters:
tcInterStr- The string that represents theGstVideoTimeCodeInterval- Returns:
- a new
GstVideoTimeCodeIntervalfrom the given string ornullif 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
-
free
public void free()Freestc.- 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 ofGstVideoTimeCodeIntervalminutes- the minutes field ofGstVideoTimeCodeIntervalseconds- the seconds field ofGstVideoTimeCodeIntervalframes- the frames field ofGstVideoTimeCodeInterval- Since:
- 1.12
-