Package org.freedesktop.gstreamer.gst
Class StaticPadTemplate
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.StaticPadTemplate
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 TypeMethodDescription@Nullable PadTemplateget()Converts aGstStaticPadTemplateinto aGstPadTemplate.getCaps()Gets the capabilities of the static pad template.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()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.@Nullable StaticCapsRead the value of the fieldstatic_caps.voidwriteDirection(PadDirection direction) Write a value in the fielddirection.voidwriteNameTemplate(String nameTemplate, Arena _arena) Write a value in the fieldname_template.voidwritePresence(PadPresence presence) Write a value in the fieldpresence.voidwriteStaticCaps(@Nullable StaticCaps staticCaps) Write a value in the fieldstatic_caps.Methods inherited from class org.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 fieldnameTemplatedirection- value for the fielddirectionpresence- value for the fieldpresencestaticCaps- value for the fieldstaticCapsarena- 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 fieldnameTemplatedirection- value for the fielddirectionpresence- value for the fieldpresencestaticCaps- value for the fieldstaticCaps
-
-
Method Details
-
getType
Get the GType of the StaticPadTemplate class- Returns:
- the GType
-
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 aGstStaticPadTemplateinto aGstPadTemplate.- Returns:
- a new
GstPadTemplate.
-
getCaps
Gets the capabilities of the static pad template.- Returns:
- the
GstCapsof 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.
-