Klasse PluginFeature

Alle implementierten Schnittstellen:
PointerInterface
Bekannte direkte Unterklassen:
DeviceProviderFactory, DynamicTypeFactory, ElementFactory, TracerFactory, TypeFindFactory

public class PluginFeature extends PropertyHolder
This is a base class for anything that can be added to a #GstPlugin.

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

  • Konstruktordetails

  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • checkVersion

      public boolean checkVersion(int min_major, int min_minor, int min_micro)
      Checks whether the given plugin feature is at least the required version.

      Note: Since version 1.24 this function no longer returns %TRUE if the
      version is a git development version (e.g. 1.23.0.1) and the check is
      for the "next" micro version, that is it will no longer return %TRUE for
      e.g. 1.23.0.1 if the check is for 1.23.1. It is still possible to parse
      the nano version from the string and do this check that way if needed.
      Parameter:
      min_major - minimum required major version
      min_minor - minimum required minor version
      min_micro - minimum required micro version
      Gibt zurück:
      %TRUE if the plugin feature has at least the required version, otherwise %FALSE.
    • getPlugin

      public Plugin getPlugin()
      Get the plugin that provides this feature.
      Gibt zurück:
      the plugin that provides this feature, or %NULL. Unref with gst_object_unref() when no longer needed.
    • getPluginName

      public Str getPluginName()
      Get the name of the plugin that provides this feature.
      Gibt zurück:
      the name of the plugin that provides this feature, or %NULL if the feature is not associated with a plugin.
    • getRank

      public int getRank()
      Gets the rank of a plugin feature.
      Gibt zurück:
      The rank of the feature
    • load

      public PluginFeature load()
      Loads the plugin containing @feature if it's not already loaded. @feature is
      unaffected; use the return value instead.

      Normally this function is used like this:
      <!-- language="C" -->
       GstPluginFeature *loaded_feature;
       
       loaded_feature = gst_plugin_feature_load (feature);
       // presumably, we're no longer interested in the potentially-unloaded feature
       gst_object_unref (feature);
       feature = loaded_feature;
       
      Gibt zurück:
      a reference to the loaded feature, or %NULL on error
    • setRank

      public void setRank(int rank)
      Specifies a rank for a plugin feature, so that autoplugging uses
      the most appropriate feature.
      Parameter:
      rank - rank value - higher number means more priority rank
    • listCopy

      public static List listCopy(@Nonnull List list)
      Copies the list of features. Caller should call @gst_plugin_feature_list_free
      when done with the list.
      Parameter:
      list - list of #GstPluginFeature
      Gibt zurück:
      a copy of @list, with each feature's reference count incremented.
    • listDebug

      public static void listDebug(@Nonnull List list)
      Debug the plugin feature names in @list.
      Parameter:
      list - a #GList of plugin features
    • listFree

      public static void listFree(@Nonnull List list)
      Unrefs each member of @list, then frees the list.
      Parameter:
      list - list of #GstPluginFeature
    • rankCompareFunc

      public static int rankCompareFunc(@Nullable Pointer p1, @Nullable Pointer p2)
      Compares the two given #GstPluginFeature instances. This function can be
      used as a #GCompareFunc when sorting by rank and then by name.
      Parameter:
      p1 - a #GstPluginFeature
      p2 - a #GstPluginFeature
      Gibt zurück:
      negative value if the rank of p1 > the rank of p2 or the ranks are equal but the name of p1 comes before the name of p2; zero if the rank and names are equal; positive value if the rank of p1 < the rank of p2 or the ranks are equal but the name of p2 comes before the name of p1
    • 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()