Class Tracer

All Implemented Interfaces:
Proxy
Direct Known Subclasses:
Tracer.Tracer$Impl

@Generated("org.javagi.JavaGI") public abstract class Tracer extends GstObject
Tracing modules will subclass GstTracer and register through gst_tracer_register(). Modules can attach to various hook-types - see gst_tracing_register_hook(). When invoked they receive hook specific contextual data, which they must not modify.
Since:
1.8
  • Constructor Details

    • Tracer

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

      public Tracer()
      Create a new Tracer.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the Tracer class.
      Returns:
      the GType
    • getMemoryLayout

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

      protected Tracer asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class GstObject
      Returns:
      the instance as if it were its parent type
    • register

      public static boolean register(@Nullable Plugin plugin, String name, Type type)
      Create a new tracer-factory capable of instantiating objects of the type and add the factory to plugin.
      Parameters:
      plugin - A GstPlugin, or null for a static typefind function
      name - The name for registering
      type - GType of tracer to register
      Returns:
      true, if the registering succeeded, false on error