Class DeviceProvider.DeviceProviderClass

All Implemented Interfaces:
Proxy
Enclosing class:
DeviceProvider

public static class DeviceProvider.DeviceProviderClass extends GstObject.ObjectClass
The structure of the base GstDeviceProviderClass
Since:
1.4
  • Constructor Details

    • DeviceProviderClass

      public DeviceProviderClass(MemorySegment address)
      Create a DeviceProviderClass proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readFactory

      public DeviceProviderFactory readFactory()
      Read the value of the field factory.
      Returns:
      The value of the field factory
    • writeFactory

      public void writeFactory(DeviceProviderFactory factory)
      Write a value in the field factory.
      Parameters:
      factory - The new value for the field factory
    • overrideProbe

      public void overrideProbe(Arena arena, @Nullable Method method)
      Override virtual method probe.
      Parameters:
      method - the method to invoke
    • overrideStart

      public void overrideStart(Arena arena, @Nullable Method method)
      Override virtual method start.
      Parameters:
      method - the method to invoke
    • overrideStop

      public void overrideStop(Arena arena, @Nullable Method method)
      Override virtual method stop.
      Parameters:
      method - the method to invoke
    • readMetadata

      public MemorySegment readMetadata()
      Read the value of the field metadata.
      Returns:
      The value of the field metadata
    • writeMetadata

      public void writeMetadata(MemorySegment metadata)
      Write a value in the field metadata.
      Parameters:
      metadata - The new value for the field metadata
    • addMetadata

      public void addMetadata(String key, String value)
      Set key with value as metadata in klass.
      Parameters:
      key - the key to set
      value - the value to set
      Since:
      1.4
    • addStaticMetadata

      public void addStaticMetadata(String key, String value)

      Set key with value as metadata in klass.

      Same as gst_device_provider_class_add_metadata(), but value must 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 set
      value - the value to set
      Since:
      1.4
    • getMetadata

      public @Nullable String getMetadata(String key)
      Get metadata with key in klass.
      Parameters:
      key - the key to get
      Returns:
      the metadata for key.
      Since:
      1.4
    • setMetadata

      public void setMetadata(String longname, String classification, String description, String author)

      Sets the detailed information for a GstDeviceProviderClass.

      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 a GstDeviceProviderClass.

      This function is for use in _class_init functions only.

      Same as gst_device_provider_class_set_metadata(), but longname, classification, description, and author must 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