Class VideoEncoder.VideoEncoderClass

All Implemented Interfaces:
Proxy
Enclosing class:
VideoEncoder

public static class VideoEncoder.VideoEncoderClass extends Element.ElementClass
Subclasses can override any of the available virtual methods or not, as needed. At minimum handleFrame needs to be overridden, and setFormat and getCaps are likely needed as well.
  • Constructor Details

    • VideoEncoderClass

      public VideoEncoderClass(MemorySegment address)
      Create a VideoEncoderClass 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
    • overrideOpen

      public void overrideOpen(Arena arena, @Nullable Method method)
      Override virtual method open.
      Parameters:
      method - the method to invoke
    • overrideClose

      public void overrideClose(Arena arena, @Nullable Method method)
      Override virtual method close.
      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
    • overrideSetFormat

      public void overrideSetFormat(Arena arena, @Nullable Method method)
      Override virtual method set_format.
      Parameters:
      method - the method to invoke
    • overrideHandleFrame

      public void overrideHandleFrame(Arena arena, @Nullable Method method)
      Override virtual method handle_frame.
      Parameters:
      method - the method to invoke
    • overrideReset

      public void overrideReset(Arena arena, @Nullable Method method)
      Override virtual method reset.
      Parameters:
      method - the method to invoke
    • overrideFinish

      public void overrideFinish(Arena arena, @Nullable Method method)
      Override virtual method finish.
      Parameters:
      method - the method to invoke
    • overridePrePush

      public void overridePrePush(Arena arena, @Nullable Method method)
      Override virtual method pre_push.
      Parameters:
      method - the method to invoke
    • overrideGetcaps

      public void overrideGetcaps(Arena arena, @Nullable Method method)
      Override virtual method getcaps.
      Parameters:
      method - the method to invoke
    • overrideSinkEvent

      public void overrideSinkEvent(Arena arena, @Nullable Method method)
      Override virtual method sink_event.
      Parameters:
      method - the method to invoke
    • overrideSrcEvent

      public void overrideSrcEvent(Arena arena, @Nullable Method method)
      Override virtual method src_event.
      Parameters:
      method - the method to invoke
    • overrideNegotiate

      public void overrideNegotiate(Arena arena, @Nullable Method method)
      Override virtual method negotiate.
      Parameters:
      method - the method to invoke
    • overrideDecideAllocation

      public void overrideDecideAllocation(Arena arena, @Nullable Method method)
      Override virtual method decide_allocation.
      Parameters:
      method - the method to invoke
    • overrideProposeAllocation

      public void overrideProposeAllocation(Arena arena, @Nullable Method method)
      Override virtual method propose_allocation.
      Parameters:
      method - the method to invoke
    • overrideFlush

      public void overrideFlush(Arena arena, @Nullable Method method)
      Override virtual method flush.
      Parameters:
      method - the method to invoke
    • overrideSinkQuery

      public void overrideSinkQuery(Arena arena, @Nullable Method method)
      Override virtual method sink_query.
      Parameters:
      method - the method to invoke
    • overrideSrcQuery

      public void overrideSrcQuery(Arena arena, @Nullable Method method)
      Override virtual method src_query.
      Parameters:
      method - the method to invoke
    • overrideTransformMeta

      public void overrideTransformMeta(Arena arena, @Nullable Method method)
      Override virtual method transform_meta.
      Parameters:
      method - the method to invoke