Package org.freedesktop.gstreamer.gst
Class DeviceProvider.DeviceProviderClass
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeClass
org.gnome.gobject.GObject.ObjectClass
org.gnome.gobject.InitiallyUnowned.InitiallyUnownedClass
org.freedesktop.gstreamer.gst.GstObject.ObjectClass
org.freedesktop.gstreamer.gst.DeviceProvider.DeviceProviderClass
- All Implemented Interfaces:
Proxy
- Enclosing class:
DeviceProvider
The structure of the base
GstDeviceProviderClass- Since:
- 1.4
-
Constructor Summary
ConstructorsConstructorDescriptionDeviceProviderClass(MemorySegment address) Create a DeviceProviderClass proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetadata(String key, String value) Setkeywithvalueas metadata inklass.voidaddStaticMetadata(String key, String value) Setkeywithvalueas metadata inklass.static MemoryLayoutThe memory layout of the native struct.@Nullable StringgetMetadata(String key) Get metadata withkeyinklass.voidoverrideProbe(Arena arena, @Nullable Method method) Override virtual methodprobe.voidoverrideStart(Arena arena, @Nullable Method method) Override virtual methodstart.voidoverrideStop(Arena arena, @Nullable Method method) Override virtual methodstop.Read the value of the fieldfactory.Read the value of the fieldmetadata.voidsetMetadata(String longname, String classification, String description, String author) Sets the detailed information for aGstDeviceProviderClass.voidsetStaticMetadata(String longname, String classification, String description, String author) Sets the detailed information for aGstDeviceProviderClass.voidwriteFactory(DeviceProviderFactory factory) Write a value in the fieldfactory.voidwriteMetadata(MemorySegment metadata) Write a value in the fieldmetadata.Methods inherited from class org.freedesktop.gstreamer.gst.GstObject.ObjectClass
overrideDeepNotify, readPathStringSeparator, writePathStringSeparatorMethods inherited from class org.gnome.gobject.GObject.ObjectClass
findProperty, installProperties, installProperty, listProperties, overrideConstructed, overrideConstructor, overrideDispatchPropertiesChanged, overrideDispose, overrideFinalize, overrideGetProperty, overrideNotify, overrideProperty, overrideSetProperty, readConstructProperties, readFlags, readNConstructProperties, readNPspecs, readPdummy, readPspecs, writeConstructProperties, writeFlags, writeNConstructProperties, writeNPspecs, writePdummy, writePspecsMethods inherited from class org.gnome.gobject.TypeClass
addPrivate, adjustPrivateOffset, get, getInstancePrivateOffset, getPrivate, peek, peekParent, peekStatic, readGType, ref, unref, unrefUncached, writeGTypeMethods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
DeviceProviderClass
Create a DeviceProviderClass proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readFactory
Read the value of the fieldfactory.- Returns:
- The value of the field
factory
-
writeFactory
Write a value in the fieldfactory.- Parameters:
factory- The new value for the fieldfactory
-
overrideProbe
-
overrideStart
-
overrideStop
-
readMetadata
Read the value of the fieldmetadata.- Returns:
- The value of the field
metadata
-
writeMetadata
Write a value in the fieldmetadata.- Parameters:
metadata- The new value for the fieldmetadata
-
addMetadata
-
addStaticMetadata
Setkeywithvalueas metadata inklass.Same as gst_device_provider_class_add_metadata(), but
valuemust be a static string or an inlined string, as it will not be copied. (GStreamer plugins will be made resident once loaded, so this function can be used even from dynamically loaded plugins.)- Parameters:
key- the key to setvalue- the value to set- Since:
- 1.4
-
getMetadata
-
setMetadata
Sets the detailed information for aGstDeviceProviderClass.This function is for use in _class_init functions only.
- Parameters:
longname- The long English name of the device provider. E.g. "File Sink"classification- String describing the type of device provider, as an unordered list separated with slashes ('/'). See draft-klass.txt of the design docs for more details and common types. E.g: "Sink/File"description- Sentence describing the purpose of the device provider. E.g: "Write stream to a file"author- Name and contact details of the author(s). Use \\n to separate multiple author metadata. E.g: "Joe Bloggs <joe.blogs at foo.com>"- Since:
- 1.4
-
setStaticMetadata
public void setStaticMetadata(String longname, String classification, String description, String author) Sets the detailed information for aGstDeviceProviderClass.This function is for use in _class_init functions only.
Same as gst_device_provider_class_set_metadata(), but
longname,classification,description,andauthormust be static strings or inlined strings, as they will not be copied. (GStreamer plugins will be made resident once loaded, so this function can be used even from dynamically loaded plugins.)- Parameters:
longname- The long English name of the element. E.g. "File Sink"classification- String describing the type of element, as an unordered list separated with slashes ('/'). See draft-klass.txt of the design docs for more details and common types. E.g: "Sink/File"description- Sentence describing the purpose of the element. E.g: "Write stream to a file"author- Name and contact details of the author(s). Use \\n to separate multiple author metadata. E.g: "Joe Bloggs <joe.blogs at foo.com>"- Since:
- 1.4
-