Package org.freedesktop.gstreamer.gst
Class StaticPadTemplate
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.StaticPadTemplate
-
Constructor Summary
ConstructorDescriptionAllocate a new StaticPadTemplate.StaticPadTemplate
(Arena arena) Allocate a new StaticPadTemplate.StaticPadTemplate
(MemorySegment address) Create a StaticPadTemplate proxy instance for the provided memory address.StaticPadTemplate
(String nameTemplate, PadDirection direction, PadPresence presence, StaticCaps staticCaps) Allocate a new StaticPadTemplate with the fields set to the provided values.StaticPadTemplate
(String nameTemplate, PadDirection direction, PadPresence presence, StaticCaps staticCaps, Arena arena) Allocate a new StaticPadTemplate with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionget()
Converts aGstStaticPadTemplate
into aGstPadTemplate
.getCaps()
Gets the capabilities of the static pad template.static MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the StaticPadTemplate classRead the value of the fielddirection
.Read the value of the fieldname_template
.Read the value of the fieldpresence
.Read the value of the fieldstatic_caps
.void
writeDirection
(PadDirection direction) Write a value in the fielddirection
.void
writeNameTemplate
(String nameTemplate, Arena _arena) Write a value in the fieldname_template
.void
writePresence
(PadPresence presence) Write a value in the fieldpresence
.void
writeStaticCaps
(StaticCaps staticCaps) Write a value in the fieldstatic_caps
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
StaticPadTemplate
Create a StaticPadTemplate proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
StaticPadTemplate
Allocate a new StaticPadTemplate.- Parameters:
arena
- to control the memory allocation scope
-
StaticPadTemplate
public StaticPadTemplate()Allocate a new StaticPadTemplate. The memory is allocated withArena.ofAuto()
. -
StaticPadTemplate
public StaticPadTemplate(String nameTemplate, PadDirection direction, PadPresence presence, StaticCaps staticCaps, Arena arena) Allocate a new StaticPadTemplate with the fields set to the provided values.- Parameters:
nameTemplate
- value for the fieldnameTemplate
direction
- value for the fielddirection
presence
- value for the fieldpresence
staticCaps
- value for the fieldstaticCaps
arena
- to control the memory allocation scope
-
StaticPadTemplate
public StaticPadTemplate(String nameTemplate, PadDirection direction, PadPresence presence, StaticCaps staticCaps) Allocate a new StaticPadTemplate with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
nameTemplate
- value for the fieldnameTemplate
direction
- value for the fielddirection
presence
- value for the fieldpresence
staticCaps
- value for the fieldstaticCaps
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readNameTemplate
Read the value of the fieldname_template
.- Returns:
- The value of the field
name_template
-
writeNameTemplate
-
readDirection
Read the value of the fielddirection
.- Returns:
- The value of the field
direction
-
writeDirection
Write a value in the fielddirection
.- Parameters:
direction
- The new value for the fielddirection
-
readPresence
Read the value of the fieldpresence
.- Returns:
- The value of the field
presence
-
writePresence
Write a value in the fieldpresence
.- Parameters:
presence
- The new value for the fieldpresence
-
readStaticCaps
Read the value of the fieldstatic_caps
.- Returns:
- The value of the field
static_caps
-
writeStaticCaps
Write a value in the fieldstatic_caps
.- Parameters:
staticCaps
- The new value for the fieldstatic_caps
-
get
Converts aGstStaticPadTemplate
into aGstPadTemplate
.- Returns:
- a new
GstPadTemplate
.
-
getCaps
Gets the capabilities of the static pad template.- Returns:
- the
GstCaps
of the static pad template. Unref after usage. Since the core holds an additional ref to the returned caps, use gst_caps_make_writable() on the returned caps to modify it.
-