Klasse DeviceProviderFactory

Alle implementierten Schnittstellen:
PointerInterface

public class DeviceProviderFactory extends PluginFeature
#GstDeviceProviderFactory is used to create instances of device providers. A
GstDeviceProviderfactory can be added to a #GstPlugin as it is also a
#GstPluginFeature.

Use the gst_device_provider_factory_find() and
gst_device_provider_factory_get() functions to create device
provider instances or use gst_device_provider_factory_get_by_name() as a
convenient shortcut.

https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html

  • Konstruktordetails

    • DeviceProviderFactory

      public DeviceProviderFactory(PointerContainer pointer)
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • get

      public DeviceProvider get()
      Returns the device provider of the type defined by the given device
      providerfactory.
      Gibt zurück:
      the #GstDeviceProvider or %NULL if the device provider couldn't be created
    • getDeviceProviderType

      public long getDeviceProviderType()
      Get the #GType for device providers managed by this factory. The type can
      only be retrieved if the device provider factory is loaded, which can be
      assured with gst_plugin_feature_load().
      Gibt zurück:
      the #GType for device providers managed by this factory.
    • getMetadata

      public Str getMetadata(@Nonnull Str key)
      Get the metadata on @factory with @key.
      Parameter:
      key - a key
      Gibt zurück:
      the metadata with @key on @factory or %NULL when there was no metadata with the given @key.
    • getMetadata

      public Str getMetadata(String key)
      Get the metadata on @factory with @key.
      Parameter:
      key - a key
      Gibt zurück:
      the metadata with @key on @factory or %NULL when there was no metadata with the given @key.
    • hasClasses

      public boolean hasClasses(@Nullable Str classes)
      Check if @factory matches all of the given @classes
      Parameter:
      classes - a "/" separate list of classes to match, only match if all classes are matched
      Gibt zurück:
      %TRUE if @factory matches or if @classes is %NULL.
    • hasClasses

      public boolean hasClasses(String classes)
      Check if @factory matches all of the given @classes
      Parameter:
      classes - a "/" separate list of classes to match, only match if all classes are matched
      Gibt zurück:
      %TRUE if @factory matches or if @classes is %NULL.
    • find

      public static DeviceProviderFactory find(@Nonnull Str name)
      Search for an device provider factory of the given name. Refs the returned
      device provider factory; caller is responsible for unreffing.
      Parameter:
      name - name of factory to find
      Gibt zurück:
      #GstDeviceProviderFactory if found, %NULL otherwise
    • getByName

      public static DeviceProvider getByName(@Nonnull Str factoryname)
      Returns the device provider of the type defined by the given device
      provider factory.
      Parameter:
      factoryname - a named factory to instantiate
      Gibt zurück:
      a #GstDeviceProvider or %NULL if unable to create device provider
    • listGetDeviceProviders

      public static List listGetDeviceProviders(int minrank)
      Get a list of factories with a rank greater or equal to @minrank.
      The list of factories is returned by decreasing rank.
      Parameter:
      minrank - Minimum rank
      Gibt zurück:
      a #GList of #GstDeviceProviderFactory device providers. Use gst_plugin_feature_list_free() after usage.
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()